/* Heron — options on tokenized stocks.
 *
 * GROUND: "Early morning fog at the Davis Bayou National Park" by Fsendek1904 (CC BY-SA 4.0): a bayou in fog, a band
 * of reeds, still water, one heron wading. The palette is read from it (tools/ground.mjs → data/ground.json): the
 * fog's pale blue-grey, the slate of the far trees, the bronze of the reeds, the rose of the water. One deep brand
 * tone — heron slate — for the primary button and small accents; reed bronze for the italic word; calls in a
 * teal-slate and puts in the water's rose, each only ever as a TINT with dark ink on it.
 *
 * TYPE: Instrument Serif (wordmark, headings, big figures) · Figtree (body, 400–600) · DM Mono (addresses, amounts).
 *
 * SURFACES — the division, and every word sits on one of them:
 *   .glass   thin frosted sheet   the nav pill, the hero card and page heads, over the clear photograph.
 *   .band    no surface at all    a section is only spacing: the photograph shows between its surfaces. Its heading
 *                                 and standfirst sit on their own .sec-head glass card, never on the photograph.
 *   .card    calm card            content inside a band (steps, safety, FAQ rows, the app's panels).
 *   .slab    dense slab           numbers, tables, inputs, the rows of a list.
 *   .foot    dark band            the footer: fog-white type on a slate veil.
 * App pages keep the photograph visible between cards so no frame is one pale fill.
 * No chromatic literal outside :root.
 */
:root {
  --ink: #18212a;
  --ink-2: #2f3a45;
  --ink-3: #4b5762;
  --brand: #2a3c4a;
  --brand-2: #1f2f3b;
  --brand-deep: #14212b;
  --reed: #4d3329;
  --reed-soft: #f1e8e2;
  --reed-line: rgba(106, 74, 60, 0.26);
  --fog: #e7ecee;
  --fog-2: #dfe5e8;
  --call: #1f5058;
  --call-soft: #e1eeee;
  --call-line: rgba(31, 80, 88, 0.24);
  --put: #7a3a4c;
  --put-soft: #f6e8ec;
  --put-line: rgba(122, 58, 76, 0.24);
  --bill: #c4963f;
  --good: #1d5f40;
  --good-soft: #e1f0e7;
  --amber: #744708;
  --amber-soft: #f6eddc;
  --bad: #962634;
  --bad-soft: #f8e4e6;
  --shell: #eef2f3;
  --cream: #fbfcfc;
  --on-dark: #eef2f4;
  --on-dark-2: #c2ccd3;
  --line: rgba(24, 33, 42, 0.11);
  --line-2: rgba(24, 33, 42, 0.19);
  --glass: rgba(244, 247, 248, 0.68);
  --glass-edge: rgba(255, 255, 255, 0.6);
  --nav: rgba(246, 248, 249, 0.86);
  --card: rgba(250, 252, 252, 0.74);
  --card-2: rgba(250, 252, 252, 0.84);
  --app-card: rgba(246, 248, 249, 0.74);
  --app-card-2: rgba(251, 252, 252, 0.92);
  --doc-card: rgba(246, 248, 249, 0.5);
  --doc-card-2: rgba(251, 252, 252, 0.64);
  --slab: rgba(252, 253, 253, 0.95);
  --zebra: rgba(242, 245, 246, 0.96);
  --foot: rgba(18, 27, 34, 0.86);
  --foot-line: rgba(238, 242, 244, 0.16);
  --track: #dde3e6;
  --dot: #e4e9eb;
  --code-bg: #16222b;
  --code-ink: #e3ebef;
  --toast-link: #e7c486;
  --sk1: #e3e8ea;
  --sk2: #f7f9fa;
  --chart-grid: rgba(24, 33, 42, 0.09);
  --shadow: 0 18px 44px -26px rgba(16, 26, 34, 0.55), 0 1px 3px rgba(16, 26, 34, 0.08);
  --shadow-sm: 0 6px 18px -12px rgba(16, 26, 34, 0.5);
  --focus: 0 0 0 3px rgba(42, 60, 74, 0.28);
  --r-lg: 26px;
  --r: 18px;
  --r-sm: 12px;
  --maxw: 1124px;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--shell); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.06; margin: 0; color: var(--ink); }
