/* ============================================================
   Sill — light glass over a dusk sea.
   One photograph runs behind every page. Bands are thin glass;
   every word sits on a surface of its own (card, sheet, chip),
   never on the bare photograph.
   ============================================================ */
:root {
  --ink: #111a2c;
  --ink-2: #2d3950;
  /* Muted ink solved against the thinnest glass it sits on over the DUSK photograph
     (#435068 measured 4.48:1 on the app's fine print); coral text likewise. */
  --ink-3: #3a465c;
  --line: rgba(17, 26, 44, .11);
  --line-2: rgba(17, 26, 44, .065);

  --navy: #16213d;
  --navy-2: #22305a;
  --tide: #35507f;
  --tide-2: #5373a8;
  --mist: #c9d5ee;
  --coral: #f06b57;
  --coral-2: #f58370;
  --coral-ink: #95301f;
  --peach: #f3b08a;
  --wash: rgba(22, 33, 61, .07);
  --wash-2: rgba(22, 33, 61, .12);
  --up: #0b5a3c;
  --down: #962a22;

  --surface: rgba(250, 248, 251, .68);
  --surface-2: rgba(250, 248, 251, .82);
  --surface-3: rgba(255, 255, 255, .94);
  /* Section heads at .50 measured 2.5:1 for coral eyebrows: this ground is a dusk sea, much
     darker under the glass than a daylight one, so its thinnest surface must be thicker. */
  --head: rgba(248, 246, 250, .66);
  /* 10 px of blur on top of a soft photograph measured busy 0.3–2.5 against the reference's
     1.6–7.2 in the same run: the texture under every card was gone. */
  --blur: saturate(150%) blur(7px);
  --blur-lite: saturate(140%) blur(6px);
  --panel: rgba(250, 248, 251, .70);

  --shadow-sm: 0 1px 2px rgba(10, 16, 32, .06), 0 4px 14px rgba(10, 16, 32, .07);
  --shadow: 0 16px 44px rgba(10, 16, 32, .18);
  --shadow-lg: 0 30px 80px rgba(10, 16, 32, .28);

  --r: 26px;
  --r-sm: 18px;
  --r-xs: 12px;
  --maxw: 1200px;

  --serif: "Gloock", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #28324f;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono, code { font-family: var(--mono); font-size: .88em; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(240, 107, 87, .28); }
:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 2px; }

/* ---------- the photograph ---------- */
.ground {
  position: fixed; inset: -40px; z-index: -3;
  background: #28324f url("../img/ground.jpg") 50% 42% / cover no-repeat;
}
@media (max-width: 760px) { .ground { background-image: url("../img/ground-1280.jpg"); } }
.scrim {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(255, 244, 238, .10), transparent 70%),
    linear-gradient(180deg, rgba(240, 244, 255, .03) 0%, rgba(240, 244, 255, .08) 60%, rgba(240, 244, 255, .12) 100%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: -.005em;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, opacity .2s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(22, 33, 61, .32); }
