@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url(fonts/public-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url(fonts/public-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

/* Same tokens as the hosted checkout, so the site and the payment page read as one product.
   Amber = waiting for the blockchain, green = settled. Colour carries state, not decoration. */
:root {
  --paper: #EEF1EE; --surface: #FFFFFF; --sunk: #F5F7F5; --ink: #142033; --muted: #556072;
  --line: #DCE2DE; --line-strong: #BFC8C3;
  --action: #1F4E8C; --action-hover: #183F73; --action-soft: #E8EEF7;
  --ok: #0B7A5C; --ok-soft: #E2F2EC; --wait: #A86400; --wait-soft: #FBF1E1; --bad: #B42318; --bad-soft: #FCECEA;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Public Sans", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { display: block; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.005em; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--action);
  background: var(--action); color: #fff; font-weight: 500; text-decoration: none; cursor: pointer;
  font-family: inherit; font-size: 1rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--action); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--action-soft); color: var(--action-hover); border-color: var(--action); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(238,241,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .96rem; }
.nav a:hover { color: var(--ink); }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.link-quiet { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.link-quiet:hover { color: var(--action); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 72px 0 88px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; max-width: 15ch; }
.lead { margin-top: 24px; font-size: 1.16rem; color: var(--muted); max-width: 46ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; font-size: .93rem; color: var(--muted); }

/* The ledger: the product's core promise drawn as data. Many coins in, one balance out. */
.ledger { margin: 0; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 24px 60px -28px rgba(20,32,51,.28); overflow: hidden; }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px 12px; font-weight: 700; font-size: .98rem; }
.ledger-sub { font-weight: 400; color: var(--muted); font-size: .88rem; }
.row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "ic coin state" "ic amt usd";
  column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line);
}
.row img { grid-area: ic; align-self: start; margin-top: 2px; }
.row-coin { grid-area: coin; font-weight: 500; font-size: .98rem; line-height: 1.3; }
.row-coin small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; }
.row-amt { grid-area: amt; font-family: var(--mono); font-size: .84rem; color: var(--muted); }
.row-usd { grid-area: usd; justify-self: end; font-family: var(--mono); font-size: .9rem; color: var(--ok); transition: color .3s ease; }
.state {
  grid-area: state; justify-self: end; font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok); transition: background-color .3s ease, color .3s ease;
}
.row.pending .state { background: var(--wait-soft); color: var(--wait); }
.row.pending .row-usd { color: var(--line-strong); }
.balance { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--sunk); border-top: 1px solid var(--line); }
.balance-label { display: block; font-size: .86rem; color: var(--muted); }
.balance-amt { display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; }
.balance-amt small { font-family: "Public Sans", sans-serif; font-size: .82rem; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.ledger-foot { padding: 0 22px 14px; background: var(--sunk); font-size: .78rem; color: var(--muted); }

/* ------------------------------------------------------------------ sections */
.section { padding: 96px 24px; }
.band { background: var(--surface); padding: 96px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { margin-top: 14px; color: var(--muted); max-width: 52ch; font-size: 1.06rem; }

.integrations { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.int { padding: 28px 32px 30px 0; border-bottom: 1px solid var(--line); }
.int:nth-child(even) { padding: 28px 0 30px 32px; border-left: 1px solid var(--line); }
.int-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.int p { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.tag { font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-soon { background: var(--sunk); color: var(--muted); border: 1px solid var(--line); }

/* Real sequence, so it is numbered. */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--action); color: var(--action); font-weight: 700; font-size: 1.05rem;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 56px; right: -28px; height: 1.5px; background: var(--line-strong); }
.steps p { margin-top: 10px; color: var(--muted); }

.coins { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.coins li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 500; font-size: .96rem; }
.mono-badge { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; }
.mono-sm { width: 20px; height: 20px; font-size: .66rem; }
.coins-soon { margin-top: 24px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.coins-soon span:not(.mono-badge) { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.facts li { border-top: 2px solid var(--ink); padding-top: 16px; }
.facts p { margin-top: 8px; color: var(--muted); font-size: .98rem; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; color: var(--action); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

.closing { text-align: left; }
.closing .btn { margin-top: 28px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ auth pages */
.auth-page { min-height: 100vh; }
.auth { max-width: 460px; margin: 0 auto; padding: 48px 20px 64px; }
.auth > .brand { margin-bottom: 28px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.auth-card h1 { font-size: 1.6rem; letter-spacing: -.02em; }
.auth-lead { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.form { margin-top: 24px; display: grid; gap: 18px; }
.field label { display: block; font-weight: 500; font-size: .94rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field-hint { margin-top: 6px; font-size: .86rem; color: var(--muted); }
.field-err { margin-top: 6px; font-size: .86rem; color: var(--bad); }
.form .btn { margin-top: 4px; }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--wait-soft); color: #6B4200; font-size: .94rem; }
.notice strong { display: block; color: var(--ink); }
.auth-switch { margin-top: 20px; text-align: center; color: var(--muted); font-size: .96rem; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero-in, .split, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding: 40px 0 64px; }
  .nav { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li:not(:last-child)::after { top: 52px; bottom: -24px; left: 22px; right: auto; width: 1.5px; height: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 16px; }
  .band { padding: 64px 0; }
  .top-in { gap: 12px; }
  .link-quiet { display: none; }
  .integrations, .facts { grid-template-columns: minmax(0, 1fr); }
  .int, .int:nth-child(even) { padding: 24px 0; border-left: 0; }
  .row { padding: 12px 16px; column-gap: 12px; }
  .ledger-head, .balance { padding-left: 16px; padding-right: 16px; }
  .ledger-foot { padding: 0 16px 12px; }
  .auth-card { padding: 24px 20px; }
}