p { margin: 0 0 12px; }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--reed); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- the ground */
.ground { position: fixed; inset: 0; z-index: -2; background: var(--shell) url('../img/bayou-1440.jpg') 50% 30% / cover no-repeat; }
@media (min-width: 1600px) { .ground { background-image: url('../img/bayou-2400.jpg'); } }
@media (max-width: 760px) { .ground { background-image: url('../img/bayou-900.jpg'); background-size: auto 124%; background-position: 46% 0%; } }  /* the heron wades below the hero card on a phone */

/* ---------------------------------------------------------------- surfaces */
.glass { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--r-lg); box-shadow: var(--shadow); backdrop-filter: blur(22px) saturate(0.95); -webkit-backdrop-filter: blur(22px) saturate(0.95); }
.band { position: relative; padding: 72px 0; }   /* no veil: the photograph shows between the surfaces */
.card { background: var(--card); border: 1px solid var(--glass-edge); border-radius: var(--r); padding: 26px 24px; }
.card-2 { background: var(--card-2); }
.slab { background: var(--slab); border: 1px solid var(--line); border-radius: var(--r); }
.wrap { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }

/* ---------------------------------------------------------------- nav */
.top { position: sticky; top: 14px; z-index: 50; margin-top: 14px; }
.pill-nav { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 12px; border-radius: 999px; background: var(--nav); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-sm); backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font: 400 29px/1 var(--serif); letter-spacing: -0.005em; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 2px; margin-left: 22px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 13px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); background: var(--fog-2); }
.nav-end { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink); background: var(--slab); border: 1px solid var(--line); text-decoration: none; transition: background 0.15s, color 0.15s; flex: none; }
.nav-icon:hover { background: var(--cream); color: var(--brand); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--slab); cursor: pointer; place-items: center; color: var(--ink); }
.chain-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 6px 10px; }
.chain-dot i, .chip i, .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); flex: none; }
.wallet-btn { font-family: var(--mono); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; background: var(--brand); color: var(--cream); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: background 0.15s, transform 0.15s; white-space: nowrap; }
.btn:hover { background: var(--brand-2); color: var(--cream); }
.btn:disabled { background: var(--dot); color: var(--ink-2); box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: var(--slab); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--cream); color: var(--brand-deep); }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.xs { padding: 6px 12px; font-size: 13px; box-shadow: none; }
.btn.block { width: 100%; }
.btn .arr { transition: transform 0.15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn:focus-visible, .inp:focus, .money:focus-within, select:focus-visible, .cell:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------------------------------------------------------------- hero: the card rides the fog above the trees; the heron stays clear below */
.hero { padding: 30px 0 0; display: grid; justify-items: center; gap: 26px; min-height: calc(100vh - 80px); align-content: start; }
.hero-card { width: min(780px, 100%); padding: 26px 48px 24px; text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--slab); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.chip b { font-weight: 600; color: var(--ink); }
.hero h1 { font-size: clamp(48px, 5.6vw, 74px); line-height: 1; margin: 16px 0 12px; letter-spacing: -0.015em; }
.lede { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 37em; margin: 0 auto 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.trust svg { width: 14px; height: 14px; color: var(--reed); }

/* ---------------------------------------------------------------- the strip of facts */
.strip { background: rgba(246, 248, 249, 0.86); border-top: 1px solid var(--glass-edge); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.strip ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 30px; margin: 0 auto; padding: 18px 0; list-style: none; font-size: 14px; color: var(--ink); }
.strip li { display: inline-flex; align-items: center; }
.strip li + li { border-left: 1px solid var(--line-2); padding-left: 30px; }
.strip b { font-weight: 600; }

/* ---------------------------------------------------------------- sections */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 28px; padding: 28px 36px 30px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); backdrop-filter: blur(22px) saturate(0.95); -webkit-backdrop-filter: blur(22px) saturate(0.95); }
.eyebrow { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--reed); margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; background: var(--slab); border: 1px solid var(--line); }
.sec-head h2 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.04; }
.sec-head p { margin: 16px auto 0; font-size: 17px; color: var(--ink); max-width: 36em; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step .n { display: block; font: 500 13px var(--mono); color: var(--reed); margin-bottom: 14px; letter-spacing: 0.04em; }
.step h3, .card h3 { font-size: 26px; margin-bottom: 10px; }
.step p, .card p { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.step p { color: var(--ink); }   /* the steps sit over the reeds, the darkest part of the photograph */
.card p:last-child { margin-bottom: 0; }
.grid-4 .card:nth-child(even), .grid-3 .card:nth-child(even) { background: var(--card-2); }
.ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--reed-line); color: var(--brand); margin-bottom: 18px; background: var(--card-2); }
.ico svg { width: 18px; height: 18px; }

