/* FELL — one stylesheet for every page.
 *
 * Surfaces (every word sits on one of these, never on the bare photograph):
 *   .glass   thin frosted sheet — display type, heroes, section heads     (white 46%, blur 18)
 *   .card    body card — prose, forms, numbers                              (white 64%, blur 22)
 *   .slab    dense sheet — tables and the app's working panels             (white 78%, blur 24)
 *   .band    full-width strip of figures                                    (white 56%, blur 16)
 * Ink per role: --ink for body text on any surface, --muted for secondary text on .card/.slab only,
 * --plum for buttons and marks. Colour lives in tints and chips, not in 12px text.
 */
:root {
  --ink: #1b1d26;
  --ink-2: #353846;
  --muted: #545665;
  --plum: #2a3040;
  --plum-2: #83463d;
  --heather: #c9907c;
  --lilac: #efe4de;
  --moss: #2f5a3c;
  --moss-tint: #dcefe0;
  --amber: #8a5a00;
  --amber-tint: #fbefd2;
  --rose: #9b2242;
  --rose-tint: #f9dde4;
  --line: rgba(34,30,38, 0.12);
  --glass: rgba(255, 255, 255, 0.56);
  --card: rgba(255, 255, 255, 0.70);
  --slab: rgba(255, 255, 255, 0.8);
  --blur: saturate(1.45) blur(18px);
  --r-xl: 34px; --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 1140px;
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 50px -24px rgba(24,20,26, 0.35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: #b3aeae; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
/* The ground: one photograph, fixed, lifted by a pale veil so glass reads as glass. */
.ground { position: fixed; inset: 0; z-index: -2; background: #a9a6a8 url('../img/ground-1440.jpg') center 38% / cover no-repeat; }
.ground::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 50% 30%, rgba(255,255,255,0.10), rgba(255,255,255,0.0) 60%),
  linear-gradient(180deg, rgba(250,246,243,0.18), rgba(246,240,236,0.06) 40%, rgba(242,234,230,0.22)); }
@media (min-width: 1500px) { .ground { background-image: url('../img/ground-2400.jpg'); } }
@media (max-width: 640px) { .ground { background-image: url('../img/ground-900.jpg'); background-position: center 30%; } }

a { color: inherit; }
img, svg { display: block; }
.wrap { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }
.serif { font-family: var(--serif); font-weight: 400; }
em.it, .it { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--plum-2); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- surfaces */
.glass, .card, .slab, .band, .pill-nav, .chip, .btn.ghost {
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.glass { background: var(--glass); border-radius: var(--r-xl); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.5); }
.card  { background: var(--card);  border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.55); }
.slab  { background: var(--slab);  border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.65); }
.band  { background: rgba(255,255,255,0.56); border-top: 1px solid rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.6); }

/* ---------------------------------------------------------------- nav */
.top { position: sticky; top: 14px; z-index: 50; padding: 0 16px; }
.pill-nav {
  width: min(1180px, 100%); margin: 14px auto 0; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.62); border: 1px solid rgba(255,255,255,0.7); border-radius: 999px;
  padding: 8px 8px 8px 12px; box-shadow: 0 10px 34px -18px rgba(24,20,26,.45);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 14px; }
.brand .mark { width: 34px; height: 34px; }
.brand .word { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -0.2px; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(42,48,64,0.08); color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; border-radius: 999px; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 64px; flex-direction: column; background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 22px; padding: 10px; box-shadow: var(--shadow); }
  .top.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .menu-btn { display: block; }
  .pill-nav { justify-content: space-between; }
  .nav-end .btn { padding: 10px 16px; }
}

