/* preopen.com: the phones on the front page. Every screen is drawn by hand, in HTML and SVG, from the app's own
   tokens (constants/tokens.ts) and type scale, with example companies and figures. No screenshots: they date.
   Sizes are in the app's points. --p is one point at the phone's current size, so one rule draws every size;
   outside a phone (the floating cards and chips) .ui sets it to one pixel. How to edit: docs/WEBSITE.md. */

/* ── the device ───────────────────────────────────────────────────────────────────────────── */
.phone {
  position: relative;
  width: var(--w, 300px);
  max-width: 100%;
  margin: 0;
  flex: none;
  container-type: inline-size;
}
.phone .bezel {
  position: relative;
  padding: 3cqw;
  border-radius: 16.6cqw;
  background: linear-gradient(140deg, var(--frame-hi), var(--frame-lo) 30%, var(--frame-lo) 70%, var(--frame-hi));
  box-shadow: inset 0 0 0 0.5cqw rgba(255, 255, 255, 0.12), inset 0 0 0 1.5cqw #050608, var(--shadow-2);
}
.phone .bezel::after {
  /* The Dynamic Island. */
  content: '';
  position: absolute;
  left: 50%;
  top: calc(3cqw + 2.6cqw);
  width: 29cqw;
  height: 8.5cqw;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone .screen {
  position: relative;
  overflow: hidden;
  border-radius: 13.6cqw;
  background: var(--base);
  aspect-ratio: 1206 / 2622;
  z-index: 1;
}
/* The buttons on its sides. */
.phone::before, .phone::after {
  content: '';
  position: absolute;
  width: 1cqw;
  border-radius: 3px;
  background: var(--frame-lo);
}
.phone::before { left: -0.7cqw; top: 19%; height: 5.5%; box-shadow: 0 10cqw 0 var(--frame-lo), 0 24cqw 0 var(--frame-lo); }
.phone::after { right: -0.7cqw; top: 27%; height: 10%; }

/* ── a screen: the app's type and surfaces, in points ─────────────────────────────────────── */
.scr {
  --p: calc(94cqw / 402);
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--base);
  color: var(--ink);
  font-size: calc(15 * var(--p));
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0;
  text-align: left;
  user-select: none;
}
.ui { --p: 1px; }
.scr svg, .ui svg { display: block; overflow: visible; }

.t-hero { font-weight: 200; font-size: calc(36 * var(--p)); line-height: calc(43 * var(--p)); letter-spacing: calc(-0.9 * var(--p)); }
.t-head { font-weight: 300; font-size: calc(24 * var(--p)); line-height: calc(32 * var(--p)); letter-spacing: calc(-0.5 * var(--p)); }
.t-headsm { font-weight: 300; font-size: calc(18 * var(--p)); line-height: calc(26 * var(--p)); letter-spacing: calc(-0.3 * var(--p)); }
.t-title { font-weight: 400; font-size: calc(16 * var(--p)); line-height: calc(22 * var(--p)); letter-spacing: calc(-0.15 * var(--p)); }
.t-body { font-weight: 300; font-size: calc(15 * var(--p)); line-height: calc(24 * var(--p)); }
.t-note { font-weight: 400; font-size: calc(13 * var(--p)); line-height: calc(19 * var(--p)); }
.t-cap { font-weight: 400; font-size: calc(12 * var(--p)); line-height: calc(17 * var(--p)); }
.t-label { font-weight: 500; font-size: calc(11 * var(--p)); line-height: calc(15 * var(--p)); letter-spacing: calc(1.3 * var(--p)); text-transform: uppercase; }
.t-numlg { font-weight: 300; font-size: calc(28 * var(--p)); line-height: calc(32 * var(--p)); letter-spacing: calc(-0.5 * var(--p)); font-variant-numeric: tabular-nums; }
.ink2 { color: var(--ink-2); }
.ink3 { color: var(--ink-3); }
.up { color: var(--up); }
.acc { color: var(--accent); }
.pw { color: var(--periwinkle); }

