/* Owed — simple and dark. One loud thing (the terminal), everything else quiet. */
@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --bg: #08090b;
  --panel: #0f1114;
  --panel-2: #14171b;
  --line: #1e2227;
  --line-2: #2a2f36;
  --text: #eceef1;
  --muted: #8b929c;
  --faint: #565c66;
  --green: #3fb950;
  --green-soft: rgba(63, 185, 80, 0.13);
  --red: #f0716a;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --r-btn: 8px;
  --r-panel: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.hero-grid > *, .split > *, .flow > *, .flow-steps > *, .two > *, .grid-2 > *, .grid-3 > *, .vault-panel > *, .side > * { min-width: 0; }
.mono { font-family: var(--mono); font-variation-settings: "wdth" 87.5; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.green { color: var(--green); }
.red { color: var(--red); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(8, 9, 11, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--mono); font-variation-settings: "wdth" 87.5; letter-spacing: -0.02em; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 12px/1 var(--mono); font-variation-settings: "wdth" 87.5; color: var(--muted);
}
.ca b { color: var(--text); font-weight: 600; }
.ca span { white-space: nowrap; }
.ca:hover { border-color: var(--faint); color: var(--text); }
.ca[data-soon] { cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.icon-btn:hover { border-color: var(--faint); }

/* ------------------------------------------------------------ buttons & fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid var(--text);
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--faint); }
.btn-small { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
.btn-green { background: var(--green); border-color: var(--green); color: #04120a; }
.btn-green:hover { background: #4fd062; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: var(--muted); }
.field small { color: var(--faint); font-size: 13px; }
.input, .textarea, .select {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-btn);
  background: var(--bg); border: 1px solid var(--line-2); outline: none; transition: border-color 0.15s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--muted); }
.input.mono { font-size: 14px; }
.input[aria-invalid="true"] { border-color: var(--red); }
.prefix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--bg); overflow: hidden; }
.prefix:focus-within { border-color: var(--muted); }
.prefix > span { display: grid; place-items: center; padding: 0 0 0 14px; color: var(--faint); font: 400 14px var(--mono); font-variation-settings: "wdth" 87.5; }
.prefix .input { border: 0; padding-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  font: 500 13px/1 var(--mono); font-variation-settings: "wdth" 87.5; color: var(--muted);
}
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip:hover:not([aria-pressed="true"]) { border-color: var(--faint); color: var(--text); }

/* ------------------------------------------------------------ hero */
.hero { padding: 88px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero h1 {
  margin: 0; font: 600 clamp(34px, 4.7vw, 60px)/1.04 var(--mono); font-variation-settings: "wdth" 80;
  letter-spacing: -0.045em;
}
.hero h1 span { display: block; }
@media (min-width: 961px) { .hero h1 span { white-space: nowrap; } }
.hero .lede { margin: 26px 0 34px; max-width: 46ch; font-size: 19px; line-height: 1.5; color: var(--muted); }
.hero .lede strong { color: var(--text); font-weight: 500; }

/* the terminal */
.term { border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--panel); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--faint); font: 400 12px var(--mono); font-variation-settings: "wdth" 87.5; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar span { margin-left: 8px; }
.term-body { padding: 20px 20px 22px; font: 400 13.5px/1.75 var(--mono); font-variation-settings: "wdth" 87.5; }
.term-cmd { display: flex; align-items: center; gap: 10px; }
.term-cmd .ps { color: var(--green); }
.term-cmd label { color: var(--muted); white-space: nowrap; }
.term-cmd input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 2px 0; font: inherit; color: var(--text); caret-color: var(--green); }
.term-cmd input::placeholder { color: var(--faint); }
.term-out { margin-top: 14px; display: grid; grid-template-columns: 8.5ch 1fr; column-gap: 14px; row-gap: 2px; }
.term-out dt { color: var(--faint); }
.term-out dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-out dd button { all: unset; cursor: pointer; border-bottom: 1px dashed var(--faint); }
.term-note { margin: 14px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.6; white-space: normal; }
.term-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.term-actions .btn { height: 38px; font-size: 14px; }

/* ------------------------------------------------------------ sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 14px; font: 600 clamp(26px, 3.2vw, 36px)/1.12 var(--mono); font-variation-settings: "wdth" 80; letter-spacing: -0.035em; text-wrap: balance; }
.section .intro { margin: 0 0 40px; max-width: 60ch; color: var(--muted); font-size: 17px; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }

/* contribution graph of real launches */
.ledger-line { margin: 0 0 26px; font-size: 19px; line-height: 1.55; max-width: 62ch; color: var(--muted); }
.ledger-line b { font: 600 18px var(--mono); font-variation-settings: "wdth" 87.5; color: var(--text); }
.ledger-line b.green { color: var(--green); }
.graph-scroll { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.graph { --cell: 12px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, var(--cell)); grid-auto-columns: var(--cell); gap: 3px; width: max-content; }
.graph span { border-radius: 3px; background: #15181c; transition: background 0.25s, box-shadow 0.25s; }
.graph span[data-l="1"] { background: #2f353d; }
.graph span[data-l="2"] { background: #545c66; }
.graph span[data-l="3"] { background: #959ca6; }
.graph span[data-l="4"] { background: var(--text); }
.graph span.today { box-shadow: inset 0 0 0 1px var(--muted); }
.graph span.lit { background: #262b32; }
.graph-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--faint); font-size: 13px; }
.graph-key { display: inline-flex; align-items: center; gap: 4px; }
.graph-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* how it works: a commit graph */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line-2); }
.steps li { position: relative; padding: 0 0 34px 48px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: ""; position: absolute; left: 3px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--text);
}
.steps li:last-child::before { border-color: var(--green); }
.steps h3 { margin: 0 0 6px; font: 600 17px/1.3 var(--mono); font-variation-settings: "wdth" 87.5; letter-spacing: -0.02em; }
.steps h3 small { color: var(--faint); font-weight: 400; margin-right: 8px; }
.steps p { margin: 0; color: var(--muted); max-width: 52ch; }

.file { border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--panel); overflow: hidden; }
.file-tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--mono); font-variation-settings: "wdth" 87.5; color: var(--muted); }
.file-tab span:first-child { color: var(--text); }
.file pre { margin: 0; padding: 18px 16px; font: 400 14px/1.7 var(--mono); font-variation-settings: "wdth" 87.5; overflow-x: auto; }
.file pre .k { color: var(--muted); }
.file pre .c { color: var(--faint); }
.file-caption { margin: 14px 2px 0; color: var(--faint); font-size: 14px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.two > div { background: var(--bg); padding: 30px 30px 32px; }
.two h3 { margin: 0 0 4px; font: 600 19px/1.3 var(--mono); font-variation-settings: "wdth" 87.5; letter-spacing: -0.02em; }
.two .sub { margin: 0 0 20px; color: var(--muted); }
.two ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.two li { position: relative; padding-left: 22px; color: var(--muted); }
.two li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 2px; background: var(--faint); }
.two li b { color: var(--text); font-weight: 500; }

