/* ============================================================
   Posy — plum glass over a lavender field.
   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 {
  /* Muted inks solved against the THINNEST glass they sit on (0.60–0.66 over the darkened
     photograph), not against white: #62597a measured 3.7–4.5:1 there on small type. */
  --ink: #1d1531;
  --ink-2: #3d3452;
  --ink-3: #4f4766;
  --line: rgba(29, 21, 49, .11);
  --line-2: rgba(29, 21, 49, .065);

  --plum: #33205f;
  --plum-2: #432a7c;
  --violet: #5b3fa6;
  --violet-2: #7a5fd0;
  --lilac: #cdbcff;
  --wash: rgba(51, 32, 95, .075);
  --wash-2: rgba(51, 32, 95, .12);
  --gold: #e8a73a;
  --gold-ink: #8a560a;
  --sage: #3d6b43;
  --up: #0b5a3c;
  --down: #962a22;

  --surface: rgba(255, 253, 255, .66);
  --surface-2: rgba(255, 253, 255, .80);
  --surface-3: rgba(255, 255, 255, .93);
  --head: rgba(252, 249, 255, .46);
  /* Glass blur kept light: at 18–22 px it erased the photograph under every card, and the
     pages measured busy ~0 where the reference, measured in the same run, reads 4–7. */
  --blur: saturate(150%) blur(10px);
  --blur-lite: saturate(140%) blur(8px);
  --panel: rgba(255, 253, 255, .66);

  --shadow-sm: 0 1px 2px rgba(29, 21, 49, .05), 0 4px 14px rgba(29, 21, 49, .06);
  --shadow: 0 16px 44px rgba(29, 21, 49, .14);
  --shadow-lg: 0 30px 80px rgba(29, 21, 49, .22);

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

  --serif: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM 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: #5d4f93;
  -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: .9em; }
.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(122, 95, 208, .28); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ---------- the photograph ---------- */
.ground {
  position: fixed; inset: -40px; z-index: -3;
  background: #5d4f93 url("../img/ground.jpg") 50% 58% / 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(250, 244, 255, .14), transparent 70%),
    linear-gradient(180deg, rgba(248, 243, 255, .04) 0%, rgba(248, 243, 255, .10) 60%, rgba(248, 243, 255, .16) 100%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; 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(--plum); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--plum-2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(51, 32, 95, .30); }
.btn-gold { background: var(--gold); color: #2b1a02; }
.btn-gold:hover:not(:disabled) { background: #f0b44f; transform: translateY(-1px); }
.btn-glass { background: rgba(255, 255, 255, .84); 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 .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 { 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: 500;
  background: rgba(255, 255, 255, .84); color: var(--ink-2);
  backdrop-filter: var(--blur-lite); -webkit-backdrop-filter: var(--blur-lite);
}
.chip b { color: var(--ink); font-weight: 600; }
.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;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #45298a; /* --violet measured 3.75:1 on the head wash */
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }

/* ---------- 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(255, 253, 255, .76);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 2px 12px rgba(29, 21, 49, .08);
  transition: background .25s, box-shadow .25s;
}
.nav.scrolled .nav-inner { background: rgba(255, 253, 255, .9); box-shadow: 0 10px 30px rgba(29, 21, 49, .14); }
.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: 27px; 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: 500; 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; }
.net-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; background: var(--wash); }
@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(255, 253, 255, .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: 24px; }
  .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(253, 250, 255, .56);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 40px 100px rgba(29, 21, 49, .18);
  display: flex; flex-direction: column;
}
.wordmark {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 9vw, 118px);
  line-height: .9; letter-spacing: -.035em; margin: 22px 0 12px; color: var(--ink);
}
.wordmark [data-mark] { width: .74em; height: .74em; 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(--plum);
}
.hero h1 em { font-style: italic; color: var(--violet); }
.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: 700; 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(29,21,49,.08), rgba(29,21,49,.16), rgba(29,21,49,.08)); background-size: 200% 100%; animation: sk 1.3s infinite linear; vertical-align: -.05em; }
@keyframes sk { to { background-position: -200% 0; } }

/* the live basket beside the hero */
.posy-card {
  padding: 26px 26px 22px; border-radius: 40px; display: flex; flex-direction: column; gap: 16px;
  background: rgba(255, 253, 255, .68);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 40px 100px rgba(29, 21, 49, .18);
}
.posy-top { display: flex; align-items: center; gap: 16px; }
.posy-top .donut { width: 108px; height: 108px; flex: none; }
.posy-top h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.posy-top .sub { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.posy-top .seg { margin-top: 10px; }
.legs { list-style: none; display: grid; gap: 4px; }
.legs li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px 7px 8px; border-radius: 14px; background: rgba(255, 255, 255, .62); }
.legs .t { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.legs .n { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legs .r { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; line-height: 1.2; }
.legs .r small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.posy-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); }
.posy-foot b { color: var(--ink); }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 34px 24px 26px; border-radius: 32px; }
  .posy-card { border-radius: 32px; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:last-child { grid-column: span 2; }
  .posy-top .donut { width: 84px; height: 84px; }
  .posy-top h3 { font-size: 28px; }
  .wordmark { gap: 12px; }
}

/* ticker badges */
.tk {
  flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em; color: #fff; line-height: 1;
}
.tk.lg { width: 40px; height: 40px; 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; }
/* Thin glass bands, feathered at both ends so they read as light on the photograph. */
.band { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .07) 120px, rgba(255, 255, 255, .07) calc(100% - 120px), rgba(255, 255, 255, 0) 100%); }
.band-2 { background: linear-gradient(180deg, rgba(252, 248, 255, 0) 0, rgba(252, 248, 255, .15) 120px, rgba(252, 248, 255, .15) calc(100% - 120px), rgba(252, 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);
}
.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: italic; color: var(--violet); }
.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(--violet); }
.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: 600; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--wash); }
@media (max-width: 980px) { .trio { grid-template-columns: 1fr; } }

