/* ============================================================
   DEFI & TRADING — solutions page styles.

   Built on the shared design tokens + @font-face rules in
   styles.css: one 64rem content column, Suisse Intl display
   type, hairline rules instead of cards, white the only accent.

   The reader is a protocol founder or PM who owns a vault, DEX
   or lending market and optimizes TVL. Everything on the page is
   written to THEM, in their vocabulary:
     · the hero: copy left, THEIR OWN PRODUCT right — a Northwind
       Finance vault card with Flashi inside; the button copy
       ("Deposit from any chain") carries the whole pitch
     · the ROUTE DIAGRAM — their user's wallet to their protocol:
       a dashed, four-stop crawl vs one unbroken rail
     · media rows as the builder's deposit lifecycle: users fund
       from anywhere → converted before their contracts → settles
       directly, no rearchitecting → redemptions handled
     · the finale (closing couplet + email capture)
   Nothing on this page animates.
   ============================================================ */

/* ---------- 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;
}

/* ============================================================
   Hero — the message left, the trader's balances right.
   ============================================================ */
.shero {
  position: relative;
  padding: 4rem 2.5rem 0;      /* no bottom pad — the next section's top owns the gap */
}
.shero-inner {
  max-width: 64rem;
  margin: 0 auto;
}
.shero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: 4rem;
  align-items: center;
}
.shero-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; } }

.shero-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;
}
.shero-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;
}
.shero-sub .lead { color: #eee; }    /* bright lead clause — the homepage two-tone */
.shero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ---- the reader's own product: a vault card with Flashi inside.
   The button copy carries the whole pitch. Holding still. ---- */
.vault {
  width: 100%;
  max-width: 23rem;
  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;
}
.vault-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.vault-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--accent-fg);
  font-size: 0.9375rem;
  font-weight: 700;
}
.vault-id { flex: 1; min-width: 0; }
.vault-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-12);
}
.vault-sub {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.6875rem;
  color: var(--gray-10);
}
.vault-body { padding: 1.25rem; }
.vault-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vault-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-12);
}
.vault-apy {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background-color: var(--tile);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-12);
  font-variant-numeric: tabular-nums;
}
.vault-stats {
  display: flex;
  gap: 2.25rem;
  margin: 1.125rem 0 1.375rem;
}
.vault-stat b {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-12);
  font-variant-numeric: tabular-nums;
}
.vault-stat i {
  display: block;
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--gray-10);
}
.vault-btn {
  display: block;
  width: 100%;
  padding: 0.6875rem 0;
  border-radius: 0.5rem;
  background-color: var(--accent);
  color: var(--accent-fg);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
.vault-assets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
}
.va-pile { display: flex; }
.va-pile img {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gray-2);   /* card-bg ring separates the pile */
}
.va-pile img + img { margin-left: -0.3125rem; }
.va-txt {
  font-size: 0.6875rem;
  color: var(--gray-10);
}

/* ============================================================
   The route — two lanes to the same venue. The old one is a
   dashed, four-stop crawl; ours is one unbroken rail through a
   single node. The line style IS the argument.
   ============================================================ */
.route-sec {
  background-color: var(--gray-1);
  padding: 6.05rem 2.5rem;
}
.route-inner {
  max-width: 64rem;
  margin: 0 auto;
}
.route-statement {
  margin: 0 0 4.5rem;
  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;
}
.route-statement span { display: block; }

.route-head {
  display: grid;
  grid-template-columns: 8.5rem 1fr 9.5rem;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.route-ends {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
}
.route-ends span,
.route-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.route-lane {
  display: grid;
  grid-template-columns: 8.5rem 1fr 9.5rem;
  gap: 2rem;
  align-items: start;
}
.route-lane.is-slow { margin-bottom: 2.5rem; }
.route-lane.is-fast .route-tag { color: var(--gray-12); }
.route-tag { padding-top: 0.125rem; }

.route-rail { position: relative; height: 3.75rem; }
.route-lane.is-slow .route-rail::before {   /* the crawl: broken line, four stops */
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.28);
}
.route-lane.is-fast .route-rail::before {   /* the rail: solid, brighter, heavier */
  content: "";
  position: absolute;
  top: calc(0.5rem - 1px);
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.65);
}
.route-end {                    /* the anchors: where a lane starts and ends */
  position: absolute;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-10);
  transform: translate(-50%, -50%);
}
.route-lane.is-fast .route-end { background: var(--gray-12); }
.route-stop {
  position: absolute;
  top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}
.rs-dot {                       /* a stop on the crawl — hollow, seated on the line */
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--gray-1);
  box-shadow: inset 0 0 0 1.5px var(--gray-10);
}
.rs-spark {                     /* the one stop on ours */
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  margin-top: -0.8125rem;
  border-radius: 50%;
  background: var(--gray-2);
  box-shadow:
    inset 0 0 0 1px var(--border-strong),
    0 0 20px rgba(255, 255, 255, 0.12);
}
.rs-spark svg { width: 0.9375rem; height: 0.9375rem; color: var(--white); }
.rs-l1 {
  margin-top: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gray-10);
  white-space: nowrap;
}
.route-stop.is-spark .rs-l1 { color: var(--gray-12); }
.rs-l2 {
  margin-top: 0.125rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.route-res {
  padding-top: 0.125rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--gray-10);
  font-variant-numeric: tabular-nums;
}
.route-lane.is-fast .route-res { color: var(--gray-12); font-weight: 500; }
.route-note {
  margin: 2.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--gray-10);
}
.route-note b { color: var(--gray-12); font-weight: 500; }