/* ---------------------------------------------------------------- buttons & chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 600 16px/1.2 var(--sans); padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--plum); color: #fff; transition: transform .15s ease, background .15s ease, box-shadow .15s;
  box-shadow: 0 10px 24px -12px rgba(42,48,64,.8);
}
.btn:hover { background: var(--plum-2); transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: rgba(255,255,255,0.8); color: var(--ink); box-shadow: 0 8px 22px -16px rgba(24,20,26,.5); }
.btn.ghost:hover { background: #fff; }
.btn.sm { padding: 10px 18px; font-size: 14.5px; }
.btn.xs { padding: 6px 12px; font-size: 13px; box-shadow: none; }
.btn.block { width: 100%; }
.btn .arr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; background: rgba(255,255,255,.18); margin-right: -10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,0.62); border: 1px solid rgba(255,255,255,.7);
}
.chip .dot { width: 7px; height: 7px; border-radius: 9px; background: #3f9a5a; box-shadow: 0 0 0 3px rgba(63,154,90,.2); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 99px; background: var(--lilac); color: var(--plum); }
.tag.good { background: var(--moss-tint); color: var(--moss); }
.tag.warn { background: var(--amber-tint); color: var(--amber); }
.tag.bad { background: var(--rose-tint); color: var(--rose); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 40px; display: grid; place-items: center; }
.hero .glass { width: min(860px, 100%); padding: 54px 52px 44px; text-align: center; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(76px, 12vw, 128px); line-height: .9; letter-spacing: -2.5px; margin: 22px 0 18px; }
.hero .lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 610px; margin: 0 auto; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; margin: 30px 0 22px; flex-wrap: wrap; }
.hero .chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.live-line { margin-top: 22px; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 14px; color: var(--ink-2);
  background: rgba(255,255,255,.6); padding: 9px 18px; border-radius: 999px; }
.live-line b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- figures band */
.figures { margin: 36px 0 0; padding: 26px 0; }
.figures .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fig { text-align: center; }
.fig .v { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.fig .k { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; font-weight: 500; }
@media (max-width: 720px) { .figures .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 22px; } .fig .v { font-size: 36px; } }

