/* Shared parts for the three hero versions: page tokens, the hero copy block, and exact HTML
   rebuilds of four app screens (Home, night cover, night route, verdict, June cover), drawn at the
   app's own 390 x 844 size and scaled to fit their frame. Tokens are apps/mobile/theme/tokens.ts. */
:root {
  --canvas: #000;
  --raised: #141414;
  --raise2: #1e1e1e;
  --inset: #0a0a0a;
  --track: #212121;
  --high: #292929;
  --line: rgba(244, 241, 234, 0.1);
  --line-strong: rgba(244, 241, 234, 0.16);
  --ink: #f4f1ea;
  --ink2: rgba(244, 241, 234, 0.64);
  --ink3: rgba(244, 241, 234, 0.4);
  --ink4: rgba(244, 241, 234, 0.26);
  --coral: #f05d35;
  --pos: #58b083;
  --neg: #d7697f;
  --ai: #7f9ec4;
  --wheat: #c9a35c;
  --n1: #1a1848;
  --n2: #47203f;
  --n3: #7f3118;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1,
p {
  margin: 0;
}
.tag {
  font-size: 12px;
  color: var(--ink3);
}

/* ---------- page chrome ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
}
.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 40px 0;
}
/* the way to reach us: an outlined pill, quieter than the white join button */
.contact {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition:
    border-color 160ms,
    background-color 160ms;
}
.contact:hover {
  border-color: rgba(244, 241, 234, 0.35);
  background: rgba(244, 241, 234, 0.06);
}
.contact:focus-visible {
  outline: 2px solid rgba(244, 241, 234, 0.35);
  outline-offset: 3px;
}
.h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 5.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h1 span {
  display: block;
}
.sub {
  margin-top: 24px;
  max-width: 34ch;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.5;
  color: var(--ink2);
}
.sub b {
  color: var(--ink);
  font-weight: 500;
}
.join {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  max-width: 480px;
}
.join input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 20, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.join input::placeholder {
  color: var(--ink3);
}
.join input:focus {
  outline: none;
  border-color: rgba(244, 241, 234, 0.35);
}
.join button {
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}
.join button:focus-visible {
  outline: 2px solid rgba(244, 241, 234, 0.35);
  outline-offset: 3px;
}
.fine {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink3);
}
.fine b {
  color: var(--ink2);
  font-weight: 600;
}
/* the bot trap: a field people never see or reach */
.join .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.join-err {
  margin-top: 12px;
  font-size: 14px;
  color: #e08a9b;
}
.sent {
  margin-top: 32px;
  font-family: var(--serif);
  font-size: 22px;
}
.sent small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink3);
}
.pausebtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.6);
  color: var(--ink2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.pausebtn svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 720px) {
  .top {
    padding: 18px 16px 0;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .join {
    flex-direction: column;
  }
  .join input {
    flex: none;
  }
  .join button {
    width: 100%;
  }
  .tag {
    display: none;
  }
}

/* ---------- light that spills from a screen onto the page ---------- */
.spill {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  will-change: opacity, transform;
}

/* ---------- frames: a phone, or a bare screen ---------- */
.phone {
  position: relative;
  width: var(--w, 340px);
  padding: calc(var(--w, 340px) * 0.032);
  border-radius: calc(var(--w, 340px) * 0.155);
  background: linear-gradient(160deg, #26262a, #0c0c0e 38%, #151518);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 50px 90px -30px rgba(0, 0, 0, 0.9);
}
.glass {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--w, 340px) * 0.125);
  background: #000;
  isolation: isolate;
}
.card-screen .glass {
  border-radius: calc(var(--w, 300px) * 0.085);
  box-shadow:
    0 0 0 1px rgba(244, 241, 234, 0.12),
    0 40px 80px -30px rgba(0, 0, 0, 0.95);
}
.scr {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  transform-origin: 0 0;
  transform: scale(var(--s, 0.8));
  overflow: hidden;
  background: #000;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}
.scr > .layer {
  position: absolute;
  inset: 0;
  transition: opacity 520ms var(--ease);
}
.scr > .layer.off {
  opacity: 0;
  pointer-events: none;
}

/* status bar */
.sb {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 30px 0 44px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sb::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 11px;
  width: 124px;
  height: 36px;
  margin-left: -62px;
  border-radius: 20px;
  background: #000;
}
.sb svg {
  display: block;
}
.sb .sbr {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ---------- Home ---------- */
.home {
  position: absolute;
  inset: 50px 0 0;
  padding: 0 20px;
}
.tb {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.av {
  width: 30px;
  height: 30px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--high);
  display: grid;
  place-items: center;
}
.tbr {
  display: flex;
  align-items: center;
}
.tbr > span {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.badge {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid #000;
  background: var(--coral);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.nw {
  padding-top: 20px;
}
.nwh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--inset);
  font-size: 13px;
  font-weight: 600;
}
.mono {
  display: flex;
}
.mono i {
  width: 22px;
  height: 22px;
  margin-right: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--inset);
  background: var(--high);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  color: var(--ink2);
}
.mono i:last-child {
  margin-right: 0;
}
.fig {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 46px;
  line-height: 48px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.delta {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  font-size: 15px;
}
.delta .up {
  font-family: var(--serif);
  color: var(--pos);
}
.delta span:last-child {
  color: var(--ink3);
}
.chart {
  margin-top: 24px;
  height: 172px;
}
.chart svg {
  display: block;
  overflow: visible;
}
.chart text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 10px;
  fill: var(--ink3);
}
.chart text.x {
  font-family: var(--sans);
  font-size: 11px;
}
.range {
  margin-top: 16px;
  display: flex;
}
.range span {
  width: 50px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink3);
}
.range .on {
  width: 46px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--high);
  color: var(--ink);
}
.lead {
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
}
.lead p {
  flex: 1;
}
.lead b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
}
.hrow {
  min-height: 72px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hrow .main {
  flex: 1;
  min-width: 0;
}
.hrow .t {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}
.hrow .s {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink3);
}
.hrow .amt {
  text-align: right;
}
.hrow .v {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
}
.hrow .vd {
  font-weight: 600;
  font-size: 13px;
  color: var(--pos);
}
.hrow .vs {
  font-size: 13px;
  color: var(--ink3);
}
.alloc,
.meter {
  display: flex;
  width: 172px;
  height: 7px;
  margin-top: 11px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--track);
  gap: 2px;
}
.alloc i,
.meter i {
  display: block;
  height: 100%;
}
.score-dial {
  width: 50px;
}
.score .fig2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.score .n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 28px;
}
.score .band {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--wheat);
}
.score .d {
  font-size: 13px;
  color: var(--ink3);
}
.score .d b {
  font-weight: 500;
  color: var(--pos);
}
.fab {
  position: absolute;
  z-index: 8;
  right: 20px;
  bottom: 104px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(127, 158, 196, 0.14);
  border: 1px solid rgba(127, 158, 196, 0.3);
  box-shadow: 0 0 14px rgba(127, 158, 196, 0.24);
  backdrop-filter: blur(6px);
}
.fab::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: rgba(127, 158, 196, 0.1);
  z-index: -1;
}
.tabs {
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  padding-bottom: 34px;
  display: flex;
  background: var(--inset);
  border-top: 1px solid var(--line);
}
.tabs span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink3);
}
.tabs .on {
  color: var(--coral);
  font-weight: 700;
}
.homebar {
  position: absolute;
  z-index: 21;
  left: 50%;
  bottom: 8px;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 3px;
  background: var(--ink);
  opacity: 0.9;
}