/* two ways to be paid */
.way { display: grid; grid-template-rows: auto auto 1fr auto; padding: 28px 28px 24px; }
.way .tag { justify-self: start; }
.way h3 { font-size: 34px; margin: 14px 0 8px; }
.way .payoff { margin: 14px 0 16px; border-radius: var(--r-sm); background: var(--slab); border: 1px solid var(--line); padding: 10px 12px 6px; }
.way .kv:last-child { border-bottom: 0; }
.way .btn { justify-self: start; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag.call { background: var(--call-soft); color: var(--call); box-shadow: inset 0 0 0 1px var(--call-line); }
.tag.put { background: var(--put-soft); color: var(--put); box-shadow: inset 0 0 0 1px var(--put-line); }
.tag.plain { background: var(--dot); color: var(--ink-2); }

/* the widget: what waiting pays */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 34px; align-items: center; }
.split-copy { padding: 34px 36px; border-radius: var(--r-lg); background: var(--card-2); border: 1px solid var(--glass-edge); }
.h2 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 16px; }
.big-p { font-size: 16.5px; color: var(--ink); max-width: 34em; }
.widget { width: 100%; padding: 22px; background: var(--app-card-2); border: 1px solid var(--glass-edge); border-radius: var(--r-lg); box-shadow: var(--shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.w-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.w-top img { width: 40px; height: 40px; flex: none; }
.w-top h2 { font-size: 25px; line-height: 1.1; }
.w-top .w-sub { font-size: 13px; color: var(--ink-2); }
.live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--good); background: var(--good-soft); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.live i { animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.w-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
.w-big { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 16px 16px 14px; border-radius: var(--r-sm); background: var(--slab); border: 1px solid var(--line); margin: 14px 0 10px; }
.w-big .v { font: 400 52px/1 var(--serif); }
.w-big .v small { font: 400 20px var(--serif); color: var(--ink-2); }
.w-big .y { text-align: right; }
.w-big .y b { display: block; font: 400 30px/1 var(--serif); color: var(--good); }
.w-big .y small, .w-big .l { font-size: 12.5px; color: var(--ink-2); }
.w-lines { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; }
.w-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 14px; background: var(--slab); font-size: 14px; color: var(--ink-2); }
.w-line:nth-child(even) { background: var(--zebra); }
.w-line b { font: 500 14px var(--mono); color: var(--ink); text-align: right; }
.w-fine { margin: 12px 4px 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); text-align: center; }

