/* Chinese ETF. Red ground, bone slabs, one yellow.
   Grammar: floating pill nav, centred display type, full-bleed slabs that
   overlap with a rounded lip, solid rounded cards, label-over-value pairs. */

:root {
  --red: #bd0409;
  --red-hi: #d30c12;
  --red-lo: #a30206;
  --red-ink: #6d0206;
  --gold: #ffde00;
  --gold-2: #f6ae19;
  --bone: #fbf5e6;
  --bone-2: #f1e8d3;
  --ink: #1a0507;
  --ink-2: #6b3b3d;
  --cream: #fff3e0;
  --cream-2: rgba(255, 240, 220, .72);
  --cream-3: rgba(255, 240, 220, .5);
  --panel: rgba(0, 0, 0, .18);
  --panel-2: rgba(0, 0, 0, .28);
  --line: rgba(255, 240, 220, .14);
  --r-card: 28px;
  --r-lip: 36px;
  --wrap: 1180px;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sc: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--red);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; }
::selection { background: var(--gold); color: var(--red-ink); }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sc { font-family: var(--sc); }

/* ── type ─────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 96px); letter-spacing: -.04em; line-height: .98; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; }
h3 { font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
.lede { font-size: 19px; line-height: 1.5; max-width: 560px; }
.muted { color: var(--cream-2); }
.on-bone .muted { color: var(--ink-2); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .22); color: var(--cream);
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
}
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 222, 0, .18); }
.on-bone .tag { background: var(--red); color: var(--cream); }

/* ── pills ────────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.pill:active { transform: scale(.98); }
.pill-gold { background: var(--gold); color: var(--red-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.pill-gold:hover { background: #fff0a3; transform: translateY(-1px); }
.pill-ghost { background: rgba(255, 240, 220, .12); color: var(--cream); }
.pill-ghost:hover { background: rgba(255, 240, 220, .2); }
.pill-red { background: var(--red); color: var(--cream); }
.pill-red:hover { background: var(--red-hi); }
.pill-ink { background: var(--ink); color: var(--bone); }
.pill-ink:hover { background: #3a0d10; }
.pill-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.pill[disabled], .pill.is-busy { opacity: .55; pointer-events: none; }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
.pill:hover .arrow { transform: translateX(3px); }

/* ── the CA pill ──────────────────────────────────────────── */

.ca {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 10px;
  min-height: 46px; padding: 0 8px 0 16px; border-radius: 999px;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 240, 220, .12); color: var(--cream);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.ca:hover { background: rgba(0, 0, 0, .3); border-color: rgba(255, 240, 220, .22); }