/* The status bar: 9:41, full signal, a full battery. */
.sb {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  height: calc(54 * var(--p));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 calc(30 * var(--p)) calc(12 * var(--p)) calc(44 * var(--p));
  font-weight: 500;
  font-size: calc(16 * var(--p));
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.sb svg { width: calc(70 * var(--p)); height: calc(13 * var(--p)); }

/* The photograph at a page's head, as the app draws it: its own scrim in the dark, washed pale in the light. */
.hd { position: relative; isolation: isolate; padding: calc(62 * var(--p)) calc(20 * var(--p)) calc(18 * var(--p)); }
.hd-ph { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hd-ph picture, .hd-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hd-ph::after { content: ''; position: absolute; inset: 0 0 -1px; background: var(--wash); }
.back { color: var(--accent); font-weight: 300; font-size: calc(15 * var(--p)); line-height: calc(24 * var(--p)); margin-bottom: calc(14 * var(--p)); }
.hd .t-hero { margin-top: calc(4 * var(--p)); }
.hd .t-body { margin-top: calc(6 * var(--p)); }
.scr .on { color: var(--ink); text-shadow: var(--on-shadow); }

/* A card: raised, radius xl, 20pt padding, one hairline, light on its top edge. */
.cd {
  position: relative;
  margin: 0 calc(20 * var(--p));
  padding: calc(20 * var(--p));
  border-radius: calc(28 * var(--p));
  background: var(--raised);
  box-shadow: inset 0 0 0 max(1px, calc(1 * var(--p))) var(--hairline), inset 0 calc(12 * var(--p)) calc(16 * var(--p)) calc(-8 * var(--p)) var(--accent-glow);
}
.cd + .cd { margin-top: calc(14 * var(--p)); }
.rule { height: 1px; background: var(--hairline); }
.chev { flex: none; width: calc(6 * var(--p)); height: calc(10 * var(--p)); color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; padding: calc(3 * var(--p)) calc(10 * var(--p)); border-radius: 999px; background: var(--accent-glow); color: var(--accent); font-weight: 400; font-size: calc(13 * var(--p)); line-height: calc(19 * var(--p)); white-space: nowrap; }
/* A page that goes on: the end of the screen fades into the page rather than stopping at an edge. */
.fade { position: absolute; inset: auto 0 0 0; height: calc(110 * var(--p)); z-index: 2; background: linear-gradient(180deg, transparent, var(--base) 88%); pointer-events: none; }

/* ── the stock page ───────────────────────────────────────────────────────────────────────── */
.px { display: flex; align-items: baseline; gap: calc(9 * var(--p)); margin-top: calc(4 * var(--p)); position: relative; }
.px-v { font-weight: 300; font-size: calc(31 * var(--p)); line-height: calc(38 * var(--p)); letter-spacing: calc(-0.5 * var(--p)); font-variant-numeric: tabular-nums; }
.px-c { font-weight: 400; font-size: calc(14 * var(--p)); font-variant-numeric: tabular-nums; }
.spark { position: absolute; right: 0; bottom: calc(1 * var(--p)); width: calc(104 * var(--p)); height: calc(36 * var(--p)); }
.spark .ln { fill: none; stroke: var(--up); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.score { padding-top: calc(22 * var(--p)); padding-bottom: calc(8 * var(--p)); }
.dial { position: relative; width: calc(132 * var(--p)); height: calc(132 * var(--p)); margin: 0 auto; }
.dial svg { width: 100%; height: 100%; }
.dial .tr { fill: none; stroke: var(--track); stroke-width: 6; stroke-linecap: round; }
.dial .bl { fill: none; stroke: var(--up); stroke-opacity: 0.38; stroke-width: 11; stroke-linecap: round; stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1300ms var(--ease-out) 200ms; }
.dial .fl { fill: none; stroke: var(--up); stroke-width: 6; stroke-linecap: round; stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1300ms var(--ease-out) 200ms; }
.dial .ct { stroke: var(--raised); stroke-width: 2; }
.dial-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding-bottom: calc(4 * var(--p)); }
.dial-in b { font-weight: 200; font-size: calc(36 * var(--p)); line-height: calc(40 * var(--p)); letter-spacing: calc(-1.2 * var(--p)); font-variant-numeric: tabular-nums; }
.dial-in span { font-weight: 400; font-size: calc(12.5 * var(--p)); line-height: calc(17 * var(--p)); color: var(--ink-3); }
.score .nm { text-align: center; margin-top: calc(2 * var(--p)); font-weight: 300; font-size: calc(15 * var(--p)); line-height: calc(22 * var(--p)); color: var(--ink-2); }
.fv { display: flex; align-items: center; justify-content: center; gap: calc(9 * var(--p)); margin-top: calc(9 * var(--p)); }
.fv .k { font-size: calc(15 * var(--p)); color: var(--ink-2); }
.fv .v { font-weight: 300; font-size: calc(19 * var(--p)); letter-spacing: calc(-0.2 * var(--p)); font-variant-numeric: tabular-nums; }
.hl { margin-top: calc(19 * var(--p)); }
.hl-t { display: flex; justify-content: space-between; align-items: center; gap: calc(8 * var(--p)); font-size: calc(14 * var(--p)); line-height: calc(20 * var(--p)); color: var(--ink-2); }
.hl-t em { font-style: normal; margin-left: auto; color: var(--coral); }
.hl-b { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(3 * var(--p)); margin-top: calc(13 * var(--p)); }
.hl-b i { height: calc(3.5 * var(--p)); border-radius: 2px; opacity: 0.22; background: var(--c); }
.hl-b i.lit { opacity: 1; }
.hl-b::after { content: ''; position: absolute; left: 70%; top: calc(-7 * var(--p)); margin-left: calc(-4.5 * var(--p)); border: solid transparent; border-width: calc(5 * var(--p)) calc(4.5 * var(--p)) 0; border-top-color: var(--ink); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; margin-top: calc(18 * var(--p)); border-top: 1px solid var(--hairline); }
.tile-s { padding: calc(14 * var(--p)) calc(10 * var(--p)) calc(12 * var(--p)) 0; display: grid; align-content: start; }
.tile-s:nth-child(2n) { padding-left: calc(12 * var(--p)); padding-right: 0; border-left: 1px solid var(--hairline); }
.tile-s:nth-child(n+3) { border-top: 1px solid var(--hairline); }
.tile-s .tt { display: flex; justify-content: space-between; align-items: center; font-size: calc(13.5 * var(--p)); line-height: calc(19 * var(--p)); color: var(--ink-2); }
.tile-s .fg { font-weight: 300; font-size: calc(31 * var(--p)); line-height: calc(37 * var(--p)); letter-spacing: calc(-0.5 * var(--p)); margin-top: calc(1 * var(--p)); font-variant-numeric: tabular-nums; }
.tile-s .wd { font-weight: 400; font-size: calc(13 * var(--p)); line-height: calc(18 * var(--p)); }
.bar { position: relative; display: block; height: calc(3 * var(--p)); border-radius: 2px; background: var(--track); margin-top: calc(7 * var(--p)); }
.bar i { position: absolute; left: var(--from, 0); top: 0; bottom: 0; width: var(--v); border-radius: 2px; background: var(--c, var(--up)); transition: width 1200ms var(--ease-out) 300ms; }
.bar.mid::after { content: ''; position: absolute; left: 50%; top: calc(-3 * var(--p)); bottom: calc(-3 * var(--p)); width: 1px; background: var(--ink-3); }

/* ── Now ──────────────────────────────────────────────────────────────────────────────────── */
.now-ph { position: absolute; inset: 0 0 auto 0; height: calc(540 * var(--p)); overflow: hidden; }
.now-ph picture, .now-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% 0; }
.now-ph::after { content: ''; position: absolute; inset: 0; background: var(--wash-now); }
.now { position: relative; padding-top: calc(62 * var(--p)); text-align: left; }
.bar-top { display: flex; gap: calc(10 * var(--p)); margin: 0 calc(20 * var(--p)); }
.srch { flex: 1; min-width: 0; display: flex; align-items: center; gap: calc(9 * var(--p)); height: calc(38 * var(--p)); padding: 0 calc(14 * var(--p)); border-radius: 999px; background: var(--glassy); color: var(--ink-2); font-size: calc(15 * var(--p)); }
.srch svg { flex: none; width: calc(15 * var(--p)); height: calc(15 * var(--p)); }
.disc { flex: none; width: calc(38 * var(--p)); height: calc(38 * var(--p)); border-radius: 50%; background: var(--glassy); display: grid; place-items: center; color: var(--ink); }
.disc.g { color: var(--accent); }
.disc svg { width: calc(16 * var(--p)); height: calc(16 * var(--p)); }
.greet { margin: calc(16 * var(--p)) calc(20 * var(--p)) 0; }
.pulse { position: relative; width: calc(150 * var(--p)); height: calc(150 * var(--p)); margin: calc(30 * var(--p)) auto 0; }
.pulse svg { width: 100%; height: 100%; }
.pulse .tr { fill: none; stroke: var(--track); stroke-width: 6; stroke-linecap: round; }
.pulse .fl { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1300ms var(--ease-out) 300ms; }
.pulse .mk { fill: var(--base); stroke: var(--ink); stroke-width: 2.4; }
.pulse .sp { fill: var(--gold); opacity: 0.55; }
.pulse b { position: absolute; inset: 0; display: grid; place-content: center; font-weight: 200; font-size: calc(58 * var(--p)); line-height: 1; letter-spacing: calc(-2 * var(--p)); font-variant-numeric: tabular-nums; }
.pulse-w { text-align: center; padding: 0 calc(20 * var(--p)); margin-top: calc(2 * var(--p)); }
.pulse-w .t-head { margin-top: calc(3 * var(--p)); }
.pulse-w .t-body { margin-top: calc(3 * var(--p)); }
.ask-bar { display: flex; align-items: center; gap: calc(11 * var(--p)); height: calc(44 * var(--p)); margin: calc(16 * var(--p)) calc(20 * var(--p)) 0; padding: 0 calc(16 * var(--p)); border-radius: 999px; box-shadow: inset 0 0 0 max(1px, calc(1 * var(--p))) var(--line); color: var(--ink-3); font-size: calc(15 * var(--p)); }
.ask-bar svg { flex: none; width: calc(15 * var(--p)); height: calc(15 * var(--p)); color: var(--accent); }
.day { margin-top: calc(14 * var(--p)); }
.day-l { display: grid; grid-template-columns: calc(34 * var(--p)) minmax(0, 1fr); gap: calc(12 * var(--p)); align-items: center; margin-top: calc(12 * var(--p)); font-size: calc(15 * var(--p)); line-height: calc(22 * var(--p)); }
.day-g { width: calc(34 * var(--p)); height: calc(34 * var(--p)); border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 max(1px, calc(1.2 * var(--p))) var(--c); color: var(--c); }
.day-g svg { width: calc(15 * var(--p)); height: calc(15 * var(--p)); }

/* ── fair value ───────────────────────────────────────────────────────────────────────────── */
.big { font-weight: 300; font-size: calc(48 * var(--p)); line-height: calc(56 * var(--p)); letter-spacing: calc(-1.4 * var(--p)); }
.vb { position: relative; height: calc(92 * var(--p)); margin-top: calc(16 * var(--p)); }
.vb > * { position: absolute; }
.vb-p { top: 0; transform: translateX(-50%); white-space: nowrap; color: var(--up); }
.vb-z { top: calc(25 * var(--p)); height: calc(8 * var(--p)); }
.vb-w { top: calc(19 * var(--p)); height: calc(41 * var(--p)); width: calc(2 * var(--p)); margin-left: calc(-1 * var(--p)); border-radius: 1px; background: var(--ink); }
.vb-b { top: calc(45 * var(--p)); height: calc(10 * var(--p)); border-radius: 5px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.vb-t { top: calc(42 * var(--p)); height: calc(16 * var(--p)); width: calc(2 * var(--p)); margin-left: calc(-1 * var(--p)); border-radius: 1px; background: var(--ink-2); }
.vb-d { top: calc(21 * var(--p)); width: calc(16 * var(--p)); height: calc(16 * var(--p)); margin-left: calc(-8 * var(--p)); border-radius: 50%; background: var(--up); border: calc(3 * var(--p)) solid var(--raised); box-shadow: 0 0 calc(12 * var(--p)) color-mix(in srgb, var(--up) 70%, transparent); }
.vb-wl { top: calc(60 * var(--p)); left: 50%; transform: translateX(-50%); white-space: nowrap; }
.vb-e { bottom: 0; color: var(--ink-3); }
.mt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 calc(12 * var(--p)); padding: calc(10 * var(--p)) 0; border-top: 1px solid var(--hairline); }
.mt:first-of-type { border-top: 0; }
.mt span { font-size: calc(15 * var(--p)); line-height: calc(22 * var(--p)); }
.mt b { font-weight: 300; font-size: calc(18 * var(--p)); font-variant-numeric: tabular-nums; }

/* ── bull and bear, a card of its own ─────────────────────────────────────────────────────── */
.bb { padding: calc(20 * var(--p)); border-radius: calc(26 * var(--p)); background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline), inset 0 calc(12 * var(--p)) calc(16 * var(--p)) calc(-8 * var(--p)) var(--accent-glow), var(--shadow-2); text-align: left; color: var(--ink); font-weight: 300; }
.bb-t { display: flex; height: 5px; gap: 3px; margin-top: 10px; }
.bb-t i { border-radius: 3px; flex: var(--n); background: var(--up); }
.bb-t i + i { background: var(--periwinkle); }
.bb-g { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 14px; }
.pt { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 0 8px; margin-top: 12px; }
.pt svg { width: 14px; height: 14px; margin-top: 2px; color: var(--c); }
.pt b { font-weight: 400; font-size: 13.5px; line-height: 18px; color: var(--ink); }
.pt span { grid-column: 2; font-weight: 400; font-size: 12px; line-height: 17px; color: var(--ink-3); }
.bb-s { font-weight: 400; font-size: 14px; line-height: 19px; }

