/* float. Open sky ground, one lime object, near-black type. Light by design. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 400; font-display: swap; src: url(/vendor/fonts/bricolage-grotesque-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url(/vendor/fonts/bricolage-grotesque-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url(/vendor/fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/vendor/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Spline Sans Mono"; font-weight: 400; font-display: swap; src: url(/vendor/fonts/spline-sans-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Spline Sans Mono"; font-weight: 500; font-display: swap; src: url(/vendor/fonts/spline-sans-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Spline Sans Mono"; font-weight: 600; font-display: swap; src: url(/vendor/fonts/spline-sans-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;

  --sky-top: #bfe3ff;
  --sky-bot: #f6fbff;
  --bg: #f6fbff;
  --panel: #ffffff;
  --panel-2: #f1f8fd;
  --sunk: #eaf4fb;
  --line: #d3e6f2;
  --line-2: #b8d4e6;

  --ink: #15201b;
  --ink-2: #4a5a52;
  --ink-3: #7b8b83;

  --lime: #8fd43a;
  --lime-deep: #3f8a14;
  --lime-dim: rgb(143 212 58 / 0.22);
  --live: var(--lime-deep);
  --live-fill: var(--lime);
  --warn: #c98a12;
  --bad: #d64545;

  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --page: 1220px;
  --radius: 14px;

  --step-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 140ms var(--step-out);
  --mid: 220ms var(--step-out);

  --z-sticky: 20;
  --z-top: 40;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, dt { margin: 0; padding: 0; }
[hidden] { display: none !important; }
li { list-style: none; }
a { color: inherit; }

.fig {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.num {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 50%; top: 0; translate: -50% -120%;
  z-index: var(--z-top);
  background: var(--ink); color: #fff;
  padding: 0.5rem 1rem; font-weight: 600; text-decoration: none; border-radius: 0 0 10px 10px;
  transition: translate var(--fast);
}
.skip:focus-visible { translate: -50% 0; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--lime-deep);
  outline-offset: 2px;
}

/* ---------- top bar ---------- */

.bar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.7rem var(--gutter);
  background: rgb(246 251 255 / 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.bar-id { display: flex; flex-direction: column; line-height: 1.1; }
.mark {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 800; letter-spacing: -0.045em; font-size: 1.45rem; text-decoration: none;
}
.mark-duck { width: 1.5rem; height: 1.5rem; }
.chain {
  font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-3);
  letter-spacing: 0.02em; padding-left: 0.1rem;
}

.ticker { display: flex; gap: clamp(1rem, 3vw, 2.25rem); justify-self: end; }
.ticker > div { display: flex; flex-direction: column; gap: 0.1rem; }
.ticker dt {
  font-size: 0.6875rem; color: var(--ink-3); text-transform: lowercase;
  letter-spacing: 0.04em;
}
.ticker dd { font-family: var(--mono); font-size: 0.9375rem; font-weight: 500; }
.pip-cell dd { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-2); font-size: 0.8125rem; }

.pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-3);
  transition: background var(--mid);
}
.pip[data-state="live"] { background: var(--lime); animation: breathe 2.4s ease-in-out infinite; }
.pip[data-state="bad"] { background: var(--bad); }

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 var(--lime-dim); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

/* ---------- buttons ---------- */

