/* OB-1 look. Change the variables to restyle. */
:root {
  --bg: #e9e8e4;
  --bg2: #f4f3ef;
  --paper: #fbfaf6;
  --ink: #121212;
  --ink2: #5c5b57;
  --ink3: #9a9893;
  --line: #c9c7c1;
  --orange: #ff4f00;
  --gutter: 48px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
.mono, code { font-family: var(--mono); font-weight: 400; }
.sub { color: var(--ink3); font-size: 12px; }
.addr { font-family: var(--mono); font-size: 13px; border-bottom: 1px solid var(--line); word-break: break-all; }
.wrap-code { font-size: 12px; word-break: break-all; white-space: normal; }

/* header */
.site-header { display: flex; align-items: flex-start; gap: 44px; padding: 22px var(--gutter) 0; color: var(--ink); }
.brand { font-size: 27px; line-height: 31px; letter-spacing: -.2px; min-width: 150px; font-weight: 300; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 46px; flex: 1; }
.mod { display: flex; gap: 12px; }
.mod-icon { display: block; color: var(--ink); }
.mod svg { width: 42px; height: 62px; flex: none; display: block; }
.mod-title { display: block; font-weight: 300; font-size: 27px; line-height: 31px; letter-spacing: -.3px; }
.mod.active .mod-title { color: var(--orange); }
.mod-subs { display: block; margin-top: 6px; }
.mod-subs a { display: block; font-size: 12.5px; line-height: 15px; }
.x-link { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; align-self: center; font-size: 13px; color: var(--ink); text-decoration: none; }
.x-link:hover span { text-decoration: underline; }
.mark { width: 120px; height: 62px; flex: none; margin-left: 28px; }

/* device stage: still background, soft light behind the device */
.stage {
  position: relative; min-height: 700px; margin-top: 10px; padding-top: 40px; overflow: hidden;
  background: radial-gradient(ellipse 52% 62% at 50% 46%, #fbfaf7 0%, #f1f0ec 38%, var(--bg) 72%);
}
.stage svg.device { display: block; width: 840px; max-width: 100%; height: auto; margin: 0 auto; }
.cap { position: absolute; left: var(--gutter); bottom: 36px; font-size: 12.5px; line-height: 17px; max-width: 320px; }
.cap b { display: block; font-weight: 400; font-size: 13px; }
.cap2 { position: absolute; right: var(--gutter); bottom: 36px; font-size: 12.5px; line-height: 17px; text-align: right; color: var(--ink2); }
.cap2 a { border-bottom: 1px solid var(--line); }

/* token */
.token { display: flex; align-items: center; gap: 22px; margin: 28px var(--gutter) 0; padding: 18px 22px; background: var(--bg2); border: 1px solid var(--line); }
.token .t { font-size: 13px; color: var(--ink2); min-width: 72px; }
.token code { font-size: 14px; letter-spacing: .2px; flex: 1; min-width: 0; word-break: break-all; }
.token code a { border-bottom: 1px solid var(--line); }
.token-actions { display: flex; gap: 12px; flex: none; }

/* buttons: square-ish */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; font-size: 14px; font-weight: 400; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 3px; background: transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn:hover { color: var(--ink); background: var(--bg2); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2a2a27; color: #fff; }
.btn.ghost { border-color: var(--line); }
.btn:disabled { opacity: .45; cursor: default; }
.btn .k { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; flex: none; }

/* spec row */
.specs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px var(--gutter) 0; }
.spec { padding: 22px 22px 26px; border-right: 1px solid var(--line); min-width: 0; }
.spec:first-child { padding-left: 0; }
.spec:last-child { border-right: 0; }
.spec small { display: block; font-size: 12px; color: var(--ink2); }
.spec strong { display: block; font-weight: 200; font-size: 54px; letter-spacing: -2px; line-height: 62px; margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.spec strong.sm { font-size: 40px; letter-spacing: -1.4px; }
.spec strong.xs { font-size: 30px; letter-spacing: -1px; }
.sheet td a:not(.addr), .note a, .lead a, .quiet-line a:not(.addr) { border-bottom: 1px solid var(--ink); }
.spec em { font-style: normal; font-size: 12px; color: var(--ink3); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 64px; margin: 104px var(--gutter) 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.step { padding-right: 0; }
.step .n, .sec .n, .manual-steps .n { font-size: 12px; color: var(--orange); }
.step h3 { font-weight: 300; font-size: 34px; letter-spacing: -.8px; margin: 10px 0; }
.step p { font-size: 15px; line-height: 23px; color: var(--ink2); max-width: 380px; }
.more { display: inline-block; margin-top: 14px; font-size: 14px; border-bottom: 1px solid var(--ink); }

/* page head */
.page-head { margin: 56px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: end; }
.page-head h1 { font-weight: 200; font-size: 72px; letter-spacing: -2.5px; line-height: 1; grid-column: 1 / -1; }
.page-head .lead { font-size: 15px; line-height: 22px; color: var(--ink2); max-width: 620px; }
.page-head .search { justify-self: end; }
.quiet-line { margin: 28px var(--gutter) 0; font-size: 15px; color: var(--ink2); }
.quiet-line + p { margin: 18px var(--gutter) 0; }
.note { font-size: 13px; line-height: 19px; color: var(--ink2); margin: 0 0 14px; max-width: 760px; }

/* search */
.search { display: flex; gap: 10px; flex-wrap: wrap; }
input[type=text] {
  font: inherit; font-family: var(--mono); font-size: 13px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--paper); color: var(--ink); width: 360px; max-width: 100%; min-width: 0;
}
input[type=text]::placeholder { color: var(--ink3); font-family: var(--font); }
input[type=text]:focus { outline: none; border-color: var(--ink); }

/* sections */
.block { margin: 56px var(--gutter) 0; }
.sec { display: flex; align-items: baseline; gap: 14px; font-weight: 300; font-size: 28px; letter-spacing: -.6px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--ink); }

/* spec sheet key/value */
.sheet { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 21px; }
.sheet th { text-align: left; font-weight: 400; color: var(--ink2); width: 230px; padding: 11px 24px 11px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.sheet td { padding: 11px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sheet + .table-wrap { margin-top: 24px; }

/* data tables */
.table-wrap { overflow-x: auto; }
.grid-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid-table th { text-align: left; font-weight: 400; font-size: 12px; color: var(--ink2); padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.grid-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid-table td.mono { font-size: 13px; }
.grid-table tr.quiet td { color: var(--ink2); padding: 22px 0; }
.grid-table.narrow { max-width: 340px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0 0; font-size: 14px; }
.pager a { border-bottom: 1px solid var(--ink); }
.pager .mono { font-size: 12px; color: var(--ink2); }

/* receipts (top 3) */
.receipts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 40px var(--gutter) 0; }
.receipt {
  position: relative; background: linear-gradient(#fffefb, #efece4); border: 1px solid #d6d3ca; padding: 18px 22px 20px;
  box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .35);
}
.receipt:nth-child(1) { transform: rotate(-1.2deg); }
.receipt:nth-child(3) { transform: rotate(1deg); }
.receipt-top { display: flex; justify-content: space-between; color: var(--ink); }
.small { font-size: 11px; letter-spacing: 2px; }
.receipt-rank { font-weight: 300; font-size: 76px; line-height: 1; letter-spacing: -2px; margin: 18px 0 16px; color: var(--ink); }
.receipt:first-child .receipt-rank { color: var(--orange); }
.perf { position: relative; border-top: 1px dashed #c9c5ba; margin: 0 -22px 14px; }
.perf::before, .perf::after { content: ''; position: absolute; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); }
.perf::before { left: -7px; }
.perf::after { right: -7px; }
.receipt-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
.receipt-rows dt { color: var(--ink2); }
.receipt-rows dd { text-align: right; min-width: 0; }

/* link manual */
.manual { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; margin: 40px var(--gutter) 0; align-items: start; }
.manual-device { background: radial-gradient(ellipse 60% 60% at 50% 50%, #fbfaf7 0%, #f1f0ec 45%, var(--bg) 75%); padding: 10px 0; }
.manual-device svg.device { display: block; width: 100%; height: auto; }
.manual-steps { list-style: none; border-top: 1px solid var(--ink); }
.manual-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.manual-steps h3 { font-weight: 300; font-size: 26px; letter-spacing: -.5px; margin-bottom: 6px; }
.manual-steps p { font-size: 14px; line-height: 21px; color: var(--ink2); margin-bottom: 14px; max-width: 460px; }
.manual-steps input[type=text] { width: 100%; max-width: 460px; }
#wallet-out { margin-top: 10px; font-size: 12px; overflow-wrap: anywhere; }
.msg { grid-column: 2; min-height: 22px; font-size: 14px; overflow-wrap: anywhere; }
.msg.ok { color: var(--ink); }
.msg.ok a { border-bottom: 1px solid var(--orange); }
.msg.err { color: #b42318; }

/* whitepaper curve */
.curve-wrap { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.curve { display: block; width: 100%; max-width: 760px; height: auto; }
.mult-tables { display: flex; gap: 48px; flex-wrap: wrap; }

/* footer */
.site-footer { display: flex; justify-content: space-between; gap: 20px; margin: 96px var(--gutter) 0; padding: 22px 0 30px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink2); }
.footer-links { display: flex; gap: 22px; }

/* narrower desktops */
@media (max-width: 1240px) {
  .mark { display: none; }
  .stage { min-height: 0; padding-bottom: 28px; }
  .cap, .cap2 { position: static; display: inline-block; vertical-align: top; margin: 18px 0 0; max-width: none; }
  .cap { margin-left: var(--gutter); }
  .cap2 { float: right; margin-right: var(--gutter); }
  .nav { gap: 30px; }
  .spec strong { font-size: 44px; line-height: 52px; }
}
@media (max-width: 1000px) {
  .mod-subs { display: none; }
  .mod svg { width: 28px; height: 42px; }
  .mod-title { font-size: 22px; line-height: 42px; }
  .receipts { grid-template-columns: 1fr; max-width: 420px; }
  .receipt:nth-child(n) { transform: none; }
}

/* phone */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .site-header { flex-direction: column; gap: 14px; padding-top: 16px; }
  .brand { font-size: 24px; line-height: 27px; }
  .nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%; border-top: 1px solid var(--line); }
  .mod { align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .mod svg { width: 20px; height: 30px; }
  .mod-title { font-size: 19px; line-height: 30px; }
  .stage { min-height: 0; padding: 18px 0 0; }
  .stage svg.device { width: 112%; max-width: none; margin-left: -6%; }
  .cap, .cap2 { position: static; display: block; float: none; text-align: left; margin: 4px var(--gutter) 0; max-width: none; }
  .cap2 { margin-top: 10px; }
  .token { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .token-actions { justify-content: stretch; }
  .token-actions .btn { flex: 1; justify-content: center; }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { padding: 16px 12px 18px; border-bottom: 1px solid var(--line); }
  .spec:nth-child(odd) { padding-left: 0; }
  .spec:nth-child(even) { border-right: 0; }
  .spec:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .spec strong { font-size: 34px; line-height: 42px; letter-spacing: -1px; }
  .spec strong.sm { font-size: 22px; letter-spacing: -.5px; }
  .spec strong.xs { font-size: 17px; letter-spacing: -.3px; }
  .steps { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
  .step { padding-right: 0; }
  .step h3 { font-size: 28px; }
  .page-head { grid-template-columns: 1fr; margin-top: 32px; }
  .page-head h1 { font-size: 52px; }
  .page-head .search { justify-self: stretch; }
  .search input[type=text] { flex: 1; width: auto; }
  .block { margin-top: 40px; }
  .sec { font-size: 23px; }
  .sheet th, .sheet td { display: block; width: auto; padding: 0; border: 0; }
  .sheet th { padding-top: 12px; font-size: 12px; }
  .sheet td { padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
  .receipts { max-width: none; }
  .grid-table { font-size: 12px; }
  .grid-table td, .grid-table th { white-space: nowrap; padding-right: 8px; }
  .grid-table td.mono, .grid-table .addr { font-size: 11.5px; }
  .grid-table .sub { display: none; }
  .table-wrap { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .manual { grid-template-columns: 1fr; gap: 10px; }
  .msg { grid-column: 1; }
  .site-footer { flex-wrap: wrap; }
}
