/* The /chains pages: static HTML, no app JS. Same fonts, palette and theme
   switch as the app (src/index.css), so moving between them doesn't jolt. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/outfit-v15-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/space-grotesk-v22-latin.woff2) format('woff2');
}

:root {
  color-scheme: light;
  --page: #f7f2ed;
  --surface: #ffffff;
  --surface-2: #fff6f2;
  --ink: #241310;
  --ink-2: #3b2621;
  --muted: #6b5651;
  --accent: #8c0d01;
  --accent-bg: #8c0d01;
  --accent-bg-press: #6f0a01;
  --accent-rgb: 140, 13, 1;
  --shade: 60, 24, 14;
  --shadow: 80, 26, 14;
  --max: min(1240px, 94vw);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #140d0b;
  --surface: #211714;
  --surface-2: #2a1e1a;
  --ink: #f6e9e3;
  --ink-2: #e2cfc8;
  --muted: #b29f98;
  --accent: #ff8b76;
  --accent-bg: #9a1204;
  --accent-bg-press: #7c0d02;
  --accent-rgb: 255, 120, 98;
  --shade: 255, 230, 220;
  --shadow: 0, 0, 0;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
img { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.eyebrow { font-size: 12.5px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1; letter-spacing: -0.015em; font-weight: 500; color: var(--accent); margin: 8px 0 0; text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.01em; font-weight: 500; margin: 10px 0 22px; text-wrap: balance; }
.card { background: var(--surface); border: 1px solid rgba(var(--shade), 0.1); border-radius: 20px; }
.num { font-family: 'Space Grotesk', monospace; font-weight: 600; letter-spacing: -0.01em; }

/* Header */
.top { padding: 22px 0; }
.bar { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.brand img { width: 24px; height: 24px; }
.bar nav { display: flex; gap: 24px; font-size: 14.5px; flex: 1; }
.bar nav a { color: var(--muted); }
.bar nav a:hover { color: var(--accent); }

.pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(var(--shade), 0.16); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: border-color 200ms ease, color 200ms ease, background 160ms ease; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.accent { background: var(--accent-bg); border-color: transparent; color: #fff6f2; font-weight: 600; }
.pill.accent:hover { background: var(--accent-bg-press); color: #fff6f2; }
.pill.big { padding: 15px 30px; font-size: 15.5px; }

/* Hero */
.hero { padding-top: clamp(20px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.title { display: flex; align-items: center; gap: 20px; }
.logo { border-radius: 999px; flex: 0 0 auto; object-fit: cover; background: var(--surface-2); }
.logo.initial { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--ink-2); background: rgba(var(--shade), 0.08); }
.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 62ch; margin: 22px 0 30px; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 46px; }
.stats > div { display: flex; flex-direction: column; gap: 4px; }
.stats .num { font-size: 28px; }

/* Blocks */
.hero + .block { padding-top: 0; }
.block { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.note { font-size: 13.5px; color: var(--muted); margin: -10px 0 18px; }
.body { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 64px); }

/* Quotes */
.quotes { padding: 8px; }
.quote { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 12px 22px; padding: 18px 18px; border-radius: 14px; }
.quote + .quote { border-top: 1px solid rgba(var(--shade), 0.08); }
.quote .side { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.quote .num { font-size: clamp(20px, 2vw, 26px); }
.quote small { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500; color: var(--muted); }
.quote .sub { font-size: 13.5px; color: var(--muted); }
.quote .arrow { color: var(--accent); font-size: 22px; }
@media (max-width: 720px) {
  .quote { grid-template-columns: 1fr; }
  .quote .arrow { display: none; }
  .quote .pill { justify-self: start; }
}

/* Tokens and chains */
.tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.token { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 16px; color: var(--ink); transition: border-color 200ms ease; }
.token img { width: 28px; height: 28px; border-radius: 999px; object-fit: contain; background: #fff; }
.token .sym { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token .price { margin-left: auto; font-family: 'Space Grotesk', monospace; font-size: 13px; color: var(--muted); }
.token:hover, .chip:hover { border-color: var(--accent); color: var(--ink); }
.chains { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.chains.big { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.chip { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 16px; color: var(--ink); font-size: 14.5px; font-weight: 500; transition: border-color 200ms ease; min-width: 0; }
.chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chains.big .chip { padding: 16px; }
.chains.big .chip span { display: flex; flex-direction: column; }
.chains.big strong { font-size: 16px; font-weight: 600; }
.chains.big small { font-size: 12.5px; color: var(--muted); font-weight: 400; white-space: normal; }

/* Pairs */
.pairs { list-style: none; padding: 0; margin: 0; }
.pairs li + li { border-top: 1px solid rgba(var(--shade), 0.08); }
.pairs a { display: flex; justify-content: space-between; padding: 13px 4px; color: var(--ink); font-size: 15.5px; }
.pairs a span { color: var(--accent); transition: transform 200ms ease; }
.pairs a:hover span { transform: translateX(4px); }

/* Stablecoin network table */
.table-wrap { overflow-x: auto; padding: 6px; }
.nets { width: 100%; border-collapse: collapse; font-size: 15px; }
.nets th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 14px; white-space: nowrap; }
.nets td { padding: 11px 14px; border-top: 1px solid rgba(var(--shade), 0.07); white-space: nowrap; }
.nets td:last-child { text-align: right; }
.nets .num { font-size: 15px; }
.nets .pill { padding: 7px 16px; font-size: 13.5px; }
.net { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.net:hover { color: var(--accent); }
.muted { color: var(--muted); font-family: 'Outfit', sans-serif; font-weight: 400; font-size: 13.5px; }

/* Wallet pages */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 46px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 999px; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); font-family: 'Space Grotesk', monospace; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.fee { padding: 20px 22px; margin-top: 8px; }
.fee-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font-size: 15.5px; border-bottom: 1px solid rgba(var(--shade), 0.08); }
.fee-row .num { font-size: 20px; }
.fee-row.ours { color: var(--accent); border-bottom: 0; }
.fee .note { margin: 8px 0 0; }
.disclaimer { margin-top: 18px; }

/* FAQ */
.faq details { border-top: 1px solid rgba(var(--shade), 0.1); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(var(--shade), 0.1); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 4px; font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 4px 18px; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 72ch; }

/* Footer */
footer { margin-top: clamp(40px, 6vw, 80px); background: var(--surface); border-top: 1px solid rgba(var(--shade), 0.08); padding: 40px 0 30px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; color: var(--muted); font-size: 14.5px; }
.foot-row + .foot-row { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(var(--shade), 0.08); }
.foot-row.small { font-size: 13px; }
.foot-row a { color: inherit; }
.mark { font-size: 26px; font-weight: 500; color: var(--accent); letter-spacing: -0.015em; }

@media (max-width: 640px) {
  .bar nav { display: none; }
  .bar { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