.btn {
  font: inherit; font-weight: 600;
  border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink);
  padding: 0.55rem 1rem; border-radius: 999px;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast), color var(--fast), box-shadow var(--fast);
}
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn:active:not(:disabled) { translate: 0 1px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-key { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-key:hover:not(:disabled) { background: #000; }

.btn-go {
  width: 100%;
  background: var(--lime); color: var(--ink); border-color: transparent;
  font-size: 1.0625rem; font-weight: 700; padding: 0.8rem 1rem; margin-top: 0.25rem;
  box-shadow: 0 10px 24px -12px rgb(63 138 20 / 0.6);
}
.btn-go:hover:not(:disabled) { background: #9fe04a; border-color: transparent; }

/* ---------- lede: the duck, floated ---------- */

main { display: block; overflow-x: clip; }

.lede {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  max-width: var(--page); margin-inline: auto;
}
.lede::before {
  /* the sky lives behind the hero only; the rest of the page sits on the pale ground */
  content: ""; position: absolute; inset: 0 -100vw 0 -100vw; z-index: -1;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bot));
}

.hero {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px; width: 100%;
  margin-inline: auto;
  perspective: 1200px;
  --tilt-x: 0deg; --tilt-y: 0deg; --shift: 0px;
  --waterline: 70%;
}
.hero-duck {
  position: absolute; left: 6%; top: 0;
  width: 88%; height: auto;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  animation: bob 4.2s ease-in-out infinite;
  will-change: transform;
}
/* the water sits over the hull: a translucent band of deeper sky, the duck mirrored into it,
   ripples spreading from where it floats, edges faded so it stays inside the hero */
.water {
  position: absolute; left: -14%; right: -14%; top: var(--waterline); bottom: -6%;
  overflow: hidden;
  background: linear-gradient(180deg, rgb(150 203 243 / 0.92) 0%, rgb(186 223 250 / 0.9) 40%, rgb(214 236 252 / 0.7) 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
              linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
              linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
.hero-reflection {
  position: absolute; left: 12%; top: -16%;
  width: 76%; height: auto;
  transform: scaleY(-1);
  opacity: 0.26;
  filter: blur(2.5px) saturate(0.9);
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.9) 0%, transparent 55%);
  animation: bob-reflection 4.2s ease-in-out infinite;
}
.ripple {
  position: absolute; left: 50%; top: 10%;
  width: 60%; aspect-ratio: 3.2 / 1;
  border: 1.5px solid rgb(255 255 255 / 0.8);
  border-radius: 50%;
  translate: -50% -50%;
  animation: ripple 4.2s ease-out infinite;
}
.ripple-2 { animation-delay: 2.1s; }
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: -1.2deg; }
  50% { translate: 0 -2.2%; rotate: 1.2deg; }
}
@keyframes bob-reflection {
  0%, 100% { translate: 0 0; opacity: 0.26; }
  50% { translate: 0 2.2%; opacity: 0.18; }
}
@keyframes ripple {
  0% { scale: 0.5; opacity: 0; }
  20% { opacity: 0.9; }
  100% { scale: 1.5; opacity: 0; }
}

.lede-copy { display: flex; flex-direction: column; gap: 1rem; max-width: 34rem; }

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: 0.96;
}
/* three lines, always: each span is one line */
h1 span { display: block; white-space: nowrap; }

.sub { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 44ch; }
.fine { font-size: 0.8125rem; color: var(--ink-3); max-width: 52ch; }

/* ---------- live rate strip ---------- */

.rates { border-block: 1px solid var(--line); background: var(--panel); }
.rates-head {
  max-width: var(--page); margin-inline: auto;
  display: flex; justify-content: space-between; gap: 0.1rem 1rem; flex-wrap: wrap;
  padding: 0.6rem var(--gutter);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 400;
  color: var(--ink-3); letter-spacing: 0.01em;
  border-bottom: 1px solid var(--line);
}
.rates-head span { color: var(--ink-3); }

.strip {
  max-width: var(--page); margin-inline: auto;
  display: grid; grid-template-columns: 1.2fr 1.2fr 0.8fr;
}
.strip .cell {
  padding: 1.15rem var(--gutter) 1.35rem;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.strip .cell:first-child { border-left: 0; }
.strip dt { font-size: 0.8125rem; color: var(--ink-2); }
.strip dd {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  letter-spacing: -0.035em;
}
.cell-note { font-size: 0.75rem; color: var(--ink-3); max-width: 34ch; }

.tick { animation: tick 700ms var(--step-out); }
@keyframes tick {
  from { color: var(--lime-deep); }
  to { color: inherit; }
}

/* ---------- what a transfer costs ---------- */

.quoted {
  max-width: var(--page); margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 5vw, 3rem);
}
.quoted-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3.5rem); align-items: end;
}
.quoted h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.03em;
  max-width: 20ch;
}

