/* Layout: an editorial left column (hero, then one chapter per feature) beside
   a sticky, working phone that runs the app; the phone is the hero's proof and
   every chapter drives it. Below 980px the phone sits under the hero. */
:root {
  --paper: #F4F1EA;        /* the app's canvas */
  --sheet: #FFFDF8;        /* cards */
  --raised: #EAE5D9;
  --ink: #16140F;
  --ink-2: #6B665B;
  --ink-3: #A09A8E;
  --rule: #DFD8C8;
  --marker: #FFC23D;       /* the one accent: the app's highlighter */
  --on-marker: #16140F;
  --gain: #12905A;  --gain-bg: #DCEFE2;
  --loss: #D2352D;  --loss-bg: #F7DEDA;
  --dem: #2E5BD8;   --dem-bg: #E1E8FB;
  --rep: #C42F38;   --rep-bg: #F8E0E1;
  --frame: #1D1C1A;
  --glass: rgba(255, 253, 248, .78);
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 10px 30px rgba(40, 30, 20, .08);

  --f-display: "Archivo", "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans", sans-serif;
  --f-body: "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --f-app: -apple-system, "SF Pro Text", "PingFang SC", "Hiragino Sans", "Noto Sans SC", sans-serif;
  --f-mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;

  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.3rem; --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem); --step-4: clamp(2.7rem, 7vw, 5.4rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110F; --sheet: #1C1A17; --raised: #28251F; --ink: #F2EDE3; --ink-2: #A69F91; --ink-3: #6E685D;
    --rule: #302D27; --gain: #3CC07F; --gain-bg: #163326; --loss: #F2675C; --loss-bg: #3B1C19;
    --dem: #7C9BFF; --dem-bg: #1C2442; --rep: #FF6E75; --rep-bg: #401C20; --frame: #050505;
    --glass: rgba(34, 32, 28, .78); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12110F; --sheet: #1C1A17; --raised: #28251F; --ink: #F2EDE3; --ink-2: #A69F91; --ink-3: #6E685D;
  --rule: #302D27; --gain: #3CC07F; --gain-bg: #163326; --loss: #F2675C; --loss-bg: #3B1C19;
  --dem: #7C9BFF; --dem-bg: #1C2442; --rep: #FF6E75; --rep-bg: #401C20; --frame: #050505;
  --glass: rgba(34, 32, 28, .78); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* platform layer: on a phone this should feel like an app, not a web page */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
html.demo-locked, html.demo-locked body { overflow: hidden; }
/* anchors land below the sticky top bar, not under it */
.chapter, .band, .hero { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 64px); }
button, a, [role="button"] { touch-action: manipulation; }
button, [role="button"], .store-search, .tabbar, .langs { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.get, .copy-btn, .go, .example, .langs button, .demo-done, .demo-launch span { transition: transform 120ms cubic-bezier(.23, 1, .32, 1), background-color 120ms; }
.get:active, .copy-btn:active, .go:active, .example:active, .langs button:active, .demo-done:active, .demo-launch:active span { transform: scale(.97); }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* the app's highlighter: a slightly tilted amber stroke behind the words */
.mark { position: relative; z-index: 0; color: var(--on-marker); white-space: nowrap; }
.mark::before {
  content: ""; position: absolute; z-index: -1; inset: .06em -.14em .02em -.12em;
  background: var(--marker); border-radius: .1em .26em .14em .22em / .2em .3em .26em .3em;
  transform: skewX(-6deg) scaleX(var(--sweep, 1)); transform-origin: left center;
  transition: transform .75s cubic-bezier(.2, .75, .3, 1);
}
.mark { transition: color .4s .2s; }
.mark.is-waiting { --sweep: 0; color: var(--ink); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.topbar .get { text-decoration: none; font-weight: 700; font-size: var(--step--1); padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); white-space: nowrap; }

/* ---------- layout ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  grid-template-areas: "hero phone" "story phone";
  column-gap: clamp(32px, 6vw, 96px); max-width: 1240px; margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.hero { grid-area: hero; padding-block: clamp(48px, 9vw, 120px) 56px; }
.story { grid-area: story; padding-bottom: 12vh; }
.phone-col { grid-area: phone; }
.phone-sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 70px); padding-block: 16px 12px; display: grid; justify-items: center; gap: 10px; }

.hero h1 { font-size: var(--step-4); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; font-stretch: 112%; }
.hero h1 > span { display: block; }
.hero .lede { margin-top: 28px; max-width: 34em; color: var(--ink-2); font-size: 1.12rem; }
.figures { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 16px clamp(20px, 5vw, 44px); }
.figure { min-width: 0; }
.figure b { display: block; font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: clamp(1.3rem, 5.4vw, 1.75rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.figure span { color: var(--ink-2); font-size: var(--step--1); line-height: 1.4; display: block; }
.store { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.store-search {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: var(--ink); color: var(--paper);
}
.store-search img { width: 44px; height: 44px; border-radius: 11px; }
.store-search small { display: block; font-size: .78rem; opacity: .75; line-height: 1.2; }
.store-search strong { display: block; font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.copy-btn { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: var(--step--1); cursor: pointer; }
.store-note { flex-basis: 100%; color: var(--ink-3); font-size: var(--step--1); }

/* ---------- chapters ---------- */
.chapter { padding-block: 72px; border-top: 1px solid var(--rule); min-height: 70vh; display: grid; align-content: start; gap: 22px; }
.chapter h2 { font-size: var(--step-3); font-weight: 900; line-height: 1.18; letter-spacing: -.015em; }
.chapter > p { max-width: 36em; color: var(--ink-2); }
.chapter .fine { font-size: var(--step--1); color: var(--ink-3); max-width: 40em; }
.facts { display: grid; gap: 14px; margin: 6px 0 0; max-width: 40em; }
.facts div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding-top: 14px; border-top: 1px dashed var(--rule); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); min-width: 0; }
.go {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 0; background: var(--sheet); box-shadow: var(--shadow); border-radius: 999px; padding: 10px 18px 10px 14px; font-weight: 700; font-size: var(--step--1);
}
.go svg { width: 18px; height: 18px; }

