/* Thola homepage: "The climb".
   One bold thing: a tower that rises floor by floor as the visitor scrolls,
   from one shop counter at dusk to fourteen stores under a night sky.
   Everything after the climb stays quiet.

   The city is a WebGL scene drawn by city.js, which adds .js-city to <html>
   once it runs. Without WebGL or JS, and under reduced motion, a still of the
   finished city stands in and the chapters read as normal content. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/thola-assets/climb/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --night: #070d2e;
  --navy: #0e1a52;
  --dusk: #2a2f7a;
  --flame: #f0532f;
  /* text on flame must reach 4.5:1 (WCAG AA): buttons use the deeper shade */
  --flame-btn: #d63f1c;
  --flame-text: #c93a1c;
  --amber: #ffc56b;
  --leaf: #23b26d;
  --paper: #f4f6fb;
  --ink: #0b1233;
  --soft: #4d5677;
  --rule: rgba(11, 18, 51, 0.12);
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--night);
  color: #fff;
  font: 400 17px/1.55 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
.wrap {
  width: min(1240px, calc(100vw - 48px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: var(--flame-btn);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: 600 16px/1 var(--font);
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-flame {
  background: var(--flame-btn);
  color: #fff;
  box-shadow: 0 10px 30px rgba(240, 83, 47, 0.35);
}
.btn-flame:hover {
  background: #c23412;
}
.btn-ghost {
  /* dark glass so it reads over the 3D scene, not just over the sky */
  background: rgba(4, 7, 28, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}
.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
  box-shadow: none;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}
.nav.is-paper {
  background: rgba(244, 246, 251, 0.92);
  color: var(--ink);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}
.navin {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 22px/1 var(--font);
  letter-spacing: -0.03em;
}
.logo img {
  border-radius: 8px;
}
.navlinks {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}
.navlinks a {
  opacity: 0.78;
  transition: opacity 0.2s;
}
.navlinks a:hover,
.navlinks a.is-active {
  opacity: 1;
}
.navlinks a.is-active {
  text-decoration: underline;
  text-decoration-color: var(--flame);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.navcta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}
.navtoggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}
.navtoggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.navtoggle span:first-child {
  top: 17px;
}
.navtoggle span:last-child {
  top: 25px;
}
.navtoggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.navtoggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.navmenu {
  display: none;
}
@media (max-width: 960px) {
  .navlinks,
  .navlogin,
  .navcta .btn {
    display: none;
  }
  .navcta {
    margin-left: auto;
  }
  .navtoggle {
    display: block;
  }
  .navmenu {
    display: grid;
    position: fixed;
    inset: 72px 0 auto;
    padding: 8px 24px 28px;
    background: var(--night);
    color: #fff;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.45s var(--ease);
  }
  .navmenu.is-open {
    clip-path: inset(0 0 0 0);
  }
  .navmenu a,
  .navmenu button {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
    text-align: left;
    font: 600 24px/1.2 var(--font);
    cursor: pointer;
  }
  .navmenu .navmenu-cta {
    color: var(--flame);
    border: 0;
  }
}

/* =========================================================
   THE CLIMB
   ========================================================= */
.game {
  position: relative;
}
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  margin-bottom: -100svh;
  overflow: hidden;
  z-index: 0;
}
/* The city is a WebGL scene (city.js). Until its first frame, and whenever
   WebGL, JS or motion is unavailable, a pre-rendered still of the finished
   city stands in. */
.stage {
  background: #070d2e url("/thola-assets/climb/poster-wide.webp") 70% 100% / cover no-repeat;
}
.city {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.city.is-ready {
  opacity: 1;
}
/* ?poster renders a still of the finished city for the fallback image */
.poster-mode .nav,
.poster-mode .chapters,
.poster-mode .pins,
.poster-mode .hud {
  display: none !important;
}
.poster-mode .city {
  transition: none;
}
.poster-mode main > :not(.game),
.poster-mode .footer {
  display: none !important;
}
.poster-mode .stage {
  margin-bottom: 0;
}

/* pins: what Thola did on each floor, placed by projecting the 3D floor */
.pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pin {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: 600 13px/1 var(--font);
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  will-change: transform, opacity;
}
.pin::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pc, var(--leaf));
  color: #fff;
  font-size: 11px;
}