/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--faint); padding: 0 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: var(--panel); }
.table .num { text-align: right; font-family: var(--mono); font-variation-settings: "wdth" 87.5; font-size: 13.5px; white-space: nowrap; }
.table th.num { font-family: var(--sans); font-size: 13px; }
.cell-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-id img { width: 32px; height: 32px; border-radius: 8px; background: var(--panel-2); object-fit: cover; flex: none; }
.cell-id img.round { border-radius: 50%; }
.cell-id b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28ch; }
.cell-id small { display: block; color: var(--faint); font: 400 12.5px var(--mono); font-variation-settings: "wdth" 87.5; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge.ok { border-color: transparent; background: var(--green-soft); color: var(--green); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bar { width: 72px; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; display: inline-block; vertical-align: middle; }
.bar i { display: block; height: 100%; background: var(--text); }
.empty { padding: 34px 0 8px; color: var(--muted); }
.empty p { margin: 0 0 16px; }
.table-scroll { overflow-x: auto; }

/* transparency */
.contracts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contracts div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contracts dt { color: var(--muted); }
.contracts dd { margin: 0; font: 400 13.5px var(--mono); font-variation-settings: "wdth" 87.5; overflow-wrap: anywhere; }
.contracts dd a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contracts dd a:hover { border-color: var(--muted); }
.contracts p { margin: 4px 0 0; font-family: var(--sans); color: var(--faint); font-size: 14px; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 22px var(--mono); color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 68ch; }

.closing { padding: 96px 0 104px; border-top: 1px solid var(--line); }
.closing-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.closing canvas { flex: none; width: 560px; height: 560px; margin: -80px -40px -80px 0; }
@media (max-width: 960px) { .closing-in { flex-direction: column-reverse; align-items: flex-start; } .closing canvas { width: 320px !important; height: 320px !important; margin: -30px 0 -20px; align-self: center; } }
.closing h2 { margin: 0 0 30px; font: 600 clamp(34px, 5vw, 60px)/1.05 var(--mono); font-variation-settings: "wdth" 80; letter-spacing: -0.045em; }

/* ------------------------------------------------------------ pages */
.page { padding: 56px 0 80px; }
.page-head { margin-bottom: 34px; }
.page-head h1 { margin: 0 0 10px; font: 600 clamp(30px, 4vw, 44px)/1.08 var(--mono); font-variation-settings: "wdth" 80; letter-spacing: -0.04em; }
.page-head p { margin: 0; color: var(--muted); max-width: 62ch; font-size: 17px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.toolbar .input { max-width: 340px; }
.tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.tabs button { height: 34px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.select { width: auto; min-height: 42px; padding: 8px 12px; }

/* stepped forms (launch, claim) */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.flow-steps { display: grid; gap: 16px; }
.step { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); padding: 24px; }
.step[data-state="locked"] { opacity: 0.5; }
.step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.step-head b { font: 600 13px var(--mono); font-variation-settings: "wdth" 87.5; color: var(--faint); }
.step-head h2 { margin: 0; font: 600 18px/1.3 var(--mono); font-variation-settings: "wdth" 87.5; letter-spacing: -0.02em; }
.step-head .done { margin-left: auto; color: var(--green); font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.stack { display: grid; gap: 16px; }
.repo-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.repo-card img { width: 44px; height: 44px; border-radius: 10px; flex: none; background: var(--panel-2); }
.repo-card b { font: 600 15px var(--mono); font-variation-settings: "wdth" 87.5; }
.repo-card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.repo-card .meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; color: var(--faint); font-size: 13px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; text-align: right; font: 400 13.5px var(--mono); font-variation-settings: "wdth" 87.5; overflow-wrap: anywhere; }
.drop { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 10px; cursor: pointer; background: var(--bg); }
.drop:hover, .drop.drag { border-color: var(--muted); }
.drop img, .drop .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--panel-2); flex: none; display: grid; place-items: center; color: var(--faint); font: 400 22px var(--mono); }
.drop b { font-weight: 500; }
.side { position: sticky; top: 84px; display: grid; gap: 16px; }
.side .step { padding: 22px; }
.log { margin: 16px 0 0; padding: 0; list-style: none; font: 400 13px/1.7 var(--mono); font-variation-settings: "wdth" 87.5; color: var(--muted); }
.log li::before { content: "› "; color: var(--faint); }
.log li.ok { color: var(--green); }
.log li.ok::before { content: "✓ "; color: var(--green); }
.log li.err { color: var(--red); }
.log li.err::before { content: "× "; color: var(--red); }
.log a { color: var(--text); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.links a { font-size: 13px; text-decoration: none; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); }
.links button { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; }
.links a:hover, .links button:hover { color: var(--text); border-color: var(--faint); }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); font-size: 14px; }
.notice.ok { border-color: transparent; background: var(--green-soft); color: var(--green); }
.notice.err { border-color: rgba(240, 113, 106, 0.4); color: var(--red); }
.copy { all: unset; cursor: pointer; color: var(--muted); font-size: 13px; border-bottom: 1px dashed var(--faint); }
.copy:hover { color: var(--text); }
.copy:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* repo page */
.repo-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.repo-head img { width: 72px; height: 72px; border-radius: 16px; background: var(--panel-2); flex: none; }
.repo-head h1 { margin: 0 0 6px; font: 600 clamp(24px, 3.4vw, 36px)/1.1 var(--mono); font-variation-settings: "wdth" 80; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.repo-head p { margin: 0; color: var(--muted); max-width: 64ch; }
.repo-head .meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--faint); font-size: 14px; }
.vault-panel { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; margin-bottom: 26px; }
.vault-panel > div { background: var(--panel); padding: 20px 22px; min-width: 0; }
.vault-panel small { display: block; color: var(--faint); font-size: 13px; margin-bottom: 6px; }
.vault-panel strong { display: block; font: 600 20px/1.2 var(--mono); font-variation-settings: "wdth" 87.5; overflow-wrap: anywhere; }
.vault-panel .addr { font-size: 13px; font-weight: 500; }