/* the yield board */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); padding: 11px 14px; background: var(--slab); white-space: nowrap; }
.tbl td { padding: 10px 14px; background: var(--slab); border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr:nth-child(even) td { background: var(--zebra); }
.tbl .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tbl .nm { font-size: 13px; color: var(--ink-2); }
.tbl a.row-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.note { font-size: 13.5px; color: var(--ink-2); margin: 12px 2px 0; }
.board-pane { padding: 20px; background: var(--card-2); }
.more-tbl { margin-top: 12px; }
.more-tbl summary { list-style: none; display: inline-flex; margin-bottom: 12px; }
.more-tbl summary::-webkit-details-marker { display: none; }
.more-tbl[open] summary { display: none; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--card-2); border: 1px solid var(--glass-edge); }
.faq details:nth-child(even) { background: var(--slab); }
.faq summary { cursor: pointer; padding: 18px 24px; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 22px/1 var(--sans); color: var(--reed); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 24px 20px; margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------------------------------------------------------------- app pages: a head on the clear photograph, then panes on it */
.page-head { padding: 40px 0 32px; display: grid; justify-items: center; }
.page-head .glass { width: min(820px, 100%); padding: 28px 44px 26px; text-align: center; }
.page-head h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.02; margin: 0; }
.page-head p { margin: 12px auto 0; font-size: 16.5px; color: var(--ink-2); max-width: 38em; }
.page-head .eyebrow { margin-bottom: 12px; }
.band.app-band { padding: 4px 0 84px; min-height: 50vh; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.app-band .card { background: var(--app-card); }
.app-band .card-2 { background: var(--app-card-2); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.side { position: sticky; top: 92px; display: grid; gap: 16px; }
.pane { padding: 22px; }
.pane-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pane-h h2 { font-size: 30px; }
.pane-h .meta { font-size: 12.5px; color: var(--ink-2); font-family: var(--mono); }
.label, .field-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.field-label { display: block; margin-bottom: 7px; }
.field { margin-bottom: 14px; }
.inp { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--slab); color: var(--ink); font-size: 15px; outline: 0; }
select.inp { cursor: pointer; font-weight: 600; }
.money { display: flex; align-items: center; gap: 4px; background: var(--slab); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 8px 0 14px; height: 52px; }
.money > span { font: 400 26px var(--serif); color: var(--ink-2); }
.money input { border: 0; background: transparent; outline: 0; width: 100%; min-width: 0; font: 400 28px var(--serif); color: var(--ink); }
.money .unit { font: 500 13px var(--mono); color: var(--ink-2); flex: none; padding-right: 6px; }
.money .btn { flex: none; }
.hint { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-2); margin: 6px 2px 0; }
.hint b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.hint button { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--slab); border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; padding: 9px 10px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--brand); color: var(--cream); }
.tabs.three { grid-template-columns: repeat(3, 1fr); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; background: var(--slab); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 7px 11px; border-radius: 12px; font: 500 13px var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button small { display: block; font: 400 11px var(--mono); color: var(--ink-3); }
.seg button[aria-pressed='true'] { background: var(--brand); color: var(--cream); }
.seg button[aria-pressed='true'] small { color: var(--on-dark-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: 500 13px var(--mono); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--slab); color: var(--ink); cursor: pointer; }
.chips button[aria-pressed='true'] { background: var(--brand); color: var(--cream); border-color: var(--brand); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.kv:last-child { border-bottom: 0; }
.kv b { font-family: var(--mono); font-weight: 500; text-align: right; overflow-wrap: anywhere; color: var(--ink); min-width: 0; }
.kv b small { display: block; font: 400 12px var(--sans); color: var(--ink-2); }
.sumbox { padding: 4px 14px; border-radius: var(--r-sm); background: var(--slab); border: 1px solid var(--line); margin-bottom: 12px; }
.msg { font-size: 14px; padding: 11px 13px; border-radius: var(--r-sm); background: var(--slab); border: 1px solid var(--line); margin: 8px 0; }
.msg.bad { background: var(--bad-soft); color: var(--bad); }
.msg.warn { background: var(--amber-soft); color: var(--amber); }
.msg.good { background: var(--good-soft); color: var(--good); }
.msg.info { background: var(--fog); color: var(--ink); }
.status { margin-top: 10px; font-size: 14px; color: var(--ink); }
.status:empty { display: none; }
.steps-list { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--r-sm); background: var(--slab); border: 1px solid var(--line); font-size: 14px; }
.steps-list li::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--dot); color: var(--ink-2); font: 600 12px var(--sans); }
.steps-list li.on::before { background: var(--brand); color: var(--cream); }
.steps-list li.done::before { content: '✓'; background: var(--good-soft); color: var(--good); }
.steps-list li small { font-size: 12px; color: var(--ink-2); }
.steps-list li a { font-size: 12.5px; }
.fine-print { font-size: 12.5px; color: var(--ink-2); margin: 12px 2px 0; line-height: 1.5; }
.skeleton { display: inline-block; height: 14px; width: 90px; border-radius: 6px; background: linear-gradient(90deg, var(--sk1), var(--sk2), var(--sk1)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 34px 30px; text-align: center; }
.empty h3 { font-size: 28px; margin-bottom: 10px; }
.empty p { max-width: 40em; margin-left: auto; margin-right: auto; color: var(--ink-2); }

/* the chain: calls | strike | puts */
.stock-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 16px 20px; margin-bottom: 14px; }
.stock-bar .pick { display: flex; align-items: center; gap: 10px; }
.stock-bar select { height: 44px; min-width: 210px; }
.stock-bar .px b { display: block; font: 400 32px/1 var(--serif); }
.stock-bar .px small, .stock-bar .vl small { font-size: 12.5px; color: var(--ink-2); }
.stock-bar .vl b { display: block; font: 500 16px var(--mono); }
.stock-bar .seg { margin-left: auto; }
.chain { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.chain th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); padding: 10px 8px; background: var(--slab); white-space: nowrap; text-align: right; }
.chain thead tr:first-child th { font: 400 22px/1 var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); padding: 14px 12px 6px; }
.chain thead tr:first-child th.c { text-align: left; }
.chain td { padding: 0; background: var(--slab); border-top: 1px solid var(--line); text-align: right; font-family: var(--mono); white-space: nowrap; }
.chain tr:nth-child(even) td { background: var(--zebra); }
.chain td.k { text-align: center; font: 600 15px var(--mono); color: var(--ink); background: var(--fog); padding: 0 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.chain tr:nth-child(even) td.k { background: var(--fog-2); }
.chain tr.atm td.k { box-shadow: inset 3px 0 0 var(--bill); }
.cell { display: block; width: 100%; border: 0; background: transparent; padding: 10px 10px; font: inherit; text-align: right; cursor: pointer; color: var(--ink); }
.cell:hover { background: var(--cream); }
.cell.itm-c { background: var(--call-soft); }
.cell.itm-p { background: var(--put-soft); }
.cell .fv { color: var(--ink); }
.cell .ask, .cell .bid { color: var(--ink); font-weight: 500; }
.cell .none { color: var(--ink-3); }
.chain td.sel .cell { box-shadow: inset 0 0 0 2px var(--brand); }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--ink-2); margin: 10px 2px 0; }
.legend-row i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.legend-row i.c { background: var(--call-soft); box-shadow: inset 0 0 0 1px var(--call-line); }
.legend-row i.p { background: var(--put-soft); box-shadow: inset 0 0 0 1px var(--put-line); }
.legend-row i.a { background: var(--bill); }