/* baskets */
.baskets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.basket { padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s; }
.basket:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.basket-top { display: flex; gap: 14px; align-items: center; }
.basket-top .donut { width: 72px; height: 72px; flex: none; }
.basket h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; letter-spacing: -.01em; }
.basket .blurb { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.tickers { display: flex; flex-wrap: wrap; gap: 6px; }
.tickers span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 9px 4px 5px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
.tickers span i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.tickers span em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.basket-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.basket-foot .fig { font-size: 13px; color: var(--ink-3); }
.basket-foot .fig b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 1050px) { .baskets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .baskets { grid-template-columns: 1fr; } }

/* before / after */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs { padding: 30px; }
.vs h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; margin-top: 10px; }
.vs ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.vs li { display: flex; gap: 12px; color: var(--ink-2); font-size: 15px; }
.vs li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; }
.vs.before li::before { background: rgba(176, 50, 42, .12) 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' stroke='%23b0322a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.vs.after li::before { background: rgba(17, 113, 77, .13) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%2311714d' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.vs .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.vs.before .tag { background: rgba(150, 42, 34, .1); color: #7f2019; }
.vs.after .tag { background: rgba(17, 113, 77, .12); color: var(--up); }
.vs.after { background: var(--surface-2); }
@media (max-width: 860px) { .versus { grid-template-columns: 1fr; } }

/* prices — a grid of tiles with gaps; the tool bar is its own glass surface */
.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(252, 249, 255, .56); 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(255, 253, 255, .64); 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, 253, 255, .84); transform: translateY(-1px); }
.tile-top { display: flex; align-items: center; gap: 10px; }
.tile .who { flex: 1; min-width: 0; }
.tile .t { font-weight: 700; 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: 700; 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; }
.tile-row .bar { margin-left: 0; }
@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: 600; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.mkt-meta { font-size: 13px; color: var(--ink-3); padding: 0 6px; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-sm); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 14.5px; min-width: 720px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 6px 12px; white-space: nowrap; }
.tbl td { padding: 10px 12px; background: rgba(255, 255, 255, .60); font-variant-numeric: tabular-nums; }
.tbl th { background: transparent; }
.tbl td:first-child { border-radius: 14px 0 0 14px; }
.tbl td:last-child { border-radius: 0 14px 14px 0; }
.tbl tr.row { cursor: pointer; }
.tbl tr.row:hover td { background: rgba(255, 255, 255, .88); }
.tbl .who { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.tbl .who .t { font-weight: 600; }
.tbl .who .n { font-size: 12.5px; color: var(--ink-3); }
.tbl .r { text-align: right; }
.venue { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.venue.v3 { background: rgba(51, 32, 95, .09); color: var(--plum); }
.venue.v4 { background: rgba(232, 167, 58, .2); color: var(--gold-ink); }
.bar { display: inline-block; width: 60px; height: 6px; border-radius: 6px; background: var(--wash-2); overflow: hidden; vertical-align: middle; margin-left: 8px; }
.bar i { display: block; height: 100%; background: var(--violet-2); border-radius: 6px; }

/* 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: 700; display: flex; gap: 10px; align-items: center; }
.g h4 .ico { width: 28px; height: 28px; border-radius: 9px; background: var(--plum); 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; max-height: 280px; overflow: auto; padding-right: 6px; font-size: 13.5px; }
.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: 600; 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(30, 19, 55, .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 { color: var(--lilac); }
.slab p { color: rgba(255, 255, 255, .8); 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(255, 253, 255, .70); 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: 600; 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(--plum); color: #fff; }
.tabs .badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(232, 167, 58, .24); color: var(--gold-ink); }
.tabs button.on .badge { background: rgba(255, 255, 255, .2); color: #fff; }
.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.15fr) minmax(0, .85fr); 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; }
.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: 700; padding: 3px 9px; border-radius: 999px; cursor: pointer; margin-left: 6px; }
.bal button:hover, .mini:hover { background: var(--wash-2); }

/* basket picker */
.picker { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 16px -2px 0; scrollbar-width: thin; }
.picker button { flex: none; display: flex; align-items: center; gap: 9px; border: 1px solid transparent; background: rgba(255, 255, 255, .66); padding: 7px 14px 7px 7px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.picker button .donut { width: 28px; height: 28px; }
.picker button.on { background: #fff; color: var(--ink); border-color: rgba(51, 32, 95, .28); box-shadow: var(--shadow-sm); }

/* the composition editor */
.comp { list-style: none; display: grid; gap: 6px; margin-top: 14px; }
.comp li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 150px 88px 30px; gap: 10px; align-items: center; padding: 8px 8px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .64); }
.comp .t { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.comp .n { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp input[type=range] { width: 100%; accent-color: var(--violet); }
.comp .w { display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); }
.comp .w input { width: 100%; border: 0; outline: 0; font: inherit; font-size: 14.5px; font-weight: 600; text-align: right; background: transparent; font-variant-numeric: tabular-nums; min-width: 0; }
.comp .w span { font-size: 13px; color: var(--ink-3); }
.comp .rm { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--ink-3); font-size: 17px; }
.comp .rm:hover { background: var(--wash); color: var(--ink); }
.comp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.sum-ok { font-size: 13.5px; font-weight: 600; color: var(--up); }
.sum-bad { font-size: 13.5px; font-weight: 600; color: var(--down); }
@media (max-width: 600px) {
  .comp li { grid-template-columns: 34px minmax(0, 1fr) 80px 30px; }
  .comp input[type=range] { display: none; }
}

/* order card */
.field { display: grid; gap: 6px; }
.field label, .lbl { font-size: 12.5px; font-weight: 700; 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(91, 63, 166, .45); box-shadow: 0 0 0 4px rgba(91, 63, 166, .1); }
.input input, .input select { border: 0; outline: 0; background: transparent; font: inherit; font-size: 22px; font-weight: 600; width: 100%; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 0; }
.input select { font-size: 15px; cursor: pointer; }
.input .unit { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.quote { border-radius: 16px; background: rgba(255, 255, 255, .6); 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: 600; text-align: right; }
.qlegs { list-style: none; display: grid; gap: 4px; }
.qlegs li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.qlegs .tk { width: 28px; height: 28px; border-radius: 9px; font-size: 9px; }
.qlegs .mid { min-width: 0; }
.qlegs .mid b { font-weight: 600; }
.qlegs .mid small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qlegs .out { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.qlegs .out small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.qlegs li.bad .out { color: var(--down); }
.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, .6); font-weight: 600; }
.steps-mini span.on { background: var(--plum); 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, .64); min-width: 0; }
.metric .k { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.metric .v { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .metrics { grid-template-columns: 1fr 1fr; } }

/* holdings */
.hold { list-style: none; display: grid; gap: 4px; margin-top: 14px; }
.hold li { display: grid; grid-template-columns: 24px 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .6); }
.hold li.nochk { grid-template-columns: 34px minmax(0, 1fr) auto; }
.hold input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--violet); }
.hold .t { font-weight: 600; 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: 600; 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: 50px; 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, .55); 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: 600; }
.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(20, 12, 38, .44); 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: #fcfaff; 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: 600; }
.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: #231640; 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 { border-color: rgba(29, 21, 49, .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: #1d1531; color: #efe9ff; 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(255, 253, 255, .62); 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; } }