.btn-coral { background: var(--coral); color: #1a0c08; }
.btn-coral:hover:not(:disabled) { background: var(--coral-2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(240, 107, 87, .32); }
.btn-glass { background: rgba(255, 255, 255, .86); color: var(--ink); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn-glass:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
.btn-quiet { background: var(--wash); color: var(--ink); }
.btn-quiet:hover:not(:disabled) { background: var(--wash-2); }
.btn-buy { background: #0e5e45; color: #fff; }
.btn-buy:hover:not(:disabled) { background: #11704f; transform: translateY(-1px); }
.btn-sell { background: #9a2f24; color: #fff; }
.btn-sell:hover:not(:disabled) { background: #ad392d; transform: translateY(-1px); }
.btn .arrow {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); font-size: 13px; line-height: 1; margin-right: -8px;
}
.btn-glass .arrow, .btn-quiet .arrow, .btn-coral .arrow { background: var(--wash); }

/* ---------- chips / eyebrows ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .86); color: var(--ink-2);
  backdrop-filter: var(--blur-lite); -webkit-backdrop-filter: var(--blur-lite);
}
.chip b { color: var(--ink); font-weight: 700; }
.chip svg { flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d6b; box-shadow: 0 0 0 0 rgba(31, 157, 107, .5); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 107, .45); } 70% { box-shadow: 0 0 0 9px rgba(31, 157, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  /* A step darker than --coral-ink: 12 px caps on the section-head glass measured 4.19:1 at #95301f. */
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7c2416;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--coral); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; padding: 14px 0; }
.nav-inner {
  position: relative; display: flex; align-items: center; gap: 20px; height: 62px; padding: 0 10px 0 14px;
  border-radius: 999px; background: rgba(250, 248, 251, .80);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 2px 14px rgba(10, 16, 32, .12);
  transition: background .25s, box-shadow .25s;
}
.nav.scrolled .nav-inner { background: rgba(250, 248, 251, .92); box-shadow: 0 10px 30px rgba(10, 16, 32, .2); }
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand [data-mark] { display: block; width: 30px; height: 30px; }
.brand [data-mark] svg { display: block; width: 100%; height: 100%; }
.brand-name { font-family: var(--serif); font-size: 28px; letter-spacing: -.01em; line-height: 1; margin-top: 1px; color: var(--ink); }
.nav-links { display: flex; gap: 2px; margin-left: 4px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--wash); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--wash); cursor: pointer; place-items: center; }
.nav-burger svg { display: block; }
.nav-x { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--wash); color: var(--ink); flex: none; transition: background .15s, transform .15s; }
.nav-x:hover { background: var(--wash-2); transform: translateY(-1px); }
.nav-x svg { display: block; }
@media (max-width: 520px) { .nav-x { width: 34px; height: 34px; } .nav-x svg { width: 14px; height: 14px; } }
.net-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; background: var(--wash); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; flex: none; }
  .nav-inner { gap: 10px; padding-right: 8px; }
  .nav-right .hide-sm { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px;
    padding: 12px; border-radius: 22px; background: rgba(250, 248, 251, .97); box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px 14px; font-size: 16px; }
}
@media (max-width: 520px) {
  .nav .wrap { padding: 0 12px; }
  .nav-inner { height: 58px; padding-left: 12px; }
  .brand-name { font-size: 25px; }
  .nav-right .btn { padding: 9px 14px; font-size: 14px; }
  .nav-right .btn .arrow { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 26px 0 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 18px; align-items: stretch; }
.hero-card {
  position: relative; padding: 46px 46px 38px; border-radius: 40px;
  background: rgba(250, 248, 251, .60);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 40px 100px rgba(10, 16, 32, .26);
  display: flex; flex-direction: column;
}
.wordmark {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(66px, 9.4vw, 124px);
  line-height: .9; letter-spacing: -.03em; margin: 22px 0 14px; color: var(--ink);
}
.wordmark [data-mark] { width: .72em; height: .72em; flex: none; }
.wordmark [data-mark] svg { width: 100%; height: 100%; display: block; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.3vw, 40px); line-height: 1.08; letter-spacing: -.012em; color: var(--navy);
}
.hero h1 em { font-style: normal; color: var(--coral-ink); }
.hero .lede { max-width: 560px; margin-top: 14px; font-size: 17.5px; color: var(--ink-2); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 30px; }
.stat { padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); }
.stat .k { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-top: 4px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.skel { display: inline-block; min-width: 3.2em; height: .9em; border-radius: 6px; background: linear-gradient(90deg, rgba(17,26,44,.08), rgba(17,26,44,.16), rgba(17,26,44,.08)); background-size: 200% 100%; animation: sk 1.3s infinite linear; vertical-align: -.05em; }
@keyframes sk { to { background-position: -200% 0; } }

/* the live order beside the hero */
.ticket {
  padding: 24px 24px 20px; border-radius: 40px; display: flex; flex-direction: column; gap: 14px;
  background: rgba(250, 248, 251, .72);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 40px 100px rgba(10, 16, 32, .26);
}
.ticket-top { display: flex; align-items: center; gap: 12px; }
.ticket-top .who { flex: 1; min-width: 0; }
.ticket-top h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.ticket-top .sub { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.ticket-px { text-align: right; }
.ticket-px b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-px small { font-size: 12px; color: var(--ink-3); }
.ticket-rows { display: grid; gap: 4px; }
.ticket-rows .r { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .64); font-size: 14px; }
.ticket-rows .r span:first-child { color: var(--ink-3); }
.ticket-rows .r span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--wash); font-size: 13.5px; color: var(--ink-2); }
.ticket-foot b { color: var(--ink); }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 34px 24px 26px; border-radius: 32px; }
  .ticket { border-radius: 32px; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:last-child { grid-column: span 2; }
  .wordmark { gap: 12px; }
}

/* ---------- the band: a price ladder drawn from the pool's own ticks ---------- */
.ladder { position: relative; border-radius: 18px; background: rgba(255, 255, 255, .66); padding: 10px 12px; }
.ladder svg { display: block; width: 100%; height: auto; }
.ladder .lg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); padding: 4px 2px 0; }
.ladder .lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ticker badges */
.tk {
  flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: .01em; color: #fff; line-height: 1;
}
.tk.lg { width: 42px; height: 42px; border-radius: 13px; font-size: 11.5px; }