/* a series in the side pane */
.series-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.series-h h2 { font-size: 30px; }
.series-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.book { display: grid; gap: 0; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); margin: 12px 0; }
.book-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; background: var(--slab); font-size: 14px; }
.book-row:nth-child(even) { background: var(--zebra); }
.book-row .p { font: 500 15px var(--mono); }
.book-row small { display: block; font-size: 12px; color: var(--ink-2); }
.book-row.empty-row { display: block; text-align: center; color: var(--ink-2); font-size: 13.5px; padding: 14px; }
.side-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.side-tag.ask { background: var(--amber-soft); color: var(--amber); }
.side-tag.bid { background: var(--good-soft); color: var(--good); }
.payoff svg { width: 100%; height: auto; }
.payoff .ax { stroke: var(--chart-grid); stroke-width: 1; }
.payoff .zero { stroke: var(--line-2); stroke-width: 1; }
.payoff .ln { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linejoin: round; }
.payoff .gain { fill: var(--good-soft); }
.payoff .loss { fill: var(--bad-soft); }
.payoff .spot { stroke: var(--bill); stroke-width: 1.5; stroke-dasharray: 3 3; }
.payoff text { font: 500 10.5px var(--mono); fill: var(--ink); paint-order: stroke; stroke: var(--cream); stroke-width: 4px; stroke-linejoin: round; }

/* positions */
.pos-list { display: grid; gap: 10px; }
.pos { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; }
.pos:nth-child(even) { background: var(--app-card-2); }
.pos .what b { display: block; font: 400 24px/1.1 var(--serif); }
.pos .what small, .pos .num small { display: block; font-size: 12.5px; color: var(--ink-2); }
.pos .num { font: 500 14px var(--mono); }
.pos .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--dot); color: var(--ink-2); white-space: nowrap; }
.st.open, .st.itm { background: var(--good-soft); color: var(--good); }
.st.filled { background: var(--call-soft); color: var(--call); }
.st.cancelled, .st.expired { background: var(--bad-soft); color: var(--bad); }
.st.otm, .st.scheduled, .st.unknown { background: var(--amber-soft); color: var(--amber); }