/* toast + modal */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 10px; font-weight: 500; font-size: 14px; transition: 0.2s; z-index: 60; max-width: calc(100% - 40px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal { border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--panel); color: var(--text); padding: 0; width: min(420px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(0, 0, 0, 0.7); }
.modal-in { padding: 24px; display: grid; gap: 16px; }
.modal h2 { margin: 0; font: 600 18px var(--mono); font-variation-settings: "wdth" 87.5; }
.wallet-list { display: grid; gap: 8px; }
.wallet-list button { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; text-align: left; }
.wallet-list button:hover { border-color: var(--faint); }
.wallet-list img { width: 28px; height: 28px; border-radius: 6px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot-note { margin: 0; color: var(--faint); font-size: 14px; }
.foot-links { margin-left: auto; display: flex; gap: 20px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .flow { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .side { position: static; }
  .vault-panel { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ca b { display: none; }
  .ca { padding: 0 10px; }
  .top-right { gap: 6px; }
  .brand span { display: none; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top-in { gap: 14px; }
  .two { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contracts div { grid-template-columns: 1fr; gap: 6px; }
  .section { padding: 56px 0; }
  .hide-sm { display: none; }
  .table td, .table th { padding-left: 8px; padding-right: 8px; }
  .term-out { grid-template-columns: 7.5ch 1fr; }
  .mobile-nav { display: flex; }
}
.mobile-nav { display: none; gap: 6px; padding: 10px 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.mobile-nav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.mobile-nav a[aria-current="page"] { color: var(--bg); background: var(--text); border-color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