/* amount ladder: the STOCK Act's real bands */
.ladder-wrap { display: grid; gap: 18px; max-width: 40em; }
.examples { display: flex; flex-wrap: wrap; gap: 10px; }
.example { cursor: pointer; border: 1.5px solid var(--rule); background: var(--sheet); border-radius: 14px; padding: 8px 14px; text-align: left; line-height: 1.4; }
.example small { display: block; color: var(--ink-2); font-size: .78rem; }
.example[aria-pressed="true"] { border-color: var(--ink); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.ladder li { isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-family: var(--f-mono); font-size: .9rem; position: relative; }
.ladder li span:last-child { font-family: var(--f-body); font-size: .82rem; color: var(--ink-3); }
.ladder li.on { color: var(--on-marker); font-weight: 600; }
.ladder li.on::before { content: ""; position: absolute; inset: 1px -4px; z-index: -1; background: var(--marker); border-radius: 6px 12px 8px 10px; transform: skewX(-4deg); animation: sweep .6s cubic-bezier(.2, .75, .3, 1); transform-origin: left; }
.ladder li.on span:last-child { color: var(--on-marker); }
.ladder { position: relative; z-index: 0; }
@keyframes sweep { from { transform: skewX(-4deg) scaleX(0); } }
.clock { background: var(--sheet); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.clock p { color: var(--ink-2); font-size: var(--step--1); }
.clock-bar { position: relative; height: 10px; border-radius: 6px; background: var(--raised); }
.clock-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--ink); transition: width .6s cubic-bezier(.2, .75, .3, 1); }
.clock-bar i.late { background: var(--loss); }
.clock-bar b { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink-2); }
.clock-scale { position: relative; height: 1.2em; font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.clock-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.clock-scale span:first-child { transform: none; }
.clock-scale span:last-child { transform: translateX(-100%); }

.langs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: var(--raised); }
.langs button { border: 0; background: transparent; border-radius: 12px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.langs button[aria-pressed="true"] { background: var(--sheet); box-shadow: var(--shadow); }

/* ---------- widgets ---------- */
.band { max-width: 1240px; margin: 0 auto; padding: 88px clamp(16px, 4vw, 48px); border-top: 1px solid var(--rule); display: grid; gap: 32px; }
.band h2 { font-size: var(--step-3); font-weight: 900; line-height: 1.2; letter-spacing: -.015em; }
.band > p { color: var(--ink-2); max-width: 38em; }
.home {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: start;
  padding: clamp(18px, 3vw, 36px); border-radius: 36px;
  background: radial-gradient(120% 90% at 85% 0%, #F7C766 0%, rgba(247, 199, 102, 0) 55%), linear-gradient(160deg, #2B231A 0%, #5E4120 50%, #B97C2A 100%);
}
.home-col { display: grid; gap: 18px; min-width: 0; }
.home-caption { color: rgba(255, 250, 240, .86); font-size: .82rem; text-align: center; }
.w { background: var(--sheet); color: var(--ink); border-radius: 26px; padding: 16px; box-shadow: 0 8px 26px rgba(0, 0, 0, .25); font-family: var(--f-app); min-width: 0; }
.w-small { aspect-ratio: 1; max-width: 190px; display: grid; align-content: space-between; }
.w-row { display: flex; align-items: center; gap: 8px; }
.w-who { font-weight: 600; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-when { margin-left: auto; color: var(--ink-3); font-size: .78rem; white-space: nowrap; }
.w-big { font-family: var(--f-app); font-weight: 800; font-size: 2rem; letter-spacing: -.02em; line-height: 1.05; }
.w-tape { display: grid; gap: 8px; font-size: .82rem; }
.w-tape .tape-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
.w-tape .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--loss); }
.w-tape .dot.buy { background: var(--gain); }
.w-tape .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-tape .amt { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.notes { display: grid; gap: 10px; }
.note { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 22px; background: rgba(255, 253, 248, .72); color: #16140F; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--f-app); font-size: .85rem; line-height: 1.4; }
.note img { width: 38px; height: 38px; border-radius: 9px; }
.note strong { display: block; }
.note small { color: #6B665B; float: right; font-size: .75rem; }

/* ---------- download & footer ---------- */
.download { text-align: left; }
.download .store { margin-top: 8px; }
.foot { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 64px; border-top: 1px solid var(--rule); display: grid; gap: 14px; color: var(--ink-2); font-size: var(--step--1); }
.foot p { max-width: 60em; }

/* =================================================================
   The phone: a working copy of the app at its real point size
   ================================================================= */
/* the whole phone stays in view: never taller than the viewport under the top bar */
.phone-wrap { width: min(412px, 100%, max(300px, calc((100svh - 150px) * 0.4757))); aspect-ratio: 412 / 866; position: relative; }
.phone {
  position: absolute; left: 0; top: 0; width: 412px; height: 866px; transform-origin: top left; transform: scale(var(--s, 1));
  border-radius: 64px; padding: 11px; background: var(--frame);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 40px 80px rgba(40, 30, 20, .22), 0 8px 20px rgba(40, 30, 20, .14);
}
.screen {
  position: relative; width: 390px; height: 844px; border-radius: 53px; overflow: hidden;
  background: var(--paper); color: var(--ink); font-family: var(--f-app); font-size: 16px; line-height: 1.35;
  user-select: none; -webkit-user-select: none;
}
.island { position: absolute; z-index: 30; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.status { position: absolute; z-index: 29; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 32px 0 46px; font-weight: 600; font-size: 16px; pointer-events: none; }
.status svg { height: 12px; }
.layer { position: absolute; inset: 0; background: var(--paper); transition: transform .38s cubic-bezier(.32, .72, 0, 1), opacity .3s; will-change: transform; }
.layer.below { transform: translateX(-28%); }
.layer.enter { transform: translateX(100%); }
.scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 54px 0 120px; }
.scroll::-webkit-scrollbar { display: none; }
.pull-body { transition: transform .45s cubic-bezier(.2, .9, .3, 1); }
.pull-body.dragging { transition: none; }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 0; min-height: 52px; }
.large-title { font-size: 34px; font-weight: 800; letter-spacing: -.01em; padding: 2px 20px 8px; }
.circle-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--glass); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .06); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.circle-btn svg { width: 20px; height: 20px; }
.nav-title { font-weight: 700; font-size: 17px; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }

.card { background: var(--sheet); border-radius: 24px; margin: 0 16px; padding: 18px; }
.eyebrow { color: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.pulse-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pulse-top .stamp { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.pulse-figs { display: flex; gap: 26px; margin: 10px 0 12px; align-items: baseline; }
.pulse-figs b { font-size: 36px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pulse-figs span { color: var(--ink-2); font-size: 15px; margin-left: 4px; }
.ratio { display: flex; gap: 4px; height: 7px; }
.ratio i { border-radius: 4px; background: var(--gain); }
.ratio i + i { background: var(--loss); }
.ratio-legend { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.gain { color: var(--gain); } .loss { color: var(--loss); }
.hr { height: 1px; background: var(--rule); margin: 14px 0; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 14px; }
.kv .k { color: var(--ink-2); font-size: 13px; }
.kv .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-band { background: var(--marker); color: var(--on-marker); font-weight: 700; font-size: 13px; padding: 1px 6px; border-radius: 4px 7px 5px 6px; transform: skewX(-4deg); white-space: nowrap; }
.hot { display: flex; align-items: center; gap: 8px; margin-top: 12px; overflow: hidden; }
.hot .k { color: var(--ink-2); font-size: 13px; white-space: nowrap; margin-right: 2px; }
.hot-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 4px; border-radius: 999px; background: var(--raised); font-size: 13px; color: var(--ink-2); white-space: nowrap; }

.seg { display: flex; margin: 16px 16px 6px; padding: 3px; border-radius: 999px; background: var(--raised); }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.seg button.on { background: var(--sheet); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); font-weight: 600; }

.row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 18px 14px 16px; border-bottom: 1px solid var(--rule); cursor: pointer; text-align: left; background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; }
.row:active, .pol-row:active, .cell:active, .sug:active, .subrow:active { background: color-mix(in srgb, var(--raised) 70%, transparent); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--raised); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.who-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.who-line strong { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-line .when { margin-left: auto; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.party { width: 22px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; flex: none; }
.party svg { width: 15px; height: 12px; }
.party.D { background: var(--dem-bg); color: var(--dem); } .party.R { background: var(--rep-bg); color: var(--rep); } .party.I { background: var(--raised); color: var(--ink-2); }
.batch-title { font-size: 18px; font-weight: 700; margin-top: 2px; }
.batch-meta { font-size: 13px; color: var(--ink-2); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.coins { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.expand { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; border: 0; background: transparent; padding: 4px 0; cursor: pointer; }
.trade-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 16px; flex-wrap: wrap; }
.dir { font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.amount { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.subrows { margin-top: 6px; display: grid; gap: 2px; }
.subrow { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; padding: 5px 0; border-top: 1px dashed var(--rule); }
.subrow .amount { text-align: right; }

/* coins: the app's logo coins (silver rim, the company's face colour) */
.coin { --d: 26px; width: var(--d); height: var(--d); flex: none; border-radius: 50%; padding: 2px;
  background: radial-gradient(circle at 30% 22%, #FFFFFF 0%, #DADCDF 38%, #9EA3A9 72%, #F1F2F3 100%);
  box-shadow: 0 1.5px 2.5px rgba(0, 0, 0, .28), inset 0 -1px 1px rgba(0, 0, 0, .18); }
.coin > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--face, #fff); box-shadow: inset 0 1px 1.5px rgba(0, 0, 0, .22); }
.coin img { width: 74%; height: 74%; object-fit: contain; }
.coin.lg { --d: 34px; }
.sym { font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: -.01em; }

/* pull to ask */
.pull-zone { position: absolute; left: 0; right: 0; top: var(--pull-top, 108px); height: 0; display: grid; justify-items: center; align-content: end; gap: 8px; pointer-events: none; color: var(--ink-2); font-size: 13px; font-weight: 600; opacity: 0; }
.orb { width: 26px; height: 26px; border-radius: 50%; border: 2px dotted var(--ink-3); animation: spin 1.2s linear infinite; }
.armed .orb { border-color: var(--marker); border-style: solid; box-shadow: 0 0 22px var(--marker); }
@keyframes spin { to { transform: rotate(360deg); } }
.glow { position: absolute; inset: 0 0 auto; height: 360px; pointer-events: none; opacity: 0; background: radial-gradient(90% 100% at 50% 0%, rgba(255, 194, 61, .55), rgba(255, 194, 61, 0) 70%); transition: opacity .2s; z-index: 5; }
.bloom { position: absolute; z-index: 40; left: 50%; top: 120px; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #FFE7AE 0%, #FFC23D 45%, rgba(255, 194, 61, 0) 70%); transform: scale(0); opacity: 0; }
.bloom.go { animation: bloom .75s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes bloom { 0% { transform: scale(0); opacity: 1; } 55% { transform: scale(9); opacity: 1; } 100% { transform: scale(12); opacity: 0; } }

/* tab bar */
.tabbar { position: absolute; z-index: 25; left: 16px; right: 16px; bottom: 26px; height: 64px; border-radius: 34px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .12); }
.tabbar button { border: 0; background: transparent; border-radius: 28px; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 10.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.tabbar button svg { width: 23px; height: 23px; }
.tabbar button.on { background: color-mix(in srgb, var(--raised) 85%, transparent); }
.home-ind { position: absolute; z-index: 26; left: 50%; bottom: 8px; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: var(--ink); opacity: .85; }

/* trade detail */
.td-head { padding: 6px 20px 0; display: grid; gap: 4px; }
.td-ticker { display: flex; align-items: center; gap: 10px; font-size: 40px; font-weight: 900; letter-spacing: -.02em; }
.td-company { color: var(--ink-2); font-size: 14px; }
.timeline { display: grid; gap: 8px; }
.tl-bar { position: relative; height: 8px; border-radius: 4px; background: var(--raised); }
.tl-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ink); }
.tl-bar i.late { background: var(--loss); }
.tl-bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink-2); }
.tl-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.facts-list { display: grid; }
.facts-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.facts-list div:last-child { border-bottom: 0; }
.facts-list span:first-child { color: var(--ink-2); }
.facts-list span:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ask-card { display: flex; gap: 12px; align-items: center; cursor: pointer; border: 0; width: calc(100% - 32px); text-align: left; }
.ask-card svg { width: 24px; height: 24px; color: var(--ink); flex: none; }
.ask-card strong { display: block; font-size: 16px; }
.ask-card small { color: var(--ink-2); font-size: 13px; }
.link-line { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; margin: 14px 20px 0; text-decoration: underline; }
.fine-app { color: var(--ink-3); font-size: 12px; margin: 14px 20px 0; line-height: 1.5; }

/* officials */
.search { margin: 4px 16px 10px; display: flex; align-items: center; gap: 8px; background: var(--sheet); border-radius: 999px; padding: 10px 14px; box-shadow: 0 0 0 .5px var(--rule); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; width: 100%; color: var(--ink); }
.search svg { width: 18px; height: 18px; color: var(--ink-2); }
.h-sec { font-size: 21px; font-weight: 800; padding: 14px 20px 2px; }
.h-cap { font-size: 13px; color: var(--ink-2); padding: 0 20px 6px; }
.follow-row { display: flex; gap: 16px; padding: 8px 20px; }
.follow-row button { border: 0; background: transparent; display: grid; justify-items: center; gap: 6px; font-size: 13px; cursor: pointer; padding: 0; }
.follow-row .avatar { width: 60px; height: 60px; box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 5px var(--c, var(--ink-3)); }
.pol-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; }
.pol-row .meta { color: var(--ink-2); font-size: 13px; }
.pill { border-radius: 999px; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--rule); background: var(--sheet); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.pill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* politician */
.p-hero { position: relative; height: 330px; overflow: hidden; }
.float-nav { position: absolute; top: 54px; left: 0; right: 0; }
.p-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, var(--paper) 98%); }
.p-name { position: relative; z-index: 2; margin-top: -84px; padding: 0 20px; display: grid; gap: 4px; }
.p-name .meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.p-name h3 { font-family: var(--f-app); font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.p-follow { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.p-follow .pill { font-size: 15px; padding: 9px 18px; }
.p-follow small { color: var(--ink-2); font-size: 14px; }
.hero-card { position: relative; overflow: hidden; min-height: 160px; }
.hero-card .wm { position: absolute; right: -10px; top: -22px; font-size: 92px; font-weight: 900; letter-spacing: -.04em; color: var(--gain); opacity: .14; pointer-events: none; white-space: nowrap; }
.hero-card .val { font-size: 38px; font-weight: 900; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; position: relative; }
.badge-gain { display: inline-block; background: var(--gain-bg); color: var(--gain); font-weight: 700; font-size: 14px; padding: 2px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.hero-card .note-line { color: var(--ink-3); font-size: 12px; margin-top: 14px; position: relative; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 12px; }
.metrics > div { padding: 2px 16px; display: grid; gap: 4px; }
.metrics > div + div { border-left: 1px solid var(--rule); }
.metrics b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.metrics small { color: var(--ink-3); font-size: 11.5px; }
.meter { position: relative; height: 6px; border-radius: 3px; background: var(--raised); }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink); }
.meter b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-2); }
.spark { width: 100%; height: 120px; display: block; margin-top: 8px; }
.holding { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.holding:last-child { border-bottom: 0; }
.holding .company { color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* AI */
.ai-empty { padding: 28px 22px 0; display: grid; gap: 16px; }
.bot { width: 64px; height: 64px; border-radius: 50%; background: var(--marker); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(255, 194, 61, .45); }
.bot i { width: 8px; height: 13px; border-radius: 5px; background: #16140F; display: inline-block; margin: 0 4px; animation: blink 4s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.ai-h { font-size: 30px; font-weight: 900; line-height: 1.2; }
.sugs { display: grid; gap: 8px; }
.sugs .eyebrow { margin-bottom: 2px; }
.sug { border: 0; background: var(--sheet); border-radius: 18px; padding: 12px 14px; text-align: left; font-size: 15px; cursor: pointer; display: grid; gap: 2px; }
.sug small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.composer { position: absolute; z-index: 24; left: 16px; right: 16px; bottom: 102px; display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 26px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule), 0 6px 18px rgba(0, 0, 0, .06); }
.composer input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); min-width: 0; }
.composer button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.composer button svg { width: 18px; height: 18px; }
.ai-thread { padding: 8px 16px 140px; display: grid; gap: 14px; }
.bubble-q { justify-self: end; max-width: 82%; background: var(--raised); padding: 10px 14px; border-radius: 20px 20px 6px 20px; font-size: 15px; }
.answer { font-size: 15.5px; line-height: 1.6; display: grid; gap: 8px; }
.answer ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.answer p { margin: 0; }
.steps { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.step { display: flex; gap: 8px; align-items: center; }
.step .tick { width: 16px; height: 16px; border-radius: 50%; background: var(--marker); display: grid; place-items: center; color: #16140F; }
.step.done .tick { background: var(--ink); color: var(--paper); }
.step .tick svg { width: 11px; height: 11px; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; }
.sources a { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--raised); text-decoration: none; color: var(--ink-2); }
.sources a svg { width: 13px; height: 13px; }
.demo-tag { font-size: 11.5px; color: var(--ink-3); }
.caret { display: inline-block; width: 8px; height: 1em; background: var(--marker); vertical-align: -.12em; margin-left: 2px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* settings */
.group { background: var(--sheet); border-radius: 22px; margin: 0 16px; overflow: hidden; }
.group-h { padding: 18px 32px 8px; font-size: 15px; font-weight: 700; }
.group-f { padding: 8px 32px 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.cell { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--rule); font-size: 16px; width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; }
.cell:last-child { border-bottom: 0; }
.cell svg { width: 22px; height: 22px; flex: none; }
.cell .val { margin-left: auto; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.cell .check { margin-left: auto; color: var(--ink); }
.member { padding: 20px; display: grid; gap: 10px; }
.member .tag { justify-self: start; background: var(--marker); color: var(--on-marker); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.member h4 { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.35; }
.member p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.hint { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--step--1); max-width: 412px; text-align: center; justify-content: center; }
.hint b { color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .copy-btn:hover, .go:hover, .example:hover { background: var(--raised); }
  .row:hover, .pol-row:hover { background: color-mix(in srgb, var(--raised) 45%, transparent); }
}

/* ---------- the demo, full screen on phones ---------- */
.demo-launch { display: none; }
.hint .narrow { display: none; }
.demo-sheet {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: var(--paper); overscroll-behavior: contain;
  transform: translateY(100%); transition: transform .42s cubic-bezier(.32, .72, 0, 1);
}
.demo-sheet.open { transform: none; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px; border-bottom: 1px solid var(--rule); }
.demo-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.demo-title img { width: 24px; height: 24px; border-radius: 6px; }
.demo-done { border: 0; background: var(--ink); color: var(--paper); font-weight: 700; border-radius: 999px; padding: 7px 18px; font-size: .95rem; cursor: pointer; }
.demo-host { position: relative; overflow: hidden; display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom, 0px); }
.demo-stage { position: relative; }
.phone.bare { padding: 0; border-radius: 0; background: transparent; box-shadow: none; width: 390px; height: auto; }
.phone.bare .screen { border-radius: 0; }
.phone.bare .island, .phone.bare .status, .phone.bare .home-ind { display: none; }
.phone.bare .scroll { padding-top: 4px; }
.phone.bare .float-nav { top: 4px; }
.phone.bare .tabbar { bottom: 10px; }
.phone.bare .composer { bottom: 86px; }

@media (max-width: 979px) {
  /* inline, the phone is a preview the page scrolls straight past; a tap opens it */
  .phone-wrap .screen { pointer-events: none; }
  .demo-launch { display: grid; position: absolute; inset: 0; z-index: 3; place-items: end center; padding-bottom: 22%; border: 0; background: transparent; border-radius: 16% / 7.5%; cursor: pointer; }
  .demo-launch span { background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1rem; padding: 12px 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
  .hint .wide { display: none; }
  .hint .narrow { display: inline; }
}
@media (max-width: 979px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "phone" "story"; }
  .phone-sticky { position: static; padding-block: 8px 24px; }
  .chapter { min-height: 0; padding-block: 56px; }
}
@media (max-width: 520px) {
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
:root[lang="ja"] .hero h1 { font-size: clamp(2rem, 5.6vw, 3.8rem); line-height: 1.2; letter-spacing: 0; }
.top-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.langsel { font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 8px; cursor: pointer; max-width: 120px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}