/* docs */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.toc { position: sticky; top: 92px; padding: 14px; background: var(--doc-card); }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--ink); }
.toc a:hover { background: var(--fog-2); }
.doc-body { min-width: 0; }
.doc-body > section { padding: 30px 34px; margin-bottom: 22px; background: var(--doc-card); }
.doc-body > section:nth-child(even) { background: var(--doc-card-2); }
.doc-body h2 { font-size: 34px; margin-bottom: 14px; }
.doc-body h3 { font: 600 15px var(--sans); letter-spacing: 0.01em; margin: 22px 0 8px; color: var(--ink); }
.doc-body p, .doc-body li { font-size: 15.5px; color: var(--ink); }
.doc-body ul, .doc-body ol { padding-left: 20px; }
.doc-body a { color: var(--brand-deep); }
.doc-body code { overflow-wrap: anywhere; }
.addr { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); color: var(--code-ink); padding: 16px; border-radius: var(--r-sm); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 var(--mono); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--foot); color: var(--on-dark); padding: 64px 0 34px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.foot a.brand { display: flex; color: var(--on-dark); padding: 0; font: 400 29px/1 var(--serif); }
.foot .brand:hover { color: var(--on-dark); }
.foot .about { font-size: 14.5px; margin-top: 14px; color: var(--on-dark-2); max-width: 30em; }
.foot h4 { margin: 4px 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.foot a { display: block; text-decoration: none; font-size: 14.5px; padding: 4px 0; color: var(--on-dark); }
.foot a:hover { color: var(--cream); text-decoration: underline; }
.foot .fine { display: grid; gap: 6px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--foot-line); font-size: 13px; color: var(--on-dark-2); }
.foot .fine a { display: inline; font-size: inherit; padding: 0; color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--foot-line); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 99; background: var(--code-bg); color: var(--cream); padding: 12px 18px; border-radius: 14px; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast a { color: var(--toast-link); }
.center-page { min-height: 74vh; display: grid; place-items: center; padding: 40px 0; }
.center-page .glass { padding: 46px 48px; max-width: 580px; text-align: center; }
.center-page h1 { font-size: 72px; }
.center-page p { color: var(--ink-2); }
.rise { transition: opacity 0.6s ease, transform 0.6s ease; }
.motion .rise:not(.in) { opacity: 0; transform: translateY(14px); }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1060px) {
  .nav-links { margin-left: 8px; }
  .chain-dot { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .app-grid, .split { grid-template-columns: 1fr; }
  .side { position: static; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .wrap { width: calc(100% - 32px); }
  .top { top: 10px; margin-top: 10px; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; margin: 0; padding: 10px; border-radius: 22px; background: var(--slab); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .top.open .nav-links { display: flex; }
  .menu-btn { display: grid; }
  .nav-icon { width: 36px; height: 36px; }
  .btn .lg { display: none; }
  .pos { grid-template-columns: auto minmax(0, 1fr); }
  .pos .num, .pos .acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .brand { font-size: 26px; }
  .brand img { width: 28px; height: 28px; }
  .hero { padding-top: 24px; gap: 18px; min-height: auto; padding-bottom: 300px; }
  .hero-card { padding: 26px 20px 22px; }
  .hero h1 { font-size: clamp(42px, 12vw, 54px); margin: 16px 0 12px; }
  .hero .chip { font-size: 12px; white-space: nowrap; }
  .hero .chip .lg { display: none; }
  .lede { font-size: 16px; margin-bottom: 20px; }
  .trust { gap: 6px; margin-top: 16px; }
  .trust li { font-size: 12.5px; padding: 5px 10px; }
  .strip ul { flex-direction: column; align-items: center; gap: 6px; padding: 16px 0; font-size: 13.5px; }
  .strip li + li { border-left: 0; padding-left: 0; }
  .band { padding: 48px 0; }
  .sec-head { margin-bottom: 20px; text-align: left; padding: 22px 20px 24px; }
  .sec-head p { margin-left: 0; font-size: 16px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .card, .way { padding: 22px 20px; }
  .split-copy { padding: 24px 20px; }
  .widget { padding: 14px; border-radius: 22px; }
  .w-big .v { font-size: 42px; }
  .w-row { grid-template-columns: 1fr; }
  .faq summary { padding: 16px 18px; font-size: 15px; }
  .faq details p { padding: 0 18px 18px; }
  .foot { padding: 48px 0 28px; }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .foot .cols > :first-child { grid-column: 1 / -1; }
  .page-head { padding: 24px 0 20px; }
  .page-head .glass { padding: 22px 20px; }
  .page-head p { font-size: 15.5px; }
  .pane { padding: 16px; }
  .stock-bar { padding: 14px; }
  .stock-bar select { min-width: 0; width: 100%; }
  .stock-bar .pick { width: 100%; }
  .stock-bar .seg { margin-left: 0; }
  .chain .hide-sm { display: none; }
  .cell { padding: 10px 6px; }
  .chain td.k { padding: 0 6px; font-size: 13.5px; }
  .tbl .hide-sm { display: none; }
  .doc-body > section { padding: 22px 20px; }
  .center-page .glass { padding: 32px 22px; }
  .center-page h1 { font-size: 56px; }
}