/* ── the Screener ─────────────────────────────────────────────────────────────────────────── */
.fit { display: flex; align-items: baseline; gap: calc(8 * var(--p)); margin: calc(2 * var(--p)) calc(20 * var(--p)) 0; }
.fit b { font-weight: 200; font-size: calc(42 * var(--p)); line-height: calc(46 * var(--p)); letter-spacing: calc(-1.2 * var(--p)); font-variant-numeric: tabular-nums; }
.pent { display: block; width: calc(100% - calc(24 * var(--p))); margin: calc(-14 * var(--p)) auto 0; }
.pent text { font-family: inherit; font-weight: 400; font-size: 10.5px; fill: var(--ink-2); text-anchor: middle; }
.pent text.on-axis { fill: var(--accent); }
.pent .gd { fill: none; stroke: var(--line); stroke-width: 0.8; }
.pent .sk { stroke: var(--hairline); stroke-width: 0.8; }
.pent .gh { fill: var(--up); fill-opacity: 0.035; stroke: var(--up); stroke-opacity: 0.12; stroke-width: 0.8; }
.pent .mn { fill: var(--up); fill-opacity: 0.22; stroke: var(--up); stroke-width: 1.6; stroke-linejoin: round; }
.pent .hd-on { fill: var(--up); stroke: var(--raised); stroke-width: 2; }
.pent .hd-off { fill: var(--raised); stroke: var(--ink-3); stroke-width: 1.2; }
.js .reveal:not(.in) .pent .grow { transform: scale(0.45); }
.pent .grow { transform-origin: 160px 128px; transition: transform 1100ms var(--ease-out) 250ms; }
.rk { display: grid; grid-template-columns: calc(40 * var(--p)) minmax(0, 1fr) auto; gap: calc(12 * var(--p)); align-items: center; padding: calc(10 * var(--p)) 0; border-top: 1px solid var(--hairline); }
.rk:first-of-type { border-top: 0; padding-top: calc(6 * var(--p)); }
.rk svg { width: calc(40 * var(--p)); height: calc(40 * var(--p)); }
.rk .rm { fill: none; stroke: var(--line); stroke-width: 1; }
.rk .sh { fill: var(--up); fill-opacity: 0.32; stroke: var(--up); stroke-width: 1; stroke-linejoin: round; }
.rk .sh.w { fill: var(--ink); stroke: var(--ink); fill-opacity: 0.2; }
.rk .fg { font-weight: 300; font-size: calc(24 * var(--p)); letter-spacing: calc(-0.4 * var(--p)); font-variant-numeric: tabular-nums; }