.ca-l { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.ca-a { font-size: 13.5px; color: var(--cream); }
.ca-short { display: none; }
.ca-c {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 240, 220, .12); font-size: 12.5px; font-weight: 600; color: var(--cream);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.ca:hover .ca-c { background: rgba(255, 240, 220, .2); }
.ca.copied .ca-c { background: var(--gold); color: var(--red-ink); }
@media (max-width: 600px) { .ca-full { display: none; } .ca-short { display: inline; } }

/* ── nav ──────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1100px, calc(100% - 24px));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(70, 0, 3, .55);
  border: 1px solid rgba(255, 240, 220, .12);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), top .35s var(--ease);
}
.nav.stuck { background: rgba(60, 0, 3, .78); box-shadow: 0 16px 50px rgba(0, 0, 0, .28); top: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.brand b { font-weight: 600; white-space: nowrap; }
.nav-mid { display: flex; justify-content: center; gap: 2px; }
.nav-mid a {
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--cream-2);
  transition: color .2s, background .2s;
}
.nav-mid a:hover { color: var(--cream); background: rgba(255, 240, 220, .08); }
.nav-mid a[aria-current="page"] { color: var(--cream); background: rgba(255, 240, 220, .12); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .25); font-size: 13px; font-weight: 500; color: var(--cream-2);
}
.chip b { color: var(--cream); font-weight: 600; font-family: var(--mono); font-size: 12.5px; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.nav .pill { min-height: 40px; padding: 0 18px; font-size: 14px; }
.nav-x-m { display: none; }
@media (max-width: 900px) { .nav.open .nav-x-m { display: block; } }
.nav-x {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .25); color: var(--cream); transition: background .2s, color .2s;
}
.nav-x:hover { background: var(--cream); color: var(--red-ink); }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .25); place-items: center; }
.nav-burger span { display: block; width: 16px; height: 2px; background: var(--cream); box-shadow: 0 -5px 0 var(--cream), 0 5px 0 var(--cream); }

@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-mid { display: none; }
  .nav .chip, .nav-x { display: none; }
  .nav-burger { display: grid; }
  .nav.open .nav-mid {
    display: flex; flex-direction: column; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    padding: 8px; border-radius: 24px; background: rgba(60, 0, 3, .95); border: 1px solid var(--line);
  }
  .nav.open .nav-mid a { padding: 12px 16px; }
  .lede { font-size: 17px; }
  .hero { padding-top: 120px; }
  .slab { padding: 80px 0 90px; }
}

/* ── hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 160px 0 0;
  background: radial-gradient(60% 55% at 50% 70%, var(--red-hi) 0%, var(--red) 55%, var(--red-lo) 100%);
  text-align: center;
  z-index: 3; /* the briefcase overhangs the slab below */
}
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { max-width: 19ch; font-size: clamp(36px, 5.4vw, 76px); }
.hero h1.rv-mask { padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .ln { display: block; overflow: hidden; padding: 0 .06em; margin: 0 -.06em; }
.hero .lede { margin: 0 auto; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-art {
  position: relative; width: min(560px, 82%); margin: 44px auto -6%;
  aspect-ratio: 1200 / 908; z-index: 3;
  filter: drop-shadow(0 40px 60px rgba(60, 0, 0, .45));
}
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
.js .rv-art { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease) .4s, transform 1.1s var(--ease) .4s; }
.js .rv-art.in { opacity: 1; transform: none; }
/* stat tiles under the hero */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -24px; position: relative; z-index: 3; }
.stat {
  padding: 22px 22px 20px; border-radius: 22px; background: var(--panel-2);
  border: 1px solid rgba(255, 240, 220, .08); text-align: left;
}
.stat .l { font-size: 13px; color: var(--cream-2); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.stat .v { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat .v small { font-size: 16px; color: var(--cream-2); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.stat .s { font-size: 12.5px; color: var(--cream-3); margin-top: 8px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } .stat .v { font-size: 30px; } }

/* ── slabs ────────────────────────────────────────────────── */

.slab { position: relative; padding: 110px 0 120px; }
.slab + .slab { margin-top: calc(-1 * var(--r-lip)); border-radius: var(--r-lip) var(--r-lip) 0 0; }
.hero + .slab { border-radius: var(--r-lip) var(--r-lip) 0 0; position: relative; z-index: 2; padding-top: 150px; }
.slab.bone { background: var(--bone); color: var(--ink); }
.slab.red { background: var(--red); color: var(--cream); }
.slab.gold { background: var(--gold); color: var(--red-ink); }
.slab.deep { background: var(--red-lo); color: var(--cream); }
.slab:last-of-type { padding-bottom: 140px; }
.head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 56px; }
.head h2 { max-width: 16ch; }
.head .lede { text-align: center; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 32px; } }

/* cards */
.card {
  border-radius: var(--r-card); padding: 30px;
  background: rgba(0, 0, 0, .2);
}
.bone .card { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 24px 60px rgba(120, 30, 20, .08); }
.red .card, .deep .card { background: var(--panel); }
.gold .card { background: rgba(255, 255, 255, .55); }
.card.white { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 24px 60px rgba(120, 30, 20, .08); }
.card.white > p, .card.white .note { color: var(--ink-2); }
.card h3 { margin-bottom: 10px; }
.card > p { color: var(--cream-2); }
.bone .card > p { color: var(--ink-2); }
.card .pill { margin-top: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }

/* label over value */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px 24px; margin-top: 26px; }
.kv .l { font-size: 12.5px; color: var(--cream-2); margin-bottom: 6px; }
.bone .kv .l, .white .kv .l { color: var(--ink-2); }
.kv .v { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.kv .v small { font-size: 14px; font-weight: 500; letter-spacing: 0; opacity: .7; margin-left: 3px; }

/* the ETF card (the hero object of the product) */
.etf-card { padding: 26px 26px 24px; }
.etf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.etf-name { display: flex; align-items: center; gap: 12px; }
.etf-mark {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red); color: var(--gold); font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: -.02em;
}
.etf-name b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.etf-name span { font-size: 13px; color: var(--ink-2); }
.wbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 22px 0 10px; background: var(--bone-2); }
.wbar i { display: block; height: 100%; transition: width 1s var(--ease); }
.wbar i:nth-child(1) { background: var(--red); }
.wbar i:nth-child(2) { background: var(--gold-2); }
.wbar i:nth-child(3) { background: var(--red-ink); }
.wbar i:nth-child(4) { background: #e0c27a; }
.legs { display: flex; flex-direction: column; gap: 0; }
.leg { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--bone-2); font-size: 14px; }
.leg:first-child { border-top: 0; }
.leg .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--red); }
.leg:nth-child(2) .dot { background: var(--gold-2); }
.leg:nth-child(3) .dot { background: var(--red-ink); }
.leg:nth-child(4) .dot { background: #e0c27a; }
.leg .n b { font-weight: 600; }
.leg .n span { color: var(--ink-2); margin-left: 6px; font-size: 13px; }
.leg .w { font-weight: 600; }
.leg .a { color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; }
.etf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bone-2); }
.etf-foot .kv { margin: 0; display: flex; gap: 26px; }
.etf-foot .kv .v { font-size: 22px; }

/* stock rows */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: grid; grid-template-columns: 52px 1.4fr 1fr 1fr 1fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; border-radius: 20px; background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 12px 30px rgba(120, 30, 20, .06);
}
.row .sym { width: 52px; height: 52px; border-radius: 16px; background: var(--red); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 13px; }
.row .co b { display: block; font-weight: 600; }
.row .co span { font-size: 13px; color: var(--ink-2); }
.row .cn { font-family: var(--sc); font-size: 13px; color: var(--ink-2); margin-left: 6px; }
.row .l { font-size: 12px; color: var(--ink-2); display: block; }
.row .v { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.row .x { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bone); color: var(--ink-2); font-weight: 500; }
@media (max-width: 900px) {
  .row { grid-template-columns: 44px 1fr 1fr; }
  .row .hide-m { display: none; }
}

/* statements */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.line { padding: 24px 26px; border-radius: 22px; background: var(--panel); }
.bone .line { background: var(--bone-2); }
.line b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; }
.line p { font-size: 14.5px; color: var(--cream-2); }
.bone .line p { color: var(--ink-2); }
@media (max-width: 900px) { .lines { grid-template-columns: 1fr; } }