/* ---------- the night world (night-world.tsx) ---------- */
.world {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(162deg, var(--n1) 0%, var(--n2) 55%, var(--n3) 100%);
}
.world .dimv {
  position: absolute;
  inset: 0;
  background: linear-gradient(162deg, rgba(11, 26, 32, 0.58) 0%, rgba(6, 9, 12, 0.7) 55%, rgba(0, 0, 0, 0.84) 100%);
  opacity: 0;
  transition: opacity 560ms var(--ease);
}
.world.dim .dimv {
  opacity: 1;
}
.lamps {
  position: absolute;
  inset: 0;
  transition: opacity 560ms var(--ease);
}
.world.dim .lamps {
  opacity: 0.4;
}
.lamp {
  position: absolute;
  border-radius: 50%;
  animation: drift 9s ease-in-out infinite alternate;
}
.lamp.ember {
  left: -110px;
  top: 20px;
  width: 360px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(240, 93, 53, 0.3), rgba(240, 93, 53, 0.12) 55%, rgba(240, 93, 53, 0));
  --x0: -24px;
  --y0: -10px;
  --x1: 18px;
  --y1: 22px;
}
.lamp.blue {
  right: -120px;
  bottom: 80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(127, 158, 196, 0.26), rgba(127, 158, 196, 0.1) 55%, rgba(127, 158, 196, 0));
  --x0: 16px;
  --y0: 12px;
  --x1: -22px;
  --y1: -16px;
}
@keyframes drift {
  from {
    transform: translate(var(--x0), var(--y0));
  }
  to {
    transform: translate(var(--x1), var(--y1));
  }
}