/* ── Smart money ──────────────────────────────────────────────────────────────────────────── */
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: calc(18 * var(--p)) calc(20 * var(--p)) calc(10 * var(--p)); }
.sig { display: grid; grid-template-columns: minmax(0, 1fr) calc(52 * var(--p)); gap: 0 calc(12 * var(--p)); }
.mk-s { text-align: right; }
.mk-s .t-cap { color: var(--ink-3); }
.mk-s .bar { margin-top: calc(5 * var(--p)); }
.why { display: grid; gap: calc(4 * var(--p)); margin-top: calc(10 * var(--p)); padding-top: calc(10 * var(--p)); border-top: 1px solid var(--hairline); }
.why div { display: grid; grid-template-columns: calc(14 * var(--p)) minmax(0, 1fr); align-items: baseline; }
.why i { width: calc(4 * var(--p)); height: calc(4 * var(--p)); border-radius: 50%; background: var(--accent); align-self: center; }

/* ── Before the Bell ──────────────────────────────────────────────────────────────────────── */
.art { padding: calc(100 * var(--p)) calc(20 * var(--p)) 0; position: relative; }
.art-ph { position: absolute; inset: 0 0 auto 0; height: calc(220 * var(--p)); overflow: hidden; }
.art-ph picture, .art-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.art-ph::after { content: ''; position: absolute; inset: 0; background: var(--wash); }
.art > * { position: relative; }
.art .t-hero { margin-top: calc(8 * var(--p)); }
.art .sf { margin-top: calc(10 * var(--p)); }
.art .by { margin-top: calc(12 * var(--p)); padding-bottom: calc(14 * var(--p)); border-bottom: 1px solid var(--line); }
.head-m { display: grid; gap: calc(8 * var(--p)); margin-top: calc(16 * var(--p)); }
.head-m i { width: calc(24 * var(--p)); height: calc(2 * var(--p)); border-radius: 1px; background: var(--accent); }
.art .pg { margin-top: calc(8 * var(--p)); font-size: calc(15 * var(--p)); line-height: calc(24 * var(--p)); }
.art b { font-weight: 500; color: var(--ink); }
.art u { color: var(--accent); text-decoration-color: var(--accent-edge); text-decoration-thickness: max(1px, calc(1 * var(--p))); text-underline-offset: calc(3 * var(--p)); }
.mv { margin: calc(14 * var(--p)) 0 0; padding: calc(16 * var(--p)); border-radius: calc(20 * var(--p)); background: var(--raised); box-shadow: inset 0 0 0 max(1px, calc(1 * var(--p))) var(--hairline); }
.mv-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 calc(8 * var(--p)); margin-top: calc(10 * var(--p)); font-size: calc(14 * var(--p)); line-height: calc(20 * var(--p)); }
.mv-r .bar { grid-column: 1 / -1; margin-top: calc(5 * var(--p)); }
.mv-r em { font-style: normal; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--up); }