.costs { margin-top: clamp(1.25rem, 3vw, 2rem); }
.cost {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 0 clamp(1rem, 3vw, 2rem);
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.cost-work { justify-self: end; text-align: right; }
.cost:last-child { border-bottom: 1px solid var(--line); }
.cost-sym {
  font-family: var(--mono); font-size: 0.875rem; font-weight: 600;
  color: var(--ink-2); letter-spacing: 0.02em;
}
.cost-num {
  font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
}
.cost-work { font-size: 0.8125rem; color: var(--ink-3); max-width: 42ch; }
.costs-fine { font-size: 0.8125rem; color: var(--ink-3); max-width: 62ch; }

/* ---------- console ---------- */

.console {
  max-width: var(--page); margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas: "acct ops" "status ops";
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.acct { grid-area: acct; }
.status { grid-area: status; }
/* The one raised plane on the page. */
.ops {
  grid-area: ops;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgb(21 32 27 / 0.25), 0 1px 0 #fff inset;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
}

.acct { display: flex; flex-direction: column; gap: 0.6rem; }
.status { display: flex; flex-direction: column; gap: 0.85rem; border-top: 1px solid var(--line); padding-top: clamp(1.25rem, 3vw, 1.75rem); }
.acct h3, .status h3, .ops legend, .bal-head {
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em;
}
.addr-wrap { display: flex; gap: 0.5rem; align-items: stretch; }
.addr {
  flex: 1; min-width: 0;
  font-size: 0.8125rem; word-break: break-all; color: var(--ink);
  background: var(--sunk); border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}
.btn-small { font-size: 0.75rem; padding: 0.35rem 0.8rem; white-space: nowrap; }
.acct-status { font-size: 0.8125rem; color: var(--ink-2); }
.acct-note { font-size: 0.75rem; color: var(--ink-3); }
.bal-head { margin-top: 0.4rem; font-size: 0.875rem; color: var(--ink-2); }

.bal { display: flex; flex-direction: column; }
.bal-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.5rem 0; border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.bal-row span { color: var(--ink-2); font-family: var(--mono); font-size: 0.8125rem; }
.bal-row b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.bal-empty { font-size: 0.8125rem; color: var(--ink-3); padding-top: 0.4rem; }

.ops { display: flex; flex-direction: column; gap: 1.1rem; }
.ops fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ops fieldset:disabled { opacity: 0.6; }

.paywith { display: flex; flex-direction: column; gap: 0.5rem; }
.paywith legend { padding: 0; font-size: 0.875rem; color: var(--ink-2); }
/* Five tokens no longer fit one row even on a wide screen (they overflow the ops
   column by ~85px at 1400px and get clipped by main's overflow-x), so the row wraps. */
.seg {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  width: fit-content; max-width: 100%;
  padding: 0.25rem; background: var(--sunk); border-radius: var(--radius);
}
.seg label {
  position: relative;
  padding: 0.45rem 1rem;
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 500;
  color: var(--ink-2); cursor: pointer; border-radius: 999px;
  transition: background var(--fast), color var(--fast), box-shadow var(--fast), border-color var(--fast);
}
.seg label:hover { color: var(--ink); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--lime); color: var(--ink); box-shadow: 0 2px 8px -2px rgb(63 138 20 / 0.5); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--lime-deep); outline-offset: 2px; }
.seg .seg-price {
  display: block; font-size: 0.6875rem; opacity: 0.8;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.paywith-note { font-size: 0.75rem; color: var(--ink-3); }
.ops-locked {
  font-size: 0.8125rem; color: var(--ink-2);
  border-top: 1px solid var(--line); padding-top: 0.9rem;
}

.tabs { display: flex; gap: clamp(0.75rem, 2vw, 1.5rem); border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 0 0 0.6rem; cursor: pointer; }
.tab input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tab span {
  font-size: 0.9375rem; font-weight: 600; color: var(--ink-3);
  transition: color var(--fast);
}
.tab:hover span { color: var(--ink-2); }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--lime); scale: 0 1; transform-origin: left;
  transition: scale var(--mid);
}
.tab:has(input:checked) span { color: var(--ink); }
.tab:has(input:checked)::after { scale: 1 1; }
.tab:has(input:focus-visible) { outline: 2px solid var(--lime-deep); outline-offset: 3px; }

.pane { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field label { font-size: 0.75rem; color: var(--ink-2); }

input, select, textarea {
  font: inherit; font-size: 0.9375rem;
  color: var(--ink); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 0.6rem 0.75rem;
  width: 100%; min-width: 0;
  transition: border-color var(--fast), box-shadow var(--fast);
}
input.num, textarea.num { font-family: var(--mono); font-size: 0.8125rem; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--lime-deep); box-shadow: 0 0 0 3px var(--lime-dim); }
textarea { resize: vertical; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { appearance: none; margin: 0; }

.lb-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.lb { position: relative; }
.lb-btn {
  font: inherit; font-size: 0.9375rem; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  width: 100%; padding: 0.6rem 0.75rem;
  color: var(--ink); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--fast), color var(--fast), box-shadow var(--fast);
}
.lb-btn:hover:not(:disabled) { border-color: var(--ink-3); }
.lb-btn[aria-expanded="true"] { border-color: var(--lime-deep); box-shadow: 0 0 0 3px var(--lime-dim); }
.lb-btn:disabled { cursor: not-allowed; }
.lb-val { font-family: var(--mono); font-size: 0.875rem; }
.lb-caret {
  width: 7px; height: 7px; flex: none;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  rotate: 45deg; translate: 0 -2px;
  transition: rotate var(--mid), translate var(--mid);
}
.lb-btn[aria-expanded="true"] .lb-caret { rotate: 225deg; translate: 0 2px; border-color: var(--lime-deep); }