/* closing */
.closing { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.closing h2 { max-width: 14ch; }
.closing img { width: 200px; border-radius: 44px; box-shadow: 0 30px 80px rgba(120, 60, 0, .25); }

/* ── footer ───────────────────────────────────────────────── */

.foot { position: relative; z-index: 3; background: var(--red-lo); padding: 0 0 40px; }
.foot-tail { overflow: hidden; }
.foot-card {
  position: relative; z-index: 2; margin-top: -60px;
  border-radius: var(--r-card); background: var(--bone); color: var(--ink); padding: 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.foot-card h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.foot-card a { display: block; padding: 4px 0; font-size: 14.5px; }
.foot-card a:hover { color: var(--red); }
.foot-card .mono { font-size: 12.5px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-brand p { font-size: 14px; color: var(--ink-2); max-width: 32ch; }
.foot-word {
  font-family: var(--display); font-weight: 600; letter-spacing: -.05em; line-height: .8;
  font-size: clamp(90px, 20vw, 300px); color: rgba(255, 240, 220, .08); text-align: center;
  margin: 20px 0 0; user-select: none; white-space: nowrap;
}
.foot-note { text-align: center; font-size: 12.5px; color: var(--cream-3); margin-top: 10px; }
@media (max-width: 900px) { .foot-card { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-card { grid-template-columns: 1fr; padding: 28px; } }

/* ── motion ───────────────────────────────────────────────── */

.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero .rv { transform: translateY(18px); }
/* lines that slide up from behind a clip */
.rv-ln { display: inline-block; }
.js .rv-ln { transform: translateY(108%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.js .rv-ln.in { transform: none; }
.rv-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rv-mask > span { display: block; }
.js .rv-mask > span { transform: translateY(105%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.js .rv-mask.in > span { transform: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv-ln, .js .rv-mask > span, .js .rv-art { opacity: 1; transform: none; transition: none; }
}

/* ── app surfaces ─────────────────────────────────────────── */

.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 14px 18px; border-radius: 18px;
  background: var(--gold); color: var(--red-ink); font-size: 14px; font-weight: 500;
}
.banner .pill { background: var(--red-ink); color: var(--gold); }

.app { padding: 130px 0 120px; }
.app-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.app-head h1 { font-size: clamp(38px, 5vw, 60px); }
.tabs.views { margin: 0; background: rgba(0, 0, 0, .25); }
.tabs.views button { color: var(--cream-2); }
.tabs.views button[aria-selected="true"] { background: var(--gold); color: var(--red-ink); }
.app-grid { display: grid; grid-template-columns: 1fr 420px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .app-grid { grid-template-columns: 1fr; } }
.panel { border-radius: var(--r-card); background: var(--bone); color: var(--ink); padding: 26px; }
.panel.dark { background: var(--panel-2); color: var(--cream); }
.panel h3 { margin-bottom: 6px; }
.panel .sub { font-size: 14px; color: var(--ink-2); }
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 20px; background: #fff; cursor: pointer; text-align: left; width: 100%;
  border: 2px solid transparent; transition: border-color .2s, transform .2s var(--ease);
}
.item:hover { transform: translateY(-1px); }
.item[aria-selected="true"] { border-color: var(--red); }
.item .etf-mark { width: 46px; height: 46px; }
.item .t b { display: block; font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.item .t span { font-size: 13px; color: var(--ink-2); }
.item .r { text-align: right; }
.item .r b { display: block; font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.item .r span { font-size: 12px; color: var(--ink-2); }

.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bone-2); gap: 2px; margin: 18px 0 16px; }
.tabs button { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--red); color: var(--cream); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field label { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; }
.field label button { color: var(--red); font-weight: 600; font-size: 13px; }
.input {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 54px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--bone-2);
}
.input:focus-within { border-color: var(--red); }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.input input::placeholder { color: #c9b9a8; }
.input .unit { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.input select { border: 0; background: none; font-weight: 600; color: var(--ink); outline: 0; }
.preview { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--bone-2); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.preview .pr { display: flex; justify-content: space-between; gap: 12px; }
.preview .pr b { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.note { font-size: 13px; color: var(--ink-2); margin-top: 12px; line-height: 1.5; }
.note.warn { color: var(--red); }
.msg { margin-top: 14px; font-size: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; display: none; }
.msg.show { display: block; }
.msg.err { color: var(--red); }
.msg.ok { color: #1c6b2b; }
.msg a { text-decoration: underline; }
.panel .pill { width: 100%; margin-top: 16px; }
.wal { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); margin-top: 14px; flex-wrap: wrap; }
.wal b { font-family: var(--mono); font-weight: 500; color: var(--ink); }

/* create */
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
.pick { display: flex; flex-direction: column; gap: 10px; }
.pick .item { grid-template-columns: 24px 46px 1fr 120px; }
.pick input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--red); }
.pick input[type="range"] { width: 100%; accent-color: var(--red); }
.pick .wt { display: flex; align-items: center; gap: 8px; justify-content: end; }
.pick .wt input[type="number"] { width: 64px; min-height: 36px; border-radius: 10px; border: 1.5px solid var(--bone-2); padding: 0 8px; font-family: var(--display); font-weight: 600; font-size: 16px; text-align: right; }
.pick .wt span { font-weight: 600; color: var(--ink-2); }
.sum { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.sum b { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.sum b.bad { color: var(--red); }
.text { min-height: 50px; border-radius: 14px; border: 1.5px solid var(--bone-2); padding: 0 14px; width: 100%; background: #fff; font-size: 16px; outline: 0; }
.text:focus { border-color: var(--red); }
.opt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* modal (wallet picker) */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(60, 0, 3, .6); backdrop-filter: blur(8px); }
.modal.show { display: grid; }
.modal .box { width: min(420px, calc(100% - 32px)); border-radius: 28px; background: var(--bone); color: var(--ink); padding: 26px; }
.modal .box h3 { margin-bottom: 4px; }
.modal .box p { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.wlist { display: flex; flex-direction: column; gap: 8px; }
.wlist button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; font-weight: 600; width: 100%; text-align: left; }
.wlist button img { width: 28px; height: 28px; border-radius: 8px; }
.wlist button:hover { background: #fff7d6; }
.modal .close { margin-top: 12px; width: 100%; }

/* docs */
.docs { padding: 140px 0 120px; }
.docs .wrap { max-width: 760px; }
.docs h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 18px; }
.docs h2 { font-size: 30px; margin: 56px 0 14px; }
.docs p, .docs li { font-size: 17px; line-height: 1.6; color: var(--cream); }
.docs p + p { margin-top: 14px; }
.docs ol, .docs ul { padding-left: 22px; margin: 12px 0; }
.docs li + li { margin-top: 8px; }
.docs .ex { margin: 22px 0; border-radius: 22px; background: var(--bone); color: var(--ink); padding: 22px 24px; }
.docs .ex p, .docs .ex li { color: var(--ink); font-size: 16px; }
.docs .ex b.n { font-family: var(--mono); font-weight: 500; background: var(--bone-2); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.docs table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.docs td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.docs td:first-child { color: var(--cream-2); width: 34%; }
.docs td a { text-decoration: underline; text-underline-offset: 3px; }
.docs code { font-family: var(--mono); font-size: 13.5px; background: rgba(0, 0, 0, .25); padding: 2px 6px; border-radius: 6px; }

/* ── three moves ──────────────────────────────────────────── */

.moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.move { padding: 8px 32px 8px 0; display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line); padding-left: 28px; }
.move:first-child { border-left: 0; padding-left: 0; }
.move .n { font-family: var(--mono); font-size: 12.5px; color: var(--gold); letter-spacing: .08em; }
.move p { color: var(--cream-2); font-size: 15.5px; }
.move .kv { margin-top: 10px; gap: 14px 18px; }
.move .kv .v { font-size: 24px; }
@media (max-width: 900px) {
  .moves { grid-template-columns: 1fr; gap: 28px; }
  .move { border-left: 0; padding: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .move:first-child { border-top: 0; padding-top: 0; }
}

/* ── the mixer ────────────────────────────────────────────── */

.mixer-slab { padding-bottom: 150px; }
.mixer-wrap { align-items: center; }
.mixer .l { font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.mix-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mix-legend { display: flex; gap: 16px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.mix-legend b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.mix-legend .d { width: 10px; height: 10px; border-radius: 3px; }
.mix-legend .d0 { background: var(--red); }
.mix-legend .d1 { background: var(--gold-2); }
.mix-eth { text-align: right; }
.mix-eth b { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.mix-bar { margin: 20px 0 6px; height: 14px; }
.mix-bar i { transition: width .25s var(--ease); }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--bone-2); }
.slider::-moz-range-track { height: 4px; border-radius: 2px; background: var(--bone-2); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--red); border: 4px solid #fff; box-shadow: 0 4px 14px rgba(120, 0, 0, .3); transition: transform .2s var(--ease); }
.slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 4px solid #fff; box-shadow: 0 4px 14px rgba(120, 0, 0, .3); }
.slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.mix-out { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--bone-2); }
.mix-out .v { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.mix-out .s { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 520px) { .mix-out { grid-template-columns: 1fr 1fr; } .mix-top { flex-direction: column; } .mix-eth { text-align: left; } }

/* phone layout for the builder; after the base rules so it wins on equal specificity */
@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  /* the weight drops to its own row so the company name gets the width */
  .pick .item { grid-template-columns: 22px 38px 1fr; gap: 10px 12px; padding: 12px 14px; }
  .pick .item .etf-mark { width: 38px; height: 38px; font-size: 11px; }
  .pick .item .t b { font-size: 15px; }
  .pick .wt { grid-column: 1 / -1; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--bone-2); }
  .pick .wt::before { content: "Weight"; font-size: 13px; color: var(--ink-2); margin-right: auto; }
  .pick .wt input[type="number"] { width: 64px; }