/* ── the Lock Screen ──────────────────────────────────────────────────────────────────────── */
.lock { color: #F4F1EA; }
.lock .sb { color: #F4F1EA; }
.lock-ph { position: absolute; inset: 0; }
.lock-ph picture, .lock-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.lock-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 19, 0.12), rgba(10, 13, 19, 0.38)); }
.lock-c { position: absolute; inset: calc(62 * var(--p)) 0 auto 0; text-align: center; }
.lock-c .dy { font-weight: 400; font-size: calc(17 * var(--p)); line-height: calc(24 * var(--p)); color: rgba(244, 241, 234, 0.9); }
.lock-c .ck { font-weight: 200; font-size: calc(80 * var(--p)); line-height: calc(86 * var(--p)); letter-spacing: calc(-3 * var(--p)); text-shadow: 0 calc(2 * var(--p)) calc(20 * var(--p)) rgba(0, 0, 0, 0.3); }
.nts { position: absolute; inset: calc(214 * var(--p)) calc(14 * var(--p)) auto; display: grid; gap: calc(8 * var(--p)); }
.nt { display: grid; grid-template-columns: calc(38 * var(--p)) minmax(0, 1fr) auto; gap: 0 calc(11 * var(--p)); align-items: start; padding: calc(13 * var(--p)) calc(14 * var(--p)); border-radius: calc(22 * var(--p)); background: var(--note); box-shadow: inset 0 0 0 max(1px, calc(1 * var(--p))) var(--note-edge); color: var(--note-ink); -webkit-backdrop-filter: blur(calc(24 * var(--p))) saturate(1.5); backdrop-filter: blur(calc(24 * var(--p))) saturate(1.5); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.nt img { grid-row: span 2; display: block; width: calc(38 * var(--p)); height: calc(38 * var(--p)); border-radius: calc(9 * var(--p)); align-self: center; }
.nt b { font-weight: 500; font-size: calc(14 * var(--p)); line-height: calc(19 * var(--p)); }
.nt time { font-weight: 400; font-size: calc(12.5 * var(--p)); line-height: calc(19 * var(--p)); opacity: 0.6; white-space: nowrap; }
.nt p { grid-column: 2 / -1; font-weight: 400; font-size: calc(13.5 * var(--p)); line-height: calc(18 * var(--p)); opacity: 0.85; }
.js .reveal:not(.in) .nt { opacity: 0; transform: translateY(calc(14 * var(--p))); }
.nt:nth-child(2) { transition-delay: 180ms; }
.nt:nth-child(3) { transition-delay: 360ms; }
.lk-a { position: absolute; bottom: calc(46 * var(--p)); width: calc(50 * var(--p)); height: calc(50 * var(--p)); border-radius: 50%; background: rgba(20, 24, 32, 0.45); display: grid; place-items: center; }
.lk-a svg { width: calc(18 * var(--p)); height: calc(18 * var(--p)); color: #F4F1EA; }
.lk-b { position: absolute; left: 50%; bottom: calc(12 * var(--p)); width: calc(140 * var(--p)); height: calc(5 * var(--p)); margin-left: calc(-70 * var(--p)); border-radius: 3px; background: #F4F1EA; opacity: 0.9; }

/* ── Ask ──────────────────────────────────────────────────────────────────────────────────── */
.ans { position: relative; padding: calc(96 * var(--p)) calc(20 * var(--p)) 0; }
.ans-ph { position: absolute; inset: 0 0 auto 0; height: calc(200 * var(--p)); overflow: hidden; }
.ans-ph picture, .ans-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ans-ph::after { content: ''; position: absolute; inset: 0; background: var(--wash); }
.ans > * { position: relative; }
.ans .q { margin-top: calc(14 * var(--p)); color: var(--ink-2); }
.ans .a { margin-top: calc(8 * var(--p)); }
.ans .a b { font-weight: 400; }
.ans .gl { text-decoration: underline dashed; text-decoration-color: var(--ink-3); text-decoration-thickness: max(1px, calc(1 * var(--p))); text-underline-offset: calc(3 * var(--p)); }
.fig3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: calc(16 * var(--p)); padding: calc(14 * var(--p)) 0; border-radius: calc(20 * var(--p)); background: var(--raised); box-shadow: inset 0 0 0 max(1px, calc(1 * var(--p))) var(--hairline); }
.fig3 div { padding: 0 calc(12 * var(--p)); }
.fig3 div + div { border-left: 1px solid var(--hairline); }
.fig3 b { display: block; font-weight: 300; font-size: calc(24 * var(--p)); line-height: calc(30 * var(--p)); letter-spacing: calc(-0.5 * var(--p)); font-variant-numeric: tabular-nums; }
.fig3 span { display: block; font-weight: 400; font-size: calc(12.5 * var(--p)); line-height: calc(17 * var(--p)); color: var(--ink-3); margin-top: calc(2 * var(--p)); }
.bls { display: grid; gap: calc(8 * var(--p)); margin-top: calc(16 * var(--p)); font-size: calc(15 * var(--p)); line-height: calc(23 * var(--p)); }
.bls div { display: grid; grid-template-columns: calc(16 * var(--p)) minmax(0, 1fr); }
.bls i { width: calc(5 * var(--p)); height: calc(5 * var(--p)); border-radius: 50%; background: var(--accent); margin-top: calc(9 * var(--p)); }
.srcs { display: flex; flex-wrap: wrap; gap: calc(6 * var(--p)); margin-top: calc(16 * var(--p)); }
.srcs span { padding: calc(4 * var(--p)) calc(10 * var(--p)); border-radius: 999px; box-shadow: inset 0 0 0 max(1px, calc(1 * var(--p))) var(--line); font-weight: 400; font-size: calc(12 * var(--p)); line-height: calc(17 * var(--p)); color: var(--ink-2); }
.ans .ft { margin-top: calc(12 * var(--p)); }
.take { margin-top: calc(14 * var(--p)); padding: calc(13 * var(--p)) calc(15 * var(--p)); border-radius: calc(16 * var(--p)); background: var(--accent-glow); font-weight: 300; font-size: calc(15 * var(--p)); line-height: calc(23 * var(--p)); }
.take b { font-weight: 400; color: var(--accent); }
.ans .ask-bar { margin: calc(16 * var(--p)) 0 0; }

/* ── the small floating chips ─────────────────────────────────────────────────────────────── */
.chip { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 10px; border-radius: 999px; background: var(--chip); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); color: var(--ink); font-weight: 400; font-size: 13.5px; line-height: 18px; letter-spacing: -0.005em; white-space: nowrap; }
.chip i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-glow); color: var(--accent); }
.chip i svg { width: 13px; height: 13px; }
.chip em { font-style: normal; color: var(--up); }