.lb-pop {
  position: fixed; inset: auto; margin: 0; padding: 0.3rem;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 24px 48px -20px rgb(21 32 27 / 0.35);
  min-width: 12rem; max-height: 15rem; overflow: auto;
}
.lb-pop:popover-open { display: block; }
.lb-opt {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.5rem 0.65rem; cursor: pointer; border-radius: 8px;
}
.lb-opt .lb-sym { font-family: var(--mono); font-size: 0.875rem; }
.lb-opt .lb-meta { font-size: 0.6875rem; color: var(--ink-2); }
.lb-opt.is-active { background: var(--lime); color: var(--ink); }
.lb-opt.is-active .lb-meta { color: var(--ink); }
.lb-opt[aria-selected="true"] .lb-sym::after {
  content: " selected"; font-size: 0.625rem; color: var(--ink-3); letter-spacing: 0.02em;
}
.lb-opt.is-active[aria-selected="true"] .lb-sym::after { color: var(--ink); }

.slider { display: flex; align-items: center; gap: 0.75rem; }
.slider-out {
  font-size: 0.875rem; color: var(--ink); min-width: 3.2rem; text-align: right;
}
input[type="range"] {
  appearance: none; -webkit-appearance: none;
  padding: 0; border: 0; background: transparent; box-shadow: none;
  height: 1.5rem; flex: 1; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -6px;
  background: var(--lime); border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 2px 6px rgb(21 32 27 / 0.25);
  transition: scale var(--fast);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; background: var(--lime); border: 2px solid #fff; border-radius: 50%;
}
input[type="range"]:hover::-webkit-slider-thumb { scale: 1.15; }
input[type="range"]:active::-webkit-slider-thumb { scale: 1.3; }

.field-err {
  font-size: 0.8125rem; color: var(--bad);
  border-top: 1px solid var(--bad); padding-top: 0.5rem;
}

.btn[data-pending] { cursor: progress; }
.btn-go[data-pending] {
  background: var(--panel); color: var(--lime-deep); border-color: var(--lime-deep); box-shadow: none;
}
.btn-go[data-pending] .btn-label::after {
  content: ""; display: inline-block; width: 0.55em; text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.pane-note { font-size: 0.75rem; color: var(--ink-3); }
.pane-note.strong { color: var(--ink-2); }

/* ---------- flow ---------- */

.flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  border-top: 1px solid var(--line); padding-top: 0.9rem;
}
.flow li { display: flex; flex-direction: column; gap: 0.45rem; }
.flow-dot {
  height: 4px; border-radius: 4px; background: var(--line-2);
  transition: background var(--mid);
}
.flow-name { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-3); transition: color var(--mid); }
.flow li[data-state="done"] .flow-dot { background: var(--lime); }
.flow li[data-state="done"] .flow-name { color: var(--ink-2); }
.flow li[data-state="active"] .flow-dot {
  background: var(--lime);
  animation: sweep 1.1s linear infinite;
}
.flow li[data-state="active"] .flow-name { color: var(--lime-deep); }
.flow li[data-state="failed"] .flow-dot { background: var(--bad); }
.flow li[data-state="failed"] .flow-name { color: var(--bad); }
.flow li[data-state="unknown"] .flow-dot { background: var(--warn); }
.flow li[data-state="unknown"] .flow-name { color: var(--warn); }

@keyframes sweep {
  0% { clip-path: inset(0 100% 0 0); }
  55% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

.state-line { font-size: 0.875rem; color: var(--ink-2); }
.state-hint { font-size: 0.75rem; color: var(--ink-3); max-width: 52ch; }
.quote-line {
  font-size: 0.875rem; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--sunk); padding: 0.6rem 0.75rem;
}