/* ============================================================
   Media rows — the substance, each with a small still graphic.
   One through-line: the same money enters, sits as collateral,
   and leaves. Graphics left, claims right.
   ============================================================ */
.mrows {
  background-color: var(--gray-1);
  padding: 0 2.5rem 7rem;
}
.mrows-inner {
  max-width: 64rem;
  margin: 0 auto;
}
.mrows .products-head { margin-bottom: 3.5rem; }
.mrow {
  display: grid;
  grid-template-columns: minmax(0, 22rem) 1fr;
  gap: 4rem;
  align-items: center;
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}
.mrow-media {
  display: flex;
  justify-content: flex-start;
}
.mrow-text h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gray-12);
}
.mrow-text p {
  margin: 0.625rem 0 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray-10);
}
.mrow-text .flow-link {
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* ---- 1 · the sources: exchanges AND wallets — density is the point ---- */
.exgrid {
  display: grid;
  grid-template-columns: repeat(4, 3.25rem);
  gap: 0.75rem;
}
.exgrid span {
  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);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.exgrid span:hover { background-color: var(--card-hover); box-shadow: inset 0 0 0 1px var(--border-strong); }
.exgrid img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.2s var(--ease), filter 0.2s var(--ease);
}
.exgrid span:hover img { filter: grayscale(0); opacity: 1; }

/* ---- 2 · the conversion ledger: three tokens arrive, one token
   lands — ruled off and summed, like a statement ---- */
.ledger {
  width: 100%;
  max-width: 22rem;
  padding: 1.125rem 1.25rem;
  border-radius: 0.75rem;
  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 20px 50px -22px rgba(0, 0, 0, 0.8);
}
.ledger-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.ledger-row + .ledger-row { margin-top: 0.625rem; }
.ledger-row img { width: 1.125rem; height: 1.125rem; border-radius: 50%; }
.lg-in { color: var(--gray-10); font-weight: 500; }
.lg-arrow {
  display: flex;
  flex: 1;
  align-items: center;
  color: var(--gray-10);
}
.lg-arrow::before {              /* the rail each conversion rides */
  content: "";
  flex: 1;
  height: 1px;
  margin-right: 0.375rem;
  background-color: var(--border);
}
.lg-arrow svg { width: 0.875rem; height: 0.875rem; flex: none; }
.lg-out { color: var(--gray-12); font-weight: 600; }
.ledger-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}
.ledger-total span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-10);
}
.ledger-total b {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-12);
  font-variant-numeric: tabular-nums;
}

/* ---- 3 · their contract, untouched: the code card ---- */
.sol {
  width: 100%;
  max-width: 22rem;
  border-radius: 0.75rem;
  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 20px 50px -22px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.sol-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
}
.sol-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--alpha-6); }
.sol-name {
  margin-left: 0.5rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--alpha-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  color: var(--gray-10);
}
.sol-body {
  padding: 1rem 1.125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78125rem;
  line-height: 1.8;
}
.sol-line { display: block; color: var(--gray-12); white-space: pre; }
.sol-line i { font-style: normal; color: var(--gray-10); }
.sol-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--gray-10);
}
.sol-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
}
.sol-check svg { width: 0.625rem; height: 0.625rem; }
.sol-foot b { color: var(--gray-12); font-weight: 500; }

/* ---- 4 · redemptions, in the reader's own words ---- */
.redeem {
  width: 100%;
  max-width: 22rem;
  border-radius: 0.75rem;
  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 20px 50px -22px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.redeem-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9375rem 1.125rem;
}
.redeem-row + .redeem-row { border-top: 1px solid var(--border); }
.redeem-row img {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
}
.rd-mid { flex: 1; min-width: 0; }
.rd-t {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-12);
  font-variant-numeric: tabular-nums;
}
.rd-s {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.6875rem;
  color: var(--gray-10);
}
.rd-time {
  flex: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-12);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   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) {
  .shero { padding: 3.5rem 1.5rem 0; }
  .shero-grid {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }
  .shero-sub { max-width: 40rem; }
  .shero-media { justify-content: flex-start; }
  .route-sec { padding: 5rem 1.5rem; }
  .mrows { padding: 0 1.5rem 5.5rem; }
  .finale { padding: 0 1.5rem 5rem; }
}
@media (max-width: 860px) {
  /* lanes fold: tag above, result below, rail full width */
  .route-head { grid-template-columns: 1fr; gap: 0; }
  .route-ends { grid-column: 1; }
  .route-lane { grid-template-columns: 1fr; gap: 0.875rem; }
  .route-tag { padding-top: 0; }
  .route-lane.is-slow { margin-bottom: 3rem; }
  .route-res { padding-top: 0; }
  .rs-l2 { display: none; }              /* one label per stop is enough */
  .route-rail { height: 2.5rem; }
}
@media (max-width: 720px) {
  .route-statement { margin-bottom: 3rem; }
  .mrow { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.5rem 0; }
}
@media (max-width: 600px) {
  .shero { padding: 2.75rem 1.25rem 0; }
  .rs-l1 { font-size: 0.625rem; }
}