/* story chrome (story-screen.tsx) */
.story {
  position: absolute;
  inset: 0;
}
.st-top {
  position: absolute;
  z-index: 3;
  top: 56px;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-top svg {
  position: absolute;
  left: 32px;
}
.st-top span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink3);
}
.st-prog {
  position: absolute;
  z-index: 3;
  top: 96px;
  left: 40px;
  right: 40px;
  display: flex;
  gap: 8px;
}
.st-prog i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(244, 241, 234, 0.18);
}
.st-prog i.on {
  background: var(--ink);
}
.st-foot {
  position: absolute;
  z-index: 3;
  left: 40px;
  right: 40px;
  bottom: 44px;
}
.st-btns {
  display: flex;
  gap: 12px;
}
.st-btns span {
  flex: 1;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 20, 0.55);
  font-size: 15px;
  font-weight: 500;
}
.st-btns .dis {
  color: var(--ink4);
  background: transparent;
}
.st-pills {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.st-pills span {
  height: 44px;
  padding: 0 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.82);
  font-size: 15px;
  font-weight: 500;
}
.st-body {
  position: absolute;
  z-index: 2;
  left: 40px;
  right: 40px;
}
.st-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 32px;
}
.st-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink2);
}
.st-big {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.01em;
}
.st-tap {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink3);
}
.tabsdots {
  display: inline-flex;
  gap: 3px;
  margin-right: 8px;
  vertical-align: middle;
}
.tabsdots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

/* route (replay-frame.tsx) */
.route {
  position: absolute;
  left: 0;
  right: 0;
}
.route svg {
  position: absolute;
  inset: 0;
  overflow: visible;
}
.stop-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 6px rgba(244, 241, 234, 0.35);
}
.stop-dot.end {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--ink3);
  box-shadow: none;
}
.stop {
  position: absolute;
  width: 168px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.94);
  border: 0.5px solid var(--line);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}
.stop .o {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink3);
}
.stop .nm {
  margin-top: 2px;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
}
.stop .am {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink2);
}
.ride {
  position: absolute;
  width: 150px;
  margin-left: -75px;
  margin-top: -12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  border: 0.5px solid rgba(107, 163, 163, 0.4);
  text-align: center;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: #6ba3a3;
}
.tally {
  position: absolute;
  left: 40px;
  right: 40px;
  padding-top: 12px;
  border-top: 0.5px solid var(--line);
}
.tally .amt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 46px;
  line-height: 50px;
  font-variant-numeric: tabular-nums;
}
.tally .cap {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink2);
}

/* verdict (verdict-frame.tsx) */
.vh {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 38px;
  letter-spacing: -0.3px;
}
.vm {
  margin-top: 8px;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink2);
}
.gb + .gb {
  margin-top: 12px;
}
.gb .l {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink2);
}
.gb .l b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.gb .bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.1);
  overflow: hidden;
}
.gb .bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.45);
  transform-origin: 0 50%;
}
.gb.strong .bar i {
  background: var(--ink);
}
.basis {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink3);
}

/* month glyph (period-glyph.tsx) */
.glyph {
  position: absolute;
  left: 0;
  right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .lamp {
    animation: none;
  }
  .scr > .layer,
  .world .dimv,
  .lamps {
    transition: none;
  }
}