/* ---------- thin strip ---------- */
.strip { padding: 6px 0 20px; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.strip .chip { font-size: 13.5px; padding: 8px 15px; }

/* ---------- sections ---------- */
.section { padding: 68px 0; }
.band { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .06) 120px, rgba(255, 255, 255, .06) calc(100% - 120px), rgba(255, 255, 255, 0) 100%); }
.band-2 { background: linear-gradient(180deg, rgba(250, 248, 255, 0) 0, rgba(250, 248, 255, .13) 120px, rgba(250, 248, 255, .13) calc(100% - 120px), rgba(250, 248, 255, 0) 100%); }
.section-head {
  max-width: 780px; margin: 0 auto 34px; text-align: center;
  padding: 26px 34px 28px; border-radius: 34px; background: var(--head);
  backdrop-filter: var(--blur-lite); -webkit-backdrop-filter: var(--blur-lite);
}
.section-head h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02; letter-spacing: -.02em; margin-top: 12px;
}
.section-head h2 em { font-style: normal; color: var(--coral-ink); }
.section-head p { margin-top: 12px; font-size: 17px; color: var(--ink-2); }

.card { background: var(--surface); border-radius: var(--r); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.card-2 { background: var(--surface-2); }
.card-pad { padding: 28px; }

/* steps */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { padding: 28px; display: flex; flex-direction: column; }
.step-card .n { font-family: var(--serif); font-size: 54px; line-height: .9; color: var(--coral-ink); }
.step-card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin-top: 14px; letter-spacing: -.01em; }
.step-card p { margin-top: 10px; color: var(--ink-2); }
.step-card .what { margin-top: auto; padding-top: 18px; }
.step-card .what span { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--wash); }
@media (max-width: 980px) { .trio { grid-template-columns: 1fr; } }

/* the band explainer */
.explain { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: stretch; }
.explain .card { padding: 26px; }
.explain h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.explain p { color: var(--ink-2); margin-top: 10px; }
.phases { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.phases li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .64); }
.phases li b { display: block; font-size: 15px; }
.phases li span { font-size: 14px; color: var(--ink-2); }
.phases li i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; color: #fff; }
@media (max-width: 900px) { .explain { grid-template-columns: 1fr; } }