/* ---------- chapters ---------- */
/* Chapters sit above the board but let clicks through to the HUD; only the
   reading column and its cards take pointer events. */
.chapters {
  position: relative;
  z-index: 5;
  pointer-events: none;
}
.chapter .wrap > * {
  pointer-events: auto;
}
/* A soft scrim on the reading side keeps text legible over the sky. */
.chapters::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 100svh;
  margin-bottom: -100svh;
  background: linear-gradient(90deg, rgba(4, 7, 28, 0.72) 0%, rgba(4, 7, 28, 0.38) 34%, transparent 52%);
  pointer-events: none;
}
.chapter {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 0 60px;
}
.ch {
  width: min(440px, 40vw);
}
.ch h2 {
  margin: 0 0 14px;
  font: 750 clamp(36px, 4.4vw, 62px) / 0.98 var(--font);
  font-stretch: 80%;
  letter-spacing: -0.02em;
}
.ch > p {
  margin: 0 0 26px;
  font-size: clamp(17px, 1.35vw, 19px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 38ch;
}
.cap {
  margin: 12px 0 0 !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

/* hero */
.hero {
  align-items: flex-end;
  padding-bottom: 14svh;
}
.stair {
  margin: 0 0 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0.12em;
  font-size: clamp(60px, 9.6vw, 156px);
  line-height: 0.86;
  letter-spacing: -0.035em;
}
/* Two voices: "You grow." light and open; "I run." heavy, set on a solid
   flame block so it reads over any part of the scene. */
.stair .you {
  font-weight: 300;
  font-stretch: 100%;
  text-shadow: 0 2px 28px rgba(4, 7, 28, 0.5);
}
.stair .i {
  font-weight: 800;
  font-stretch: 100%;
  font-size: 0.8em;
  letter-spacing: -0.01em;
  line-height: 0.92;
  padding: 0.04em 0.2em 0.1em;
  border-radius: 0.14em;
  background: var(--flame);
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(240, 83, 47, 0.8);
}
.hero-sub {
  margin: 0 0 30px;
  max-width: 34ch;
  font-size: clamp(18px, 1.6vw, 22px);
  color: rgba(255, 255, 255, 0.86);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 46px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.hint i {
  position: relative;
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.hint i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  background: var(--amber);
  animation: hint 1.8s var(--ease) infinite;
}
@keyframes hint {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(260%);
  }
}

.js-intro .stair .you {
  animation: rise 1.1s 0.25s var(--ease) both;
}
.js-intro .stair .i {
  --rise: 70px;
  animation: rise 1.2s 0.5s var(--ease) both;
}
.js-intro .hero-sub,
.js-intro .shop-name,
.js-intro .hero-cta,
.js-intro .hint {
  --rise: 16px;
  animation: rise 0.9s 0.8s var(--ease) both;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 var(--rise, 30px);
  }
}

/* in-chapter app cards (clickable examples) */
.app-card {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.ac-title {
  display: block;
  font: 650 19px/1.25 var(--font);
  letter-spacing: -0.01em;
  color: #137a47;
  margin-bottom: 10px;
}
.ac-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac-rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid #eef0f5;
  font-size: 14px;
}
.ac-rows span {
  font-weight: 600;
}
.ac-rows small {
  grid-column: 1;
  color: #6b7390;
  font-size: 12.5px;
}
.ac-rows em {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 650;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #137a47;
}
.ac-rows em.wip {
  background: #fff3df;
  color: #9a5a00;
}
[data-demo="prices"] .ac-rows em {
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 0.35s ease,
    transform 0.4s var(--ease);
}
[data-demo="prices"].is-done .ac-rows em {
  opacity: 1;
  transform: none;
}
[data-demo="prices"].is-done .ac-rows li:nth-child(2) em {
  transition-delay: 0.08s;
}
[data-demo="prices"].is-done .ac-rows li:nth-child(3) em {
  transition-delay: 0.16s;
}
[data-demo="prices"].is-done .ac-rows li:nth-child(4) em {
  transition-delay: 0.24s;
}
.ac-btn {
  width: 100%;
  margin-top: 12px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #137a47;
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}
.ac-btn:active {
  transform: scale(0.98);
}
.chat .ac-btn {
  background: #c93a1c;
}
.is-done .ac-btn {
  background: #e7f6ee;
  color: #137a47;
  cursor: default;
}
.is-done .ac-btn::before {
  content: "✓ ";
}
.ac-foot {
  margin: 10px 0 0;
  font-size: 13px;
  color: #6b7390;
}
.bubble {
  display: block;
  width: fit-content;
  margin-left: auto;
  padding: 9px 14px;
  border-radius: 18px 18px 4px 18px;
  background: #eef0f5;
  font-size: 14px;
}
.reply {
  margin: 12px 0 10px;
  font-size: 14.5px;
}
.pay {
  display: flex;
  gap: 6px;
}
.pay span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #dcdfe8;
  font-size: 13px;
}
.pay .on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* finale */
.never {
  margin: 0;
  font: 800 clamp(64px, 9vw, 150px) / 0.86 var(--font);
  font-stretch: 75%;
  letter-spacing: -0.04em;
}
.finale p {
  margin: 18px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  color: rgba(255, 255, 255, 0.8);
  max-width: 36ch;
}