.settle { display: flex; flex-direction: column; gap: 0.45rem; }
.settle-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.settle-rows > div {
  background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.75rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.settle-rows dt, .settle-rows .lbl { font-size: 0.6875rem; color: var(--ink-3); }
.settle-rows .val { font-family: var(--mono); font-size: 1.125rem; font-weight: 500; }
.settle-rows .val.good { color: var(--lime-deep); }
.settle-note { font-size: 0.75rem; color: var(--ink-3); }
.settle a { color: var(--lime-deep); font-size: 0.8125rem; }

.feed summary {
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3);
  cursor: pointer; padding: 0.3rem 0;
}
.feed summary:hover { color: var(--ink-2); }
.log {
  margin: 0.5rem 0 0; max-height: 11rem; overflow: auto;
  font-size: 0.6875rem; line-height: 1.7; color: var(--ink-2);
  background: var(--sunk); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.6rem 0.75rem;
  white-space: pre-wrap; word-break: break-all;
}

/* ---------- how ---------- */

.how {
  border-top: 1px solid var(--line);
  max-width: var(--page); margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(2rem, 5vw, 3rem);
}
.how h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.035em;
}
.how-body {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 5vw, 4rem);
}
.how-item { padding: 1.15rem 0 1.4rem; border-top: 1px solid var(--line); }
.how-item.lead {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  column-gap: clamp(1.5rem, 5vw, 4rem);
}
.how-item.lead h3 { font-size: 1.3rem; }
.how-item.lead p { max-width: 62ch; font-size: 1.0625rem; }
.how-item h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.how-item p { font-size: 0.9375rem; color: var(--ink-2); max-width: 62ch; }
.how-live { color: var(--ink); }

.facts {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.facts > div {
  padding: 0.8rem 1.5rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.1rem;
}
.facts dt { font-size: 0.75rem; color: var(--ink-3); }
.facts dd { font-size: 0.8125rem; word-break: break-all; }

/* ---------- foot ---------- */

.foot {
  border-top: 1px solid var(--line);
  max-width: var(--page); margin-inline: auto;
  padding: 1.5rem var(--gutter) 3rem;
}
.foot p { font-size: 0.75rem; color: var(--ink-3); max-width: 70ch; }

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .console { grid-template-columns: 1fr; grid-template-areas: "acct" "ops" "status"; }
  .quoted-head { grid-template-columns: 1fr; align-items: start; }
  .lede { grid-template-columns: 1fr; align-items: start; gap: 0.5rem; }
  .hero { max-width: 380px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .cell:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr auto; row-gap: 0.75rem; }
  .ticker { grid-column: 1 / -1; grid-row: 2; justify-self: start; gap: 1.5rem; }
  .hero { max-width: 300px; }
  .strip { grid-template-columns: 1fr; }
  .strip .cell { border-left: 0; border-top: 1px solid var(--line); }
  .strip .cell:first-child { border-top: 0; }
  .strip .cell:nth-child(3) { grid-column: auto; }
  .how-body { grid-template-columns: 1fr; }
  .how-item.lead { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost { grid-template-columns: 4.5rem 1fr; row-gap: 0.4rem; }
  .cost-work { grid-column: 2; justify-self: start; text-align: left; }
  .settle-rows { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(5, 1fr); gap: 0.25rem; }
  .flow-name { font-size: 0.625rem; }
}

@media (max-width: 420px) {
  .row2 { grid-template-columns: 1fr; }
  .lb-pop { max-width: calc(100vw - 2rem); }
  .bar { gap: 0.5rem 0.75rem; }
  .btn-key { padding: 0.5rem 0.8rem; font-size: 0.875rem; }
  .ticker { gap: 1.1rem; }
  .flow-name { font-size: 0.5625rem; letter-spacing: -0.02em; }
}

@media (max-width: 560px) {
  /* Five gas tokens in a nowrap row needs ~507px. Wrap to two columns instead of
     scrolling: a token hidden off the edge of a scroller is a token nobody taps,
     and this picker decides what the user pays with. */
  .seg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
    padding: 0.4rem;
    border-radius: var(--radius);
  }
  .seg label {
    display: grid;
    align-content: center;
    min-height: 56px;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    text-align: left;
    line-height: 1.3;
  }
  /* odd one out gets the whole row rather than a lonely half */
  .seg label:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .seg label:has(input:checked) { border-color: var(--lime-deep); font-weight: 600; }
  .seg .seg-price {
    font-size: 0.625rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 345px) {
  .seg label { padding: 0.5rem 0.45rem; }
  .seg .seg-price { font-size: 0.5625rem; letter-spacing: -0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .flow li[data-state="active"] .flow-dot { clip-path: none; }
  .hero-duck, .hero-reflection, .ripple { animation: none; transform: none; }
  .hero-reflection { transform: scaleY(-1); }
}