/* markets */
.market-card { padding: 0; }
.mkt-more { display: flex; justify-content: center; padding: 14px 0 0; }
.mkt-tools { display: flex; gap: 10px; align-items: center; padding: 10px; flex-wrap: wrap; margin-bottom: 12px; border-radius: 28px; background: rgba(250, 248, 251, .72); backdrop-filter: var(--blur-lite); -webkit-backdrop-filter: var(--blur-lite); }
.mkt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(250, 248, 251, .68); backdrop-filter: var(--blur-lite); -webkit-backdrop-filter: var(--blur-lite); transition: background .15s, transform .15s; min-width: 0; }
a.tile:hover { background: rgba(255, 255, 255, .88); transform: translateY(-1px); }
.tile-top { display: flex; align-items: center; gap: 10px; }
.tile .who { flex: 1; min-width: 0; }
.tile .t { font-weight: 800; font-size: 15px; line-height: 1.2; }
.tile .n { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .px { font-weight: 800; font-variant-numeric: tabular-nums; }
.tile-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.tile-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 1080px) { .mkt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mkt-grid { grid-template-columns: minmax(0, 1fr); } }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; background: var(--surface-3); border-radius: 999px; padding: 0 16px; height: 44px; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; color: var(--ink); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--wash); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg.side button.on[data-s="buy"] { background: #0e5e45; color: #fff; }
.seg.side button.on[data-s="sell"] { background: #9a2f24; color: #fff; }
.mkt-meta { font-size: 13px; color: var(--ink-3); padding: 0 6px; }
/* --tide on its own tint measured 3.9–4.2:1 at phone width over the photograph; a deeper slate holds 4.5+. */
.fee-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .62); color: #1f3357; white-space: nowrap; }

/* guarantees */
.guarantee { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.g-list { display: grid; gap: 10px; }
.g { padding: 20px 22px; border-radius: var(--r-sm); background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.g h4 { font-size: 16.5px; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.g h4 .ico { width: 28px; height: 28px; border-radius: 9px; background: var(--navy); display: grid; place-items: center; flex: none; }
.g p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.proof { padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.proof .score { font-family: var(--serif); font-size: 76px; line-height: .9; letter-spacing: -.03em; }
.proof .score small { font-size: 30px; color: var(--ink-3); }
.proof .fine { font-size: 13.5px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.kv dd a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.checks { list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.proof #proof-more { align-self: flex-start; }
.checks li { display: flex; gap: 8px; color: var(--ink-2); }
.checks li b { color: var(--up); flex: none; }
@media (max-width: 980px) { .guarantee { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--r-sm); background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px; color: var(--ink-2); }
.faq .a p + p { margin-top: 10px; }

/* ---------- CTA slab + footer ---------- */
.slab {
  border-radius: 36px; padding: 56px 40px; text-align: center; color: #fff;
  background: rgba(14, 21, 40, .84); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.slab h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -.02em; }
.slab h2 em { font-style: normal; color: var(--coral-2); }
.slab p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 14px auto 0; font-size: 17px; }
.slab .hero-cta { justify-content: center; margin-top: 26px; }
.slab .btn-glass { background: rgba(255, 255, 255, .94); }

.footer { padding: 30px 0 40px; }
.foot-card { padding: 34px 34px 26px; border-radius: 30px; background: rgba(250, 248, 251, .74); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.foot-grid a { display: block; color: var(--ink-2); padding: 3px 0; font-size: 14.5px; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid .blurb { color: var(--ink-2); font-size: 14.5px; margin-top: 12px; max-width: 330px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot-base a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal ---------- */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } .live-dot { animation: none; } html { scroll-behavior: auto; } }

/* ============================================================
   App
   ============================================================ */
.app-main { padding: 6px 0 60px; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.tabs button.on { background: var(--navy); color: #fff; }
.tabs .badge { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(240, 107, 87, .22); color: var(--coral-ink); }
.tabs button.on .badge { background: rgba(255, 255, 255, .2); color: #fff; }
/* Four tabs at 18 px padding clipped "Trade" on a 390 px phone. */
@media (max-width: 520px) { .tabs button { padding: 9px 12px; font-size: 14px; } .tabs { gap: 2px; } }
.acct-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--surface-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); font-size: 14px; color: var(--ink-2); }
.acct-chip b { color: var(--ink); font-variant-numeric: tabular-nums; }

.work { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
@media (max-width: 1060px) { .work { grid-template-columns: 1fr; } }
.box { padding: 24px; border-radius: var(--r); background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); min-width: 0; }
.box h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -.01em; }
.box .sub { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.box + .box { margin-top: 16px; }
.col > .box + .box { margin-top: 16px; }
.stack { display: grid; gap: 14px; margin-top: 18px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bal { font-size: 13px; color: var(--ink-3); }
.bal button, .mini { border: 0; background: var(--wash); color: var(--ink); font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; cursor: pointer; margin-left: 6px; }
.bal button:hover, .mini:hover { background: var(--wash-2); }

.field { display: grid; gap: 6px; }
.field label, .lbl { font-size: 12.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .02em; }
.input {
  display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px; border-radius: 16px;
  background: var(--surface-3); border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: rgba(53, 80, 127, .5); box-shadow: 0 0 0 4px rgba(53, 80, 127, .12); }
.input input, .input select { border: 0; outline: 0; background: transparent; font: inherit; font-size: 22px; font-weight: 700; width: 100%; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 0; }
.input .unit { font-size: 14px; font-weight: 800; color: var(--ink-3); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .pair { grid-template-columns: 1fr; } }
.nudges { display: flex; gap: 6px; flex-wrap: wrap; }
.nudges button { border: 0; background: rgba(255, 255, 255, .7); padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.nudges button:hover { background: #fff; color: var(--ink); }
.quote { border-radius: 16px; background: rgba(255, 255, 255, .62); padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.quote .row-between span:first-child { color: var(--ink-3); }
.quote .row-between span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.quote .big { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.warn { padding: 12px 14px; border-radius: 14px; background: rgba(176, 50, 42, .1); color: var(--down); font-size: 14px; }
.note { padding: 12px 14px; border-radius: 14px; background: var(--wash); color: var(--ink-2); font-size: 14px; }
.note a, .warn a, .box a.link, .a a, .prose a, .fine a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.fine { font-size: 12.5px; color: var(--ink-3); }

.steps-mini { display: flex; gap: 6px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.steps-mini span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .64); font-weight: 700; }
.steps-mini span.on { background: var(--navy); color: #fff; }
.steps-mini span.done { background: rgba(17, 113, 77, .14); color: var(--up); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.metric { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .66); min-width: 0; }
.metric .k { font-size: 12px; color: var(--ink-3); font-weight: 800; }
.metric .v { font-family: var(--serif); font-size: 25px; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .metrics { grid-template-columns: 1fr 1fr; } }

/* orders */
.orders { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.order { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .66); display: grid; gap: 10px; }
.order-top { display: flex; align-items: center; gap: 10px; }
.order-top .who { flex: 1; min-width: 0; }
.order-top .t { font-weight: 800; font-size: 15px; line-height: 1.2; }
.order-top .n { font-size: 12.5px; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.wait { background: rgba(53, 80, 127, .13); color: var(--tide); }
.pill.fill { background: rgba(243, 176, 138, .38); color: #7b3a12; }
.pill.done { background: rgba(17, 113, 77, .14); color: var(--up); }
.pill.lp { background: rgba(22, 33, 61, .1); color: var(--navy); }
.order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.order-grid div { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .7); min-width: 0; }
.order-grid .k { font-size: 11.5px; font-weight: 800; color: var(--ink-3); }
.order-grid .v { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.progress { height: 8px; border-radius: 8px; background: var(--wash-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--coral), var(--peach)); }
.order-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.order-act .fine { margin-left: auto; }
@media (max-width: 560px) { .order-grid { grid-template-columns: 1fr 1fr; } }

.hold { list-style: none; display: grid; gap: 4px; margin-top: 14px; }
.hold li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .62); }
.hold .t { font-weight: 800; font-size: 14.5px; }
.hold .n { font-size: 12.5px; color: var(--ink-3); }
.hold .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14.5px; }
.hold .amt { font-size: 12.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.total { font-family: var(--serif); font-size: 48px; line-height: 1; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.empty { padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .58); color: var(--ink-2); font-size: 14px; text-align: center; }

.pick { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px 0 10px; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--line-2); cursor: pointer; width: 100%; text-align: left; }
.pick .t { font-weight: 800; }
.pick .n { font-size: 12.5px; color: var(--ink-3); }
.pick .chev { margin-left: auto; color: var(--ink-3); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8, 12, 26, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-card { width: 100%; max-width: 460px; max-height: min(660px, 90vh); display: flex; flex-direction: column; border-radius: 26px; background: #f9f8fb; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 12px; gap: 12px; }
.modal-head h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.modal .search { margin: 0 16px 8px; flex: none; min-width: 0; background: #fff; border: 1px solid var(--line-2); }
.x { border: 0; background: var(--wash); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 18px; flex: none; }
.modal-body { padding: 0 14px 16px; overflow: auto; }
.list-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 10px; border-radius: 14px; cursor: pointer; text-align: left; }
.list-item:hover { background: var(--wash); }
.list-item:disabled { opacity: .5; cursor: default; }
.list-item img { width: 36px; height: 36px; border-radius: 10px; }
.list-item .t { font-weight: 800; }
.list-item .n { font-size: 12.5px; color: var(--ink-3); }
.list-item .r { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }

/* toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast { padding: 14px 16px; border-radius: 16px; background: #141d35; color: #fff; box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 12px; align-items: flex-start; animation: tin .25s ease; }
.toast.err { background: #6e1f19; }
.toast.ok { background: #0d4d3a; }
.toast a { text-decoration: underline; }
.toast .x2 { margin-left: auto; border: 0; background: transparent; color: #fff; opacity: .75; cursor: pointer; font-size: 16px; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: rot .8s linear infinite; flex: none; }
.btn-quiet .spin, .btn-glass .spin, .btn-coral .spin { border-color: rgba(17, 26, 44, .2); border-top-color: var(--ink); }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- prose pages (docs) ---------- */
.sheet { padding: 44px 48px; border-radius: 32px; background: var(--panel); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.prose { max-width: 780px; }
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 68px); line-height: 1; letter-spacing: -.02em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin-top: 40px; }
.prose h3 { font-size: 18px; margin-top: 24px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose p { margin-top: 12px; }
.prose ul, .prose ol { margin: 12px 0 0 22px; display: grid; gap: 6px; }
.prose code { background: var(--wash); padding: 1px 6px; border-radius: 6px; }
.prose pre { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: #111a2c; color: #e9eefb; overflow: auto; font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose .lede { font-size: 19px; color: var(--ink-2); margin-top: 14px; }
.docs-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.toc { position: sticky; top: 96px; padding: 18px; border-radius: 22px; background: rgba(250, 248, 251, .66); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); display: grid; gap: 2px; }
.toc a { font-size: 14px; color: var(--ink-2); padding: 6px 10px; border-radius: 10px; }
.toc a:hover { background: var(--wash); color: var(--ink); }
.addr-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.addr-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.addr-table td:first-child { color: var(--ink-2); white-space: nowrap; }
.addr-table td:last-child { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .docs-grid { grid-template-columns: 1fr; } .toc { position: static; grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .sheet { padding: 28px 20px; border-radius: 24px; } }