/* climb on small screens: tower behind, chapters as cards over it */
@media (max-width: 860px) {
  .stage {
    background-image: url("/thola-assets/climb/poster-tall.webp");
    background-position: 50% 100%;
  }
  .pins {
    display: none;
  }
  .chapters::before {
    background: linear-gradient(180deg, rgba(4, 7, 28, 0.55), rgba(4, 7, 28, 0.2) 60%, transparent);
  }
  .chapter {
    align-items: flex-start;
    padding-top: 120px;
  }
  .ch {
    width: 100%;
    max-width: 440px;
  }
  .stair {
    display: grid;
    justify-items: start;
  }
  .hero {
    align-items: flex-start;
    padding-top: 108px;
  }
  .hint {
    display: none;
  }
  .finale {
    padding-top: 110px;
  }
}

/* =========================================================
   THE GAME: HUD and the day's cards
   ========================================================= */
.hud {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.hud > * {
  pointer-events: auto;
}
.hud-top {
  position: absolute;
  top: 84px;
  right: 24px;
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(4, 7, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hud-clock,
.hud-stat {
  display: grid;
  gap: 2px;
  padding: 6px 14px;
  border-radius: 12px;
}
.hud-clock {
  background: rgba(255, 197, 107, 0.12);
}
.hud-clock b {
  font: 800 22px/1 var(--font);
  font-stretch: 78%;
  color: var(--amber);
}
.hud-top small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}
.hud-stat b {
  font: 700 17px/1.1 var(--font);
}
.hud-stat b.up {
  color: #6be3a4;
}
.hud-stat b.down {
  color: #ff8a70;
}
.hud-player {
  position: absolute;
  top: 160px;
  right: 24px;
  width: 250px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(4, 7, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hud-level {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.hud-level small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}
.hud-level b {
  font: 750 17px/1.1 var(--font);
  font-stretch: 85%;
}
.hud-xp {
  height: 6px;
  margin: 8px 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.hud-xp i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--amber), var(--flame));
  transform-origin: left;
  transform: scaleX(var(--xp, 0.5));
  transition: transform 0.8s var(--ease);
}
.hud-xp-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
/* trade switch + sound, always in reach while playing */
.hud-tools {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(4, 7, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
}
.hud-trade {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  color: rgba(255, 255, 255, 0.6);
}
.hud-trade select {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 28px 8px 12px;
  font: 600 13px var(--font);
  color: #fff;
  background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center;
  cursor: pointer;
}
.hud-trade select option {
  color: #0e1a52;
}
.hud-sound {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font: 600 13px var(--font);
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
}
.hud-sound[aria-pressed="true"] {
  color: #0e1a52;
  background: #ffc56b;
}
/* make it yours: the visitor's own shop name */
.shop-name {
  display: grid;
  gap: 6px;
  max-width: 340px;
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.shop-name small {
  color: rgba(255, 255, 255, 0.6);
}
.shop-name input {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font: 600 16px var(--font);
  color: #fff;
  background: rgba(4, 7, 28, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.shop-name input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.shop-name input:focus {
  outline: 2px solid #ffc56b;
  outline-offset: 2px;
}
.finale-cta {
  margin-top: 30px;
}
.finale-cta .cta-h {
  margin: 0 0 14px !important;
  font: 750 clamp(22px, 2.2vw, 30px) / 1.1 var(--font) !important;
  color: #fff !important;
}
.hud-lenses {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(4, 7, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hud-lenses button {
  border: 0;
  padding: 9px 15px;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.hud-lenses button:hover {
  color: #fff;
}
.hud-lenses button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
}
.hud-toast {
  position: absolute;
  left: 50%;
  top: 92px;
  translate: -50% 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease);
  pointer-events: none;
}
.hud-toast.show {
  opacity: 1;
  transform: none;
}
html:not(.js-game) .hud {
  display: none;
}

.when {
  margin: 0 0 8px !important;
  font: 800 15px/1 var(--font) !important;
  color: var(--amber) !important;
}
.skip-game {
  align-self: center;
  margin-left: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.industry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 26px;
}
.industry-label {
  margin-right: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.industry button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(4, 7, 28, 0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.industry button[aria-checked="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.advisors {
  display: grid;
  gap: 4px;
  padding: 8px;
}
.brief-title {
  margin: 4px 8px 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7398;
}
.adv {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}
.adv:hover,
.adv[aria-expanded="true"] {
  background: #f1f3f9;
}
.adv-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-style: normal;
  font-weight: 800;
  color: #fff;
}
.adv-ico.money {
  background: #137a47;
}
.adv-ico.stock {
  background: #c97f3b;
}
.adv-ico.sales {
  background: #3a7bd5;
}
.adv-ico.team {
  background: #8e44ad;
}
.adv-ico.tax {
  background: #c93a1c;
}
.adv b {
  display: block;
  font-size: 13px;
  color: #6b7390;
}
.adv-line {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}
.adv-why {
  display: block;
  max-height: 0;
  overflow: hidden;
  font-size: 13px;
  color: #6b7390;
  transition:
    max-height 0.35s var(--ease),
    margin 0.35s var(--ease);
}
.adv[aria-expanded="true"] .adv-why {
  max-height: 60px;
  margin-top: 4px;
}
.finds li {
  grid-template-columns: 1fr;
}
.js-game .scan:not(.is-done) .finds li {
  filter: blur(5px);
  opacity: 0.45;
}
.finds li {
  transition:
    filter 0.5s ease,
    opacity 0.5s ease;
}
.scan.is-done .finds li:nth-child(2) {
  transition-delay: 0.25s;
}
.scan.is-done .finds li:nth-child(3) {
  transition-delay: 0.5s;
}
.scan.is-done .finds li:nth-child(4) {
  transition-delay: 0.75s;
}
.match-grid {
  display: grid;
  grid-template-columns: repeat(3, auto 1fr);
  gap: 6px 10px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid #eef0f5;
  font-size: 13px;
  color: #6b7390;
}
.match-grid b {
  font-size: 22px;
  color: var(--ink);
}
.match-grid b.bad {
  color: #c93a1c;
}
.held {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f3f9;
  color: #5a6180;
  font-size: 12.5px;
  font-weight: 600;
}
.crystal {
  padding-bottom: 12px;
}
.cb-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.cb-slider {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  font-size: 13px;
  color: #6b7390;
}
.cb-slider input {
  width: 100%;
  accent-color: var(--flame);
}
.cb-read {
  margin: 8px 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.cb-moves {
  display: grid;
  gap: 6px;
}
.cb-move {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #e3e6ef;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.cb-move b {
  font-size: 14px;
}
.cb-move small {
  font-size: 12px;
  color: #6b7390;
}
.cb-move[aria-pressed="true"] {
  background: #e7f6ee;
  border-color: #137a47;
}
.cb-move[aria-pressed="true"] b::before {
  content: "✓ ";
  color: #137a47;
}
.lenses {
  display: grid;
  gap: 4px;
  padding: 8px;
}
.lens-row {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.lens-row:hover,
.lens-row.is-on {
  background: #f1f3f9;
}
.lens-row b {
  font-size: 13px;
  color: var(--lc, #6b7390);
}
.lens-row span {
  font-size: 14px;
  font-weight: 600;
}
.lens-row[data-lens="money"] {
  --lc: #137a47;
}
.lens-row[data-lens="stock"] {
  --lc: #a35f1c;
}
.lens-row[data-lens="people"] {
  --lc: #8e44ad;
}
.lens-row[data-lens="tax"] {
  --lc: #c93a1c;
}
.lens-row[data-lens="risk"] {
  --lc: #b0234a;
}
.night {
  background: #0d1442;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.night-log {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.night-log li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.night-log li::before {
  content: "✓";
  color: #6be3a4;
  font-weight: 800;
}
.night-log li.xp em {
  margin-left: auto;
  font-style: normal;
  font-weight: 800;
  color: var(--amber);
}
.js-game .night-log li {
  opacity: 0.6; /* not yet done, still readable */
  transition: opacity 0.4s ease;
}
.js-game .night-log li.on {
  opacity: 1;
}
.levelup {
  margin: 0 0 14px;
  font: 800 18px/1 var(--font);
  color: var(--amber);
}
@media (max-width: 1100px) {
  .hud-player {
    display: none;
  }
}
@media (max-width: 860px) {
  .hud-top {
    top: auto;
    bottom: 70px;
    left: 12px;
    right: 12px;
    justify-content: space-between;
    overflow-x: auto;
  }
  .hud-stat:nth-child(4),
  .hud-stat:nth-child(5) {
    display: none;
  }
  .hud-lenses {
    bottom: 12px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
  }
  .hud-lenses button {
    padding: 8px 11px;
    font-size: 13px;
  }
  .hud-top {
    transition: opacity 0.3s ease;
  }
  .at-hero .hud-top {
    opacity: 0;
    pointer-events: none;
  }
  /* the hero has more to hold on phones: tighten it so it clears the HUD */
  .shop-name {
    margin-bottom: 12px;
    gap: 4px;
  }
  .shop-name small {
    display: none;
  }
  .shop-name input {
    padding: 8px 12px;
  }
  .hero .hero-sub {
    margin-bottom: 16px;
  }
  .hero .industry {
    margin-bottom: 16px;
  }
  .hud-tools {
    top: 66px;
    bottom: auto;
    right: 12px;
    padding: 3px;
  }
  .hud-trade > span,
  .hud-sound span {
    display: none;
  }
  .hud-trade select {
    padding: 6px 26px 6px 10px;
  }
  .hud-sound {
    padding: 6px 9px;
  }
  .hud-toast {
    top: 112px;
    white-space: normal;
    width: max-content;
    max-width: calc(100vw - 32px);
    text-align: center;
  }
  .chapter {
    padding-bottom: 170px;
  }
}

/* The cards in the day are Thola on the owner's phone. */
.chapter .app-card {
  position: relative;
  border: 9px solid #0b0f24;
  border-radius: 30px;
  padding-top: 26px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 70px rgba(0, 0, 0, 0.45);
}
.chapter .app-card::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 64px;
  height: 7px;
  margin-left: -32px;
  border-radius: 6px;
  background: #0b0f24;
}
.chapter .app-card.night {
  border-color: #05081a;
}
.scan-bar {
  display: block;
  height: 5px;
  margin: 10px 0 0;
  border-radius: 5px;
  background: #eef0f5;
  overflow: hidden;
}
.scan-bar::after {
  content: "";
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffc56b, #f0532f);
  transform-origin: left;
  transform: scaleX(var(--scan, 0));
}
.match-grid b.bad {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   QUIET SECTIONS
   ========================================================= */
.quiet {
  position: relative;
  z-index: 6;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(80px, 10vw, 140px) 0;
}
.quiet + .quiet {
  padding-top: 0;
}
.q-title {
  margin: 0;
  max-width: 18ch;
  font: 750 clamp(38px, 5vw, 72px) / 1 var(--font);
  font-stretch: 80%;
  letter-spacing: -0.025em;
}
.q-lede {
  margin: 18px 0 0;
  max-width: 54ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--soft);
}
.link {
  color: var(--flame-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}
.screen-def {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 0 var(--rule);
}
.screen-def h3 {
  margin: 0 0 8px;
  font: 750 34px/1 var(--font);
  font-stretch: 80%;
}
.screen-def p {
  margin: 0 0 22px;
  color: var(--soft);
  max-width: 44ch;
}
.screen-def .ex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  font-size: 15px;
}
.screen-def .ex b {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.then-now {
  margin: 30px 0 0;
  font: 650 clamp(20px, 2vw, 26px) / 1.3 var(--font);
}
.then-now s {
  color: var(--soft);
  font-weight: 400;
  text-decoration-color: var(--flame);
  text-decoration-thickness: 2px;
  margin-right: 8px;
}
@media (max-width: 760px) {
  .two {
    grid-template-columns: 1fr;
  }
}

/* data */
.data-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 54ch;
  color: var(--soft);
}
.facts b {
  color: var(--ink);
}
.mask-demo {
  padding: 26px;
  border-radius: 28px;
  background: var(--night);
  color: #fff;
  transition: background 0.5s ease;
}
.mask-demo[data-view="staff"] {
  background: #1b1250;
}
.mask-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.mask-switch button {
  border: 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.mask-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
}
.mask-q {
  margin: 22px 0 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}
.mask-msg {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  margin: 16px 0 18px;
  font-size: clamp(17px, 1.5vw, 20px);
}
.mask-msg dt {
  color: rgba(255, 255, 255, 0.6);
}
.mask-msg dd {
  margin: 0;
  justify-self: start;
}
.pii {
  display: inline-block;
  position: relative;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(255, 197, 107, 0.18);
  transition:
    background 0.35s ease,
    color 0.35s ease;
}
.pii.is-hidden {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}
.mask-note {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 860px) {
  .data-grid {
    grid-template-columns: 1fr;
  }
}

/* pricing (plan copy and mascots unchanged from the previous landing) */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 0 var(--rule);
}
.tier.is-featured {
  background: var(--night);
  color: #fff;
}
.tier-wolf {
  position: absolute;
  top: 16px;
  right: 12px;
  width: auto;
  height: 112px;
  object-fit: contain;
}
.tier-name,
.tier-tag,
.tier-price {
  padding-right: 84px;
}
.tier-name {
  font-size: 15px;
  font-weight: 700;
}
.tier-tag {
  margin: 4px 0 16px;
  min-height: 4.2em;
  font-size: 14px;
  opacity: 0.72;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font: 800 42px/1 var(--font);
  font-stretch: 80%;
}
.tier-price small {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.7;
}
.tier-badge {
  align-self: flex-start;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #137a47;
  font-size: 12px;
  font-weight: 650;
}
.tier-inc {
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 650;
  opacity: 0.7;
}
.tier ul {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 11px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
}
.tier li {
  position: relative;
  padding-left: 18px;
  opacity: 0.9;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flame);
}
.tier .btn {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
}
.tier .btn:hover {
  background: var(--ink);
  color: #fff;
}
.tier.is-featured .btn {
  background: var(--flame-btn);
  color: #fff;
}
@media (max-width: 1120px) {
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}

/* questions */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
.faq-list details {
  border-top: 1px solid var(--rule);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--rule);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font: 650 clamp(18px, 1.6vw, 21px) / 1.3 var(--font);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  color: var(--flame);
  font-size: 1.4em;
  line-height: 0.8;
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list p {
  margin: -6px 0 22px;
  max-width: 62ch;
  color: var(--soft);
}
.faq-list a {
  color: var(--flame-text);
  font-weight: 600;
}
@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* next step */
.next {
  position: relative;
  z-index: 6;
  padding: clamp(80px, 10vw, 130px) 0 50px;
  background: linear-gradient(to bottom, #04071c, var(--navy));
}
.next-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.next h2 {
  margin: 0;
  max-width: 14ch;
  font: 750 clamp(42px, 6vw, 88px) / 0.98 var(--font);
  font-stretch: 80%;
  letter-spacing: -0.03em;
}
.next-grid p {
  margin: 18px 0 28px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.78);
}
.qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.qr img {
  width: 140px;
  height: 140px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}
.offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.offices p {
  margin: 0;
}
.offices b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}
@media (max-width: 720px) {
  .next-grid,
  .offices {
    grid-template-columns: 1fr;
  }
  .qr {
    justify-items: start;
  }
}
.footer {
  position: relative;
  z-index: 6;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  padding: 0 0 36px;
}
.footerin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer .logo {
  color: #fff;
  font-size: 19px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
}
.footer nav a:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* no fog of war without motion: the finds are readable from the start */
  .js-game .scan:not(.is-done) .finds li {
    filter: none;
    opacity: 1;
  }
  .hint i::after {
    animation: none;
  }
}

/* =========================================================
   Login popup + get-the-app modal (markup and scripts unchanged)
   ========================================================= */
.lm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 28, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lm-overlay.open {
  display: grid;
}
.lm-card,
.getapp-card {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  padding: 34px 26px 26px;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}
.lm-close,
.getapp-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lm-close:hover,
.getapp-x:hover {
  background: var(--ink);
  color: #fff;
}
.lm-card h2,
.getapp-card h2 {
  margin: 0 0 6px;
  font: 750 30px/1.05 var(--font);
  font-stretch: 85%;
}
.lm-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--soft);
}
.lm-err {
  display: none;
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(240, 83, 47, 0.35);
  background: rgba(240, 83, 47, 0.08);
  color: #a3301a;
  font-size: 13px;
  font-weight: 600;
}
.lm-err.show {
  display: block;
}
.lm-field {
  margin-bottom: 14px;
}
.lm-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
}
.lm-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(11, 18, 51, 0.18);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 500 15px var(--font);
}
.lm-field input:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 3px rgba(240, 83, 47, 0.15);
}
.lm-pwd {
  position: relative;
}
.lm-pwd input {
  padding-right: 66px;
}
.lm-pwd button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  border: 0;
  background: none;
  color: var(--flame);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lm-forgot {
  margin: -2px 0 16px;
  text-align: right;
}
.lm-forgot a,
.lm-foot a {
  color: var(--flame);
  font-size: 13px;
  font-weight: 700;
}
.lm-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 650 15px var(--font);
  cursor: pointer;
  transition: background 0.25s ease;
}
.lm-submit:hover:not(:disabled) {
  background: var(--flame);
}
.lm-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.lm-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--soft);
}
.getapp {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.getapp[hidden] {
  display: none;
}
.getapp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 28, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.getapp.is-open .getapp-backdrop {
  opacity: 1;
}
.getapp-card {
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease);
}
.getapp.is-open .getapp-card {
  opacity: 1;
  transform: none;
}
.getapp-mark {
  display: inline-block;
  width: 44px;
  height: 44px;
}
.getapp-mark img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
}
.getapp-card h2 {
  margin-top: 14px;
}
.getapp-card > p {
  margin: 0 auto;
  font-size: 14px;
  color: var(--soft);
}
.getapp-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  text-align: left;
}
.getapp-opt {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  transition:
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}
.getapp-opt:hover {
  border-color: var(--flame);
  transform: translateY(-2px);
}
.getapp-opt svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: var(--ink);
}
.getapp-opt:last-child svg {
  fill: none;
  stroke: var(--ink);
}
.getapp-opt span {
  flex: 1;
}
.getapp-opt b {
  display: block;
  font-size: 15px;
}
.getapp-opt small {
  display: block;
  font-size: 12px;
  color: var(--soft);
}
.getapp-opt i {
  font-style: normal;
  font-weight: 800;
  color: var(--flame);
}
body.getapp-open {
  overflow: hidden;
}