/* ---------------------------------------------------------------- sections */
section.sec { padding: 84px 0 12px; }
.sec-head { width: min(760px, 100%); margin: 0 auto 28px; text-align: center; padding: 30px 36px; }
.eyebrow { font-size: 12.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); }
.sec-head h2, h2.big { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 56px); line-height: 1.02; letter-spacing: -1px; margin: 10px 0 12px; }
.sec-head p { font-size: 17.5px; color: var(--ink-2); margin: 0 auto; max-width: 600px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card.pad { padding: 28px 30px; }
.card h3, .slab h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 8px 0 10px; letter-spacing: -.3px; }
.card p { color: var(--ink-2); margin: 0 0 10px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
ul.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--ink-2); font-size: 15.5px; }
ul.ticks li::before { content: ''; width: 18px; height: 18px; margin-top: 3px; border-radius: 99px; background: var(--moss-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%232f5a3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
ul.ticks.no li::before { background: var(--rose-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 6l6 6M12 6l-6 6' fill='none' stroke='%239b2242' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.step-n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; background: var(--plum); color: #fff; }

/* ---------------------------------------------------------------- tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 4px 14px; }
.table td { padding: 14px; background: rgba(255,255,255,0.72); font-size: 15px; }
.table tr:nth-child(even) td { background: rgba(250,246,243,0.86); }
.table td:first-child { border-radius: 14px 0 0 14px; }
.table td:last-child { border-radius: 0 14px 14px 0; text-align: right; }
.table .num { text-align: right; }
.table th.num { text-align: right; }
.tk { display: flex; align-items: center; gap: 12px; }
.badge { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 11.5px; letter-spacing: .02em; color: #fff; background: var(--plum); }
.tk .nm { font-weight: 600; }
.tk .sub { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; padding: 10px 14px 14px; }
@media (max-width: 720px) { .table .hide-sm { display: none; } .table td, .table th { padding: 12px 10px; } }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 10px; width: min(820px, 100%); margin: 0 auto; }
.faq details { padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-size: 28px; line-height: 18px; color: var(--plum); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
footer.foot { margin: 90px 0 26px; }
footer .card { padding: 30px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
footer h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
footer a { display: block; text-decoration: none; color: var(--ink-2); font-size: 14.5px; padding: 3px 0; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .fine a { display: inline; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { footer .card { grid-template-columns: 1fr 1fr; } footer .card > :first-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- app */
.app { padding: 34px 0 20px; display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .app { grid-template-columns: 1fr; } }
.side { padding: 16px; position: sticky; top: 96px; }
@media (max-width: 980px) { .side { position: static; } }
.side h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 4px 6px 12px; }
.mkt-list { display: grid; gap: 6px; }
.mkt { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; border: 1px solid transparent; background: rgba(255,255,255,.55);
  padding: 10px; border-radius: 16px; cursor: pointer; font: inherit; color: inherit; }
.mkt:hover { background: rgba(255,255,255,.85); }
.mkt[aria-pressed="true"] { background: #fff; border-color: rgba(42,48,64,.35); box-shadow: 0 6px 18px -12px rgba(42,48,64,.6); }
.mkt .r { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mkt .r b { display: block; color: var(--ink); font-size: 14px; }
.mkt .mine { font-size: 11px; font-weight: 700; color: var(--moss); }
.main { display: grid; gap: 18px; }
.mhead { padding: 22px 26px; display: grid; grid-template-columns: 1fr auto; gap: 18px 20px; align-items: center; }
.mhead .mstats { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
.mhead .tk .badge { width: 46px; height: 46px; border-radius: 14px; font-size: 12.5px; }
.mhead h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin: 0; letter-spacing: -.6px; }
.mstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 640px) { .mstats { grid-template-columns: 1fr 1fr; } }
.mstat .k { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.mstat .v { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pos { padding: 24px 26px; }
.pos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 720px) { .pos-grid { grid-template-columns: 1fr 1fr; } }
.kv { background: rgba(255,255,255,.66); border-radius: 16px; padding: 14px 16px; }
.kv .k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kv .v { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kv .s { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter { margin-top: 18px; }
.meter .bar { position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, #cfe8d4 0%, #e8ecc4 55%, #f6dcc0 78%, #f3c4cf 100%); }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--plum); min-width: 0; transition: width .3s ease; }
.meter .ghost { position: absolute; top: -3px; bottom: -3px; width: 3px; border-radius: 3px; background: var(--ink); opacity: .55; }
.meter .line { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--rose); }
.meter .legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.act { padding: 8px 8px 22px; }
.tabs { display: flex; gap: 4px; padding: 6px; background: rgba(42,48,64,.07); border-radius: 999px; margin: 8px 12px 18px; overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px 14px; border-radius: 999px; font: 600 14.5px var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -8px rgba(24,20,26,.6); }
.pane { padding: 0 18px; display: grid; gap: 14px; }
.field { background: #fff; border-radius: 18px; padding: 14px 16px; border: 1px solid var(--line); }
.field:focus-within { border-color: rgba(42,48,64,.5); box-shadow: 0 0 0 4px rgba(170,110,92,.2); }
.field .top-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 500; }
.field .in-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 28px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.field input::placeholder { color: #b7aeaa; }
.field .unit { font-weight: 700; font-size: 15px; padding: 7px 12px; border-radius: 99px; background: var(--lilac); color: var(--plum); }
.field .helpers { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.linkbtn { border: 0; background: rgba(42,48,64,.08); color: var(--plum); font: 600 12.5px var(--sans); padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.linkbtn:hover { background: rgba(42,48,64,.16); }
.preview { background: rgba(255,255,255,.6); border-radius: 16px; padding: 12px 16px; display: grid; gap: 7px; font-size: 14.5px; }
.preview .row { display: flex; justify-content: space-between; gap: 12px; }
.preview .row span:first-child { color: var(--muted); }
.preview .row b { font-weight: 650; font-variant-numeric: tabular-nums; }
.steps { display: grid; gap: 8px; }
.stepi { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; background: rgba(255,255,255,.6); border-radius: 14px; padding: 10px 12px; font-size: 14.5px; }
.stepi .ic { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(42,48,64,.1); color: var(--plum); }
.stepi.done .ic { background: var(--moss-tint); color: var(--moss); }
.stepi.run .ic { background: var(--plum); color: #fff; animation: pulse 1.2s infinite; }
.stepi.fail .ic { background: var(--rose-tint); color: var(--rose); }
.stepi a { font-size: 13px; color: var(--plum); }
@keyframes pulse { 50% { opacity: .55; } }
.msg { border-radius: 14px; padding: 12px 14px; font-size: 14.5px; }
.msg.warn { background: var(--amber-tint); color: #5a3b00; }
.msg.bad { background: var(--rose-tint); color: #6d1830; }
.msg.good { background: var(--moss-tint); color: #1d4128; }
.msg.info { background: rgba(239,230,225,.9); color: var(--ink-2); }
.wallet-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #fff; font-weight: 600; font-size: 14px; border: 1px solid var(--line); cursor: pointer; }
.wallet-chip .dot { width: 8px; height: 8px; border-radius: 9px; background: #3f9a5a; }
.skeleton { display: inline-block; min-width: 60px; height: 1em; border-radius: 6px; background: linear-gradient(90deg, rgba(42,48,64,.08), rgba(42,48,64,.16), rgba(42,48,64,.08)); background-size: 200% 100%; animation: sk 1.2s infinite linear; vertical-align: -2px; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 99; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); max-width: calc(100% - 32px); }
.toast a { color: #f3dcc6; }

/* ---------------------------------------------------------------- docs */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 18px; padding: 34px 0; align-items: start; }
.doc nav.toc { padding: 18px; position: sticky; top: 96px; }
.doc nav.toc a { display: block; text-decoration: none; padding: 6px 10px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); }
.doc nav.toc a:hover { background: rgba(42,48,64,.08); }
.doc article { padding: 36px 40px; }
.doc article h1 { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; margin: 0 0 12px; letter-spacing: -1px; }
.doc article h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 38px 0 8px; letter-spacing: -.4px; }
.doc article p, .doc article li { color: var(--ink-2); font-size: 16.5px; }
.doc article code { font-family: var(--mono); font-size: .88em; background: rgba(42,48,64,.08); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.doc article a { color: var(--plum); }
.addr-table td { font-size: 14px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .doc nav.toc { position: static; } .doc article { padding: 26px 22px; } }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 40px 0 20px; }
  .hero .glass { padding: 36px 22px 28px; border-radius: 28px; }
  .hero .lede { font-size: 17.5px; }
  .sec-head { padding: 24px 20px; }
  .card.pad { padding: 22px 20px; }
  .mhead, .pos { padding: 20px 18px; }
  .pane { padding: 0 10px; }
  .field input { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* grid children must be allowed to shrink, or one long line widens the whole page on a phone */
.app > *, .main > *, .doc > * { min-width: 0; }
.badge.long { font-size: 10px; letter-spacing: -0.02em; }
@media (max-width: 980px) {
  .side { padding: 12px; }
  .side h2 { font-size: 22px; margin: 0 4px 8px; }
  .mkt-list { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .mkt { min-width: 210px; scroll-snap-align: start; }
  .side > p { display: none; }
  .mhead { grid-template-columns: 1fr; }
  .mhead h1 { font-size: 36px; }
}
.pane > *, .field .in-row > * { min-width: 0; }
.field input { width: 100%; }
@media (max-width: 640px) {
  .tabs { margin: 6px 6px 14px; }
  .tabs button { padding: 9px 10px; font-size: 13.5px; }
}
/* long tables show twelve rows; the rest wait behind a button (a forty-row table is one uniform pane) */
.table.fold tbody tr:nth-child(n+13) { display: none; }
.table.fold.open tbody tr { display: table-row; }
.more { display: block; margin: 12px auto 0; }
.nav-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.55); text-decoration: none; transition: background .15s; }
.nav-icon:hover { background: #fff; }
.nav-end .btn { white-space: nowrap; }
@media (max-width: 440px) {
  .nav-end { gap: 6px; }
  .nav-end .btn .arr { display: none; }
  .nav-end .btn { padding: 10px 14px; }
  .nav-icon { width: 36px; height: 36px; }
  .brand { margin-right: 4px; }
}

/* ---------------------------------------------------------------- the order book */
@media (min-width: 981px) { .mkt-list { max-height: calc(100vh - 220px); overflow-y: auto; padding-right: 4px; } }
.bookbox, .mine { padding: 20px 22px; }
.bookbox h2, .mine h2, .act h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0; letter-spacing: -.3px; }
.book-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.book-head #fresh { font-size: 12.5px; color: var(--muted); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .book-grid { grid-template-columns: 1fr; } }
.book-t td { padding: 10px 12px; font-size: 14.5px; }
.book-t.ask td:first-child { box-shadow: inset 4px 0 0 var(--heather); }
.book-t.bid td:first-child { box-shadow: inset 4px 0 0 var(--plum); }
.book-t tr.sel td { background: #fff; }
.empty { background: rgba(255,255,255,.62); border-radius: 14px; padding: 16px; font-size: 14.5px; color: var(--ink-2); }
.empty a { color: var(--plum); font-weight: 600; }
.none { color: var(--muted); font-weight: 500; font-size: 16px; }
.seg { display: flex; gap: 4px; padding: 4px; background: rgba(42,48,64,.07); border-radius: 14px; flex-wrap: wrap; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; font: 600 13.5px var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 3px 10px -7px rgba(24,20,26,.6); }
.field .seg { margin-top: 8px; }
.act-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; }
.act { padding-top: 8px; }
.msg a { color: inherit; font-weight: 650; }
input[type=range] { accent-color: var(--plum); height: 28px; }

/* ---------------------------------------------------------------- v2: dawn over a cloud sea
 * The ground is a sunrise inversion: blue-grey sky, a dusk-rose band, slate peaks, white cloud, dark bracken.
 * Every ink and tint below is taken from it. The hero sits in the sky so the peaks and the cloud sea stay in
 * view; below the hero the photograph softens (a blurred copy fades in on scroll) so cards read over it.
 */
h1, h2, h3, .fig .v, .brand .word, .mhead h1 { font-weight: 500 !important; }
.ground::before { content: ''; position: absolute; inset: -40px; background: inherit; filter: blur(28px) saturate(1.1); opacity: var(--soft, 0); transition: opacity .2s linear; }
.ground::after { background:
  linear-gradient(180deg, rgba(250,246,243,0.10), rgba(250,246,243,0) 35%, rgba(24,20,26,0) 60%, rgba(24,20,26,0.12)); }
.hero { min-height: calc(100vh - 86px); display: block; place-items: normal; padding: 46px 0 36px; position: relative; }
.hero .glass { width: 100%; max-width: 540px; margin: 0; text-align: left; padding: 30px 34px 26px; display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start;
  background: rgba(250,246,243,0.52); }
.hero .hero-l { display: grid; gap: 6px; }
.hero h1 { font-size: clamp(96px, 10vw, 140px); line-height: .8; letter-spacing: -3px; margin: 12px 0 2px; }
.hero .motto { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 34px; line-height: 1.05; color: var(--plum-2); margin: 0; }
.hero .lede { margin: 4px 0 0; max-width: none; font-size: 17px; }
.hero .ctas { justify-content: flex-start; margin: 18px 0 12px; }
.hero .chips { justify-content: flex-start; }
.hero .live-line { margin-top: 14px; justify-content: flex-start; }
.hero .chip { background: rgba(255,255,255,.66); }
.ticket { position: absolute; right: 0; bottom: 64px; width: 350px; display: grid; gap: 11px; padding: 20px 22px 20px; background: rgba(250,246,243,.80); }
.ticket .t-top { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; }
.ticket .nm { font-weight: 650; } .ticket .sub { font-size: 12.5px; color: var(--muted); }
.ticket .t-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); }
.ticket .t-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ticket .t-row.you b { color: var(--plum-2); font-size: 18px; }
.ticket .t-line { position: relative; height: 4px; border-radius: 9px; background: linear-gradient(90deg, rgba(42,48,64,.35), rgba(147,84,74,.7)); margin: 6px 7px; }
.ticket .t-line i { position: absolute; top: -5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 9px; background: var(--plum); border: 2px solid #fff; }
.ticket .t-line i.you { background: var(--plum-2); }
.ticket p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.scroll-cue { position: absolute; left: 50%; transform: translateX(-50%); bottom: 30px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: rgba(250,246,243,.72); padding: 8px 14px; border-radius: 99px; text-decoration: none; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero .glass { grid-template-columns: 1fr; padding: 30px 24px 26px; text-align: center; }
  .hero .ctas, .hero .chips, .hero .live-line { justify-content: center; }
  .ticket { position: static; width: min(420px, 100%); margin: 18px auto 0; }
  .scroll-cue { display: none; }
}
.fig .v { font-size: 52px; }
.sec-head h2, h2.big { letter-spacing: -.5px; font-size: clamp(42px, 5.8vw, 62px); }
.card h3, .slab h3 { font-size: 32px; }
.step-n { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.btn { letter-spacing: .005em; }