/* ── theme: what differs on a screen ──────────────────────────────────────────────────────── */
:root {
  --teal: #5FB0B7;
  --wash: linear-gradient(180deg, rgba(10, 13, 19, 0.18) 0%, rgba(10, 13, 19, 0.46) 52%, #0A0D13 100%);
  --wash-now: linear-gradient(180deg, rgba(10, 13, 19, 0.28) 0%, rgba(10, 13, 19, 0.28) 45%, rgba(10, 13, 19, 0.72) 72%, #0A0D13 100%);
  --on-shadow: 0 1px 10px rgba(6, 8, 12, 0.85);
  --glassy: rgba(20, 24, 32, 0.55);
  --note: rgba(30, 34, 44, 0.66);
  --note-edge: rgba(255, 255, 255, 0.08);
  --note-ink: #F4F1EA;
  --chip: rgba(21, 26, 36, 0.86);
}
@media (prefers-color-scheme: light) {
  :root {
    --teal: #28838C;
    --wash: linear-gradient(180deg, rgba(244, 242, 238, 0.74) 0%, rgba(244, 242, 238, 0.58) 42%, rgba(244, 242, 238, 0.90) 70%, #F4F2EE 94%);
    --wash-now: linear-gradient(180deg, rgba(244, 242, 238, 0.72) 0%, rgba(244, 242, 238, 0.56) 42%, rgba(244, 242, 238, 0.86) 74%, #F4F2EE 100%);
    --on-shadow: none;
    --glassy: rgba(255, 255, 255, 0.62);
    --note: rgba(255, 255, 255, 0.78);
    --note-edge: rgba(255, 255, 255, 0.5);
    --note-ink: #15181F;
    --chip: rgba(255, 255, 255, 0.90);
  }
}
.js .reveal:not(.in) .dial .fl, .js .reveal:not(.in) .dial .bl, .js .reveal:not(.in) .pulse .fl { stroke-dasharray: 0 100; opacity: 0; }
.js .reveal:not(.in) .bar i { width: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.in) .dial .fl, .js .reveal:not(.in) .dial .bl, .js .reveal:not(.in) .pulse .fl { stroke-dasharray: var(--v) 100; opacity: 1; }
  .js .reveal:not(.in) .bar i { width: var(--v); }
  .js .reveal:not(.in) .nt { opacity: 1; transform: none; }
  .js .reveal:not(.in) .pent .grow { transform: none; }
}

/* A company's name on a screen: blurred, so it reads as a real stock without naming one (owner, 2026-11-01). */
.hid-name { display: inline-block; filter: blur(0.42em); -webkit-user-select: none; user-select: none; }

/* AI Picks' phone. */
.pf-chart { width: 100%; height: calc(120 * var(--p)); margin-top: calc(10 * var(--p)); overflow: visible; }
.pf-chart polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.pf-chart .pf-g { stroke: var(--up); stroke-width: calc(2 * var(--p)); }
.pf-chart .pf-m { stroke: var(--ink-3, #8a8f9a); stroke-width: calc(1.4 * var(--p)); }
.pf-key { display: flex; justify-content: space-between; margin-top: calc(8 * var(--p)); }
.pf-key i { display: inline-block; width: calc(10 * var(--p)); height: calc(2 * var(--p)); border-radius: 2px; margin-right: calc(5 * var(--p)); vertical-align: middle; background: var(--ink-3, #8a8f9a); }
.pf-key i.g { background: var(--up); }
.pf-co { display: flex; justify-content: space-between; align-items: center; padding-top: calc(9 * var(--p)); font-size: calc(14 * var(--p)); color: var(--ink); }
/* A big, thin title melts into the photo behind it at the same blur: heavier and tighter, so it still reads as a name. */
.t-hero .hid-name { filter: blur(0.3em); font-weight: 600; }
