/* Applymon landing — bright quest-console edition.
   Landing-only overrides. Auth and checkout pages continue to use base.css unchanged. */

:root {
  --sky: #dff4ff;
  --sky-2: #bfe7ff;
  --cloud: #f8fdff;
  --cloud-blue: #edf9ff;
  --horizon: #77c9f5;
  --quest-blue: #2b62e8;
  --quest-blue-2: #1747bd;
  --quest-blue-3: #0e327f;
  --quest-ink: #10234c;
  --quest-ink-soft: #294773;
  --signal: #20c995;
  --sun: #ffd968;
  --line-blue: #8ac7ec;
  --ice: #eefaff;
  --white: #ffffff;
  --display: 'Pixelify Sans', 'Geist Mono', monospace;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --gut: clamp(20px, 4.5vw, 64px);
  --rhythm: clamp(80px, 11vw, 144px);
  --game-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.landing-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--sky);
  color: var(--quest-ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  cursor: url('/assets/cursor-default.svg') 2 2, auto;
}

body.landing-page::before { display: none; }

.landing-page a,
.landing-page button { cursor: url('/assets/cursor-pointer.svg') 4 1, pointer; }

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page h4 {
  color: inherit;
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.landing-page p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid var(--quest-ink);
  background: var(--white);
  color: var(--quest-ink);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 240ms var(--game-ease);
}

.skip-link:focus { transform: none; }

.section-shell,
.header-frame {
  width: min(100% - (var(--gut) * 2), 1280px);
  margin-inline: auto;
}

/* ---------- daytime field ---------- */

.sky-field {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 1080px;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.32) 1px, transparent 1px),
    linear-gradient(180deg, #d9f2ff 0%, #ccecff 46%, #effaff 100%);
  background-size: 32px 32px, 32px 32px, auto;
  mask-image: linear-gradient(#000 76%, transparent 100%);
}

.sky-field::after {
  content: '';
  position: absolute;
  inset: auto 0 92px;
  height: 2px;
  background: var(--line-blue);
  box-shadow: 0 5px 0 rgba(255,255,255,.72), 0 10px 0 rgba(138,199,236,.38);
}

.cloud {
  position: absolute;
  width: 96px;
  height: 24px;
  background: rgba(255,255,255,.64);
  box-shadow: 24px -24px 0 rgba(255,255,255,.64), 72px 0 0 rgba(255,255,255,.64), 48px -8px 0 rgba(255,255,255,.64);
  image-rendering: pixelated;
  animation: cloud-drift 22s linear infinite alternate;
}

.cloud--one { top: 180px; left: 6%; }
.cloud--two { top: 330px; right: 10%; transform: scale(.72); animation-duration: 28s; }
.cloud--three { top: 610px; left: 18%; transform: scale(.52); animation-duration: 33s; opacity: .55; }

.sun-pixel {
  position: absolute;
  top: 142px;
  right: 9%;
  width: 48px;
  height: 48px;
  background: rgba(255,217,104,.8);
  box-shadow: 0 0 0 8px rgba(255,255,255,.24), 0 0 0 16px rgba(255,217,104,.12);
}

@keyframes cloud-drift {
  from { translate: -18px 0; }
  to { translate: 28px 0; }
}

/* ---------- navigation ---------- */

.scroll-sentinel { position: absolute; top: 12px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.noscript-menu { display: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding-top: 24px;
}

.header-frame {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 10px 8px 18px;
  border: 2px solid var(--quest-ink);
  background: rgba(248,253,255,.9);
  box-shadow: 5px 5px 0 var(--quest-ink);
  backdrop-filter: blur(16px);
  transition: transform 360ms var(--game-ease), background-color 360ms var(--game-ease), box-shadow 360ms var(--game-ease);
}

.site-header.is-scrolled .header-frame {
  background: rgba(248,253,255,.97);
  box-shadow: 4px 4px 0 var(--quest-ink);
  transform: translateY(-4px);
}

.brand--game {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--quest-ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--quest-ink);
  background: var(--quest-blue);
  box-shadow: inset 4px 4px 0 rgba(255,255,255,.2);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
}

.brand-mark::before {
  left: 4px;
  top: 4px;
  background: transparent;
  box-shadow:
    4px 0 0 var(--white), 8px 0 0 var(--white),
    0 4px 0 var(--white), 12px 4px 0 var(--white),
    0 8px 0 var(--white), 4px 8px 0 var(--white), 8px 8px 0 var(--white), 12px 8px 0 var(--white),
    0 12px 0 var(--white), 12px 12px 0 var(--white),
    0 16px 0 var(--white), 12px 16px 0 var(--white);
}
.brand-mark::after,
.brand-mark i { display: none; }

.masthead-nav { display: flex; align-items: center; gap: 4px; }

.mobile-menu-toggle {
  display: none;
  min-width: 52px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--quest-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.menu-label-stack {
  display: grid;
  min-width: 38px;
  place-items: center;
}

.menu-label-stack > span {
  grid-area: 1 / 1;
  transition: opacity 280ms cubic-bezier(.2,0,0,1), scale 280ms cubic-bezier(.2,0,0,1), filter 280ms cubic-bezier(.2,0,0,1);
}

.menu-label-stack > span:last-child,
.mobile-menu-toggle[aria-expanded='true'] .menu-label-stack > span:first-child {
  opacity: 0;
  scale: .25;
  filter: blur(4px);
}

.mobile-menu-toggle[aria-expanded='true'] .menu-label-stack > span:last-child {
  opacity: 1;
  scale: 1;
  filter: blur(0);
}

.mobile-menu {
  position: fixed;
  z-index: 60;
  inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  padding: 20px 28px 28px;
  overflow-y: auto;
  border: 2px solid var(--quest-ink);
  background: rgba(248,253,255,.98);
  box-shadow: 7px 7px 0 var(--quest-ink);
  backdrop-filter: blur(20px);
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-12px) scale(.985);
  transition: opacity 260ms var(--game-ease), transform 260ms var(--game-ease), box-shadow 260ms var(--game-ease);
}

.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__close { display: inline-flex; min-width: 96px; min-height: 44px; align-items: center; justify-content: center; gap: 9px; align-self: flex-end; padding: 8px 12px; border: 2px solid var(--quest-ink); background: var(--white); color: var(--quest-ink); box-shadow: 3px 3px 0 var(--quest-ink); font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.mobile-menu__close span:first-child { color: var(--quest-blue); font-family: var(--body); font-size: 22px; font-weight: 400; line-height: .8; }
.mobile-menu__close:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--quest-ink); }
.mobile-menu__code { margin: 24px 0 22px; color: var(--quest-blue-2); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav > a { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line-blue); color: var(--quest-ink); font-family: var(--display); font-size: clamp(34px,10vw,54px); line-height: 1; text-decoration: none; }
.mobile-menu__nav > a span { color: var(--quest-blue); font-family: var(--mono); font-size: 10px; }
.mobile-menu__actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; margin-top: auto; padding-top: 30px; }
.mobile-menu__login { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 6px; color: var(--quest-ink); font-family: var(--mono); font-size: 11px; font-weight: 600; text-underline-offset: 4px; }
body.menu-open { overflow: hidden; }

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  color: var(--quest-ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color 240ms var(--game-ease), background-color 240ms var(--game-ease);
}

.nav-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; background: var(--quest-blue); opacity: 0; transform: scaleX(.25); transition: opacity 260ms var(--game-ease), transform 260ms var(--game-ease); }
.nav-link.is-current { color: var(--quest-ink); }
.nav-link.is-current::after { opacity: 1; transform: scaleX(1); }

.landing-page .acct {
  --accent: var(--quest-blue);
  --accent-2: var(--quest-blue-2);
  --accent-soft: var(--sky-2);
  --accent-ink: var(--white);
  --text: var(--quest-ink);
  --muted: var(--quest-ink-soft);
  --line: var(--line-blue);
  --line-2: #6faed5;
  --panel: var(--cloud);
  flex: 0 1 180px;
  width: 180px;
  min-width: 120px;
  min-height: 44px;
}
.landing-page .acct__skel { height: 36px; border-radius: 2px; background: var(--sky-2); }
.landing-page .acct__box,
.landing-page .acct__email { width: 100%; min-width: 0; max-width: 100%; }
.landing-page .acct > .btn {
  min-height: 40px;
  border: 2px solid var(--quest-ink);
  border-radius: 2px;
  background: var(--white);
  color: var(--quest-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  box-shadow: 3px 3px 0 var(--quest-ink);
}

.landing-page .acct__chip {
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  border: 2px solid var(--quest-ink);
  border-radius: 2px;
  background: var(--white);
  color: var(--quest-ink);
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 3px 3px 0 var(--quest-ink);
}

.landing-page .acct__menu {
  border: 2px solid var(--quest-ink);
  border-radius: 2px;
  background: var(--cloud);
  box-shadow: 5px 5px 0 var(--quest-ink);
}

.landing-page .acct__item { border-radius: 2px; font-family: var(--mono); font-size: 12px; }
.landing-page .acct__dot { background: var(--quest-blue); box-shadow: 0 0 0 3px rgba(43,98,232,.16); }
.landing-page .acct__chev { color: var(--quest-ink-soft); }
.landing-page .acct__item--primary { border-color: var(--quest-blue); background: var(--quest-blue); color: var(--white); }
.landing-page .acct__item--quiet,
.landing-page .acct__hint { color: var(--quest-ink-soft); }

/* ---------- game buttons ---------- */

.game-button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border: 2px solid var(--quest-ink);
  border-radius: 0;
  background: var(--white);
  color: var(--quest-ink);
  box-shadow: 5px 5px 0 var(--quest-ink);
  clip-path: polygon(0 5px, 5px 5px, 5px 0, calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px));
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  transform-origin: center;
  transition: transform 260ms var(--game-ease), scale 260ms var(--game-ease), box-shadow 260ms var(--game-ease), background-color 260ms var(--game-ease), color 260ms var(--game-ease);
}

.game-button::before,
.game-button::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: currentColor;
  opacity: .32;
}

.game-button::before { left: 5px; top: 5px; }
.game-button::after { right: 5px; bottom: 5px; }

.game-button:active { transform: translate(2px,2px); scale: .96; box-shadow: 2px 2px 0 var(--quest-ink); }

.game-button--primary { background: var(--quest-blue); color: var(--white); }
.game-button--small { min-height: 40px; padding: 8px 13px; box-shadow: 3px 3px 0 var(--quest-ink); font-size: 11px; }
.game-button--wide { width: 100%; }
.game-button--sun { background: var(--sun); color: var(--quest-ink); }
.game-button--light { background: var(--white); color: var(--quest-ink); }
.button-glyph { font-size: 18px; line-height: 1; }
.button-arrow { font-size: 18px; transition: transform 260ms var(--game-ease); }

.landing-page :where(a, button, summary):focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--quest-ink);
  border-radius: 2px;
}

.game-button:focus-visible { clip-path: none; }

.landing-page .acct > .btn:focus-visible,
.landing-page .acct__chip:focus-visible,
.landing-page .acct__item:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--quest-ink);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 1000px;
  padding: 158px var(--gut) 108px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 970px;
  margin: 0 auto;
  text-align: center;
}

html.motion-ready .hero-enter {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  animation: hero-enter 720ms var(--game-ease) forwards;
}

html.motion-ready .hero-enter:nth-child(2) { animation-delay: 90ms; }
html.motion-ready .hero-enter:nth-child(3) { animation-delay: 170ms; }
html.motion-ready .hero-enter:nth-child(4) { animation-delay: 250ms; }
html.motion-ready .hero-enter:nth-child(5) { animation-delay: 330ms; }

@keyframes hero-enter {
  to { opacity: 1; transform: none; filter: blur(0); }
}

.system-kicker,
.section-code,
.system-step,
.local-code {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}

.system-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid var(--line-blue);
  background: rgba(248,253,255,.65);
  color: var(--quest-blue-3);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.48);
}

.status-light {
  width: 8px;
  height: 8px;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(32,201,149,.16);
  animation: status-blink 2.4s steps(2,end) infinite;
}

.hero h1 {
  margin: 28px 0 22px;
  color: var(--quest-ink);
  font-size: clamp(58px, 8vw, 104px);
  line-height: .88;
  letter-spacing: -.055em;
  text-shadow: 4px 4px 0 rgba(255,255,255,.75);
}

.hero-lede {
  max-width: 760px;
  color: var(--quest-ink-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-top: 22px;
  color: var(--quest-ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-note span { position: relative; }
.hero-note span:not(:last-of-type)::after { content: '■'; position: absolute; right: -14px; color: var(--horizon); font-size: 5px; top: 5px; }
.hero-note a { color: var(--quest-blue-2); text-underline-offset: 3px; }

/* ---------- hero console ---------- */

.console-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 82px auto 0;
}

.console-shadow {
  position: absolute;
  inset: 24px 0 -20px 20px;
  background: rgba(36,106,173,.22);
  filter: blur(30px);
}

.quest-console {
  position: relative;
  padding: 12px;
  border: 3px solid var(--quest-ink);
  background: #9ed8f7;
  box-shadow: 10px 10px 0 var(--quest-ink), inset 0 0 0 3px rgba(255,255,255,.58);
}

.quest-console::before,
.quest-console::after {
  content: '';
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  background: var(--sky);
}

.quest-console::before { left: -3px; top: -3px; border-right: 3px solid var(--quest-ink); border-bottom: 3px solid var(--quest-ink); }
.quest-console::after { right: -3px; bottom: -3px; border-left: 3px solid var(--quest-ink); border-top: 3px solid var(--quest-ink); }

.console-bezel { position: relative; overflow: hidden; border: 2px solid var(--quest-ink); background: var(--quest-ink); color: #d9f5ff; }

.console-titlebar,
.console-footerbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 10px 14px;
  background: #173867;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .07em;
}

.console-titlebar { border-bottom: 1px solid #4b77a4; }
.console-footerbar { min-height: 38px; border-top: 1px solid #4b77a4; color: #cbeaff; }
.console-id, .console-meters { display: flex; align-items: center; gap: 14px; }
.console-version { color: #b9def7; }
.console-meters b { color: var(--sun); font-weight: 500; }
.console-meters,
.rail-stat strong,
.job-score,
.price,
.price-allowance b { font-variant-numeric: tabular-nums; }
.console-online { padding: 4px 7px; background: var(--signal); color: #082b2d; font-weight: 700; }

.pixel-eye {
  position: relative;
  width: 22px;
  height: 14px;
  border: 2px solid #a9dcff;
  border-radius: 50%;
}
.pixel-eye::before { content: ''; position: absolute; left: 7px; top: 3px; width: 4px; height: 4px; background: var(--sun); box-shadow: 0 0 0 2px #305e89; }

.console-screen {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  min-height: 480px;
  background: #0d2d56;
}

.quest-rail,
.telemetry { padding: 18px 14px; background: #12335e; }
.quest-rail { border-right: 1px solid #456b91; }
.telemetry { border-left: 1px solid #456b91; }
.panel-label { margin-bottom: 16px; color: #bfe5ff; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }

.quest-active {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid #7fbce3;
  background: #235d94;
  box-shadow: 3px 3px 0 #08213f;
}
.quest-index { display: grid; width: 25px; height: 25px; place-items: center; background: var(--sun); color: #193357; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.quest-active div { min-width: 0; }
.quest-active b, .quest-active span { display: block; }
.quest-active b { overflow: hidden; color: #effbff; font-family: var(--mono); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.quest-active div span { margin-top: 3px; color: #d4efff; font-size: 10px; }

.quest-mini { display: grid; grid-template-columns: 25px 1fr; gap: 4px 9px; align-items: center; margin-top: 13px; opacity: .5; }
.quest-mini span { grid-row: 1 / 3; color: #72a4ca; font-family: var(--mono); font-size: 10px; }
.quest-mini i { height: 3px; background: #4b7194; }
.quest-mini i:last-child { width: 62%; }

.rail-stat { margin-top: 80px; padding-top: 12px; border-top: 1px solid #3e668a; }
.rail-stat span, .rail-stat small, .rail-stat strong { display: block; }
.rail-stat span { color: #bfe5ff; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.rail-stat strong { margin: 4px 0; color: var(--sun); font-family: var(--display); font-size: 46px; line-height: 1; }
.rail-stat small { color: #c6e8fc; font-size: 10px; }

.application-window { padding: 22px; background: #dff3fb; color: var(--quest-ink); }
.browser-bar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; height: 34px; padding: 0 10px; border: 1px solid #89b7d0; background: #f5fcff; font-family: var(--mono); font-size: 10px; }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 6px; height: 6px; background: #8bb9d1; }
.browser-dots i:first-child { background: #ff8f91; }
.browser-dots i:nth-child(2) { background: var(--sun); }
.browser-dots i:last-child { background: var(--signal); }
.browser-url { overflow: hidden; color: #3d637c; white-space: nowrap; text-overflow: ellipsis; }
.secure-tag { color: #1d8068; }

.application-body { min-height: 390px; padding: 24px; border: 1px solid #89b7d0; border-top: 0; background: var(--white); box-shadow: inset 0 0 0 4px #effaff; }
.application-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.micro-label { color: #355b73; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; }
.application-heading h2 { margin-top: 6px; font-size: clamp(24px,3vw,34px); letter-spacing: -.035em; }
.match-chip { flex: none; padding: 6px 8px; border: 1px solid #85c8b2; background: #e1fff5; color: #126b55; font-family: var(--mono); font-size: 10px; font-weight: 600; }

.run-list { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.run-step { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 54px; padding: 8px 10px; border: 1px solid #c8dfeb; background: #f6fbfd; transition: background-color 320ms var(--game-ease), border-color 320ms var(--game-ease), transform 320ms var(--game-ease); }
.run-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #a8c5d5; color: #3e647b; font-family: var(--mono); font-size: 10px; }
.run-copy b, .run-copy small { display: block; }
.run-copy b { color: var(--quest-ink); font-family: var(--mono); font-size: 11px; }
.run-copy small { margin-top: 2px; color: #486a80; font-size: 10px; }
.run-state { color: #526f82; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.run-step[data-state='reading'] { border-color: #7db5d5; background: #eaf8ff; transform: translateX(3px); }
.run-step[data-state='reading'] .run-state { color: var(--quest-blue); }
.run-step[data-state='done'] .run-icon { border-color: #71c9ad; background: #dcfff3; color: #147a60; }
.run-step[data-state='done'] .run-state { color: #18886b; }
.run-step[data-state='ask'] { border-color: #e7b94a; background: #fff8dc; }
.run-step[data-state='ask'] .run-icon { border-color: #e7b94a; background: var(--sun); color: #5e4814; }
.run-step[data-state='ask'] .run-state { color: #8a6614; animation: ask-flash 1.1s steps(2,end) 3; }

.run-footer { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; margin-top: 18px; }
.progress-track { height: 8px; padding: 2px; background: #d7eaf2; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--quest-blue); transition: width 520ms var(--game-ease); }
#quest-progress-label { color: #3e6379; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }

.signal-bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; padding: 12px 4px; border-bottom: 1px solid #3f6388; }
.signal-bars i { flex: 1; height: 25%; background: #58a8d5; animation: signal-jump 1.4s steps(3,end) infinite; transform-origin: bottom; }
.signal-bars i:nth-child(2n) { height: 55%; animation-delay: -.3s; }
.signal-bars i:nth-child(3n) { height: 80%; animation-delay: -.7s; }
.signal-bars i:nth-child(5n) { height: 38%; animation-delay: -1s; }
.quest-console.is-paused .signal-bars i { animation-play-state: paused; }

.telemetry-list { margin: 10px 0 0; }
.telemetry-list div { padding: 10px 0; border-bottom: 1px solid #345b81; }
.telemetry-list dt { color: #b9dff8; font-family: var(--mono); font-size: 9px; letter-spacing: .11em; }
.telemetry-list dd { margin: 3px 0 0; color: #d4efff; font-family: var(--mono); font-size: 10px; }
.telemetry-badge { margin-top: 30px; padding: 8px; border: 1px solid #4e83aa; color: var(--sun); font-family: var(--mono); font-size: 9px; text-align: center; }
.footer-operation { color: #c8efff; }
.footer-operation i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: var(--signal); }
.console-replay { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 9px; border: 1px solid #6f98be; background: #0d2d56; color: var(--sun); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.console-replay:disabled { cursor: default; color: #92b2ca; opacity: .72; }
.scanlines { position: absolute; z-index: 5; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(11,38,70,.08) 3px, rgba(11,38,70,.08) 4px); mix-blend-mode: multiply; }

.console-boot {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
  padding: clamp(28px,6vw,72px);
  background: #102c52;
  color: #bde9ff;
  transition: opacity 420ms steps(6,end), visibility 420ms;
}
.console-boot.is-dismissed { opacity: 0; visibility: hidden; }
.boot-copy { display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: clamp(9px,1.25vw,13px); letter-spacing: .05em; }
.boot-copy span, .boot-copy b { opacity: 0; animation: boot-line 180ms steps(3,end) forwards; }
.boot-copy span:first-child { margin-bottom: 14px; color: var(--sun); animation-delay: 80ms; }
.boot-copy span:nth-child(2) { animation-delay: 260ms; }
.boot-copy span:nth-child(3) { animation-delay: 480ms; }
.boot-copy span:nth-child(4) { animation-delay: 700ms; }
.boot-copy b { color: var(--signal); font-weight: 500; animation-delay: 940ms; }
.console-boot button { min-width: 72px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #82b9d8; font-family: var(--mono); font-size: 10px; }
@keyframes boot-line { to { opacity: 1; } }

@keyframes status-blink { 0%,70% { opacity: 1; } 71%,100% { opacity: .42; } }
@keyframes ask-flash { 0%,55% { opacity: 1; } 56%,100% { opacity: .45; } }
@keyframes signal-jump { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

/* ---------- shared section type ---------- */

.section-intro { max-width: 720px; margin-bottom: 56px; }
.section-intro--center { margin-inline: auto; text-align: center; }
.section-code { display: inline-block; margin-bottom: 18px; color: var(--quest-blue-2); }
.section-code--light { color: #f2fbff; }
.section-intro h2,
.advantage h2,
.local-mode h2,
.download-console h2 { font-size: clamp(46px, 6vw, 76px); }
.section-intro p { max-width: 590px; margin-top: 20px; color: var(--quest-ink-soft); font-size: 18px; }
.section-intro--center p { margin-inline: auto; }

/* ---------- loop ---------- */

.game-loop { position: relative; z-index: 2; padding: var(--rhythm) 0; background: var(--cloud); border-top: 2px solid var(--quest-ink); border-bottom: 2px solid var(--quest-ink); }
.game-loop::before { content: ''; position: absolute; inset: 7px 0 auto; height: 1px; background: var(--line-blue); }
.loop-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 2px solid var(--quest-ink); background: var(--quest-ink); gap: 2px; box-shadow: 8px 8px 0 rgba(16,35,76,.15); }
.loop-card { position: relative; display: flex; min-height: 330px; flex-direction: column; padding: 22px; overflow: hidden; background: var(--white); color: var(--quest-ink); text-decoration: none; transform-origin: center; transition: transform 360ms var(--game-ease), scale 260ms var(--game-ease), background-color 360ms var(--game-ease), color 360ms var(--game-ease), box-shadow 360ms var(--game-ease); }
.loop-card::after { content: ''; position: absolute; inset: auto -30% -70% 20%; height: 240px; background: var(--sky-2); transform: rotate(-12deg); transition: transform 600ms var(--game-ease); }
.loop-card:focus-visible { z-index: 3; background: var(--sky); color: var(--quest-blue-3); box-shadow: 0 12px 0 rgba(16,35,76,.14); transform: translateY(-4px); }
.loop-card:active { scale: .96; }
.loop-card:focus-visible::after { transform: translateY(-28px) rotate(-12deg); }
.loop-number { position: relative; z-index: 2; color: #3e6075; font-family: var(--mono); font-size: 10px; }
.loop-pixel { position: relative; z-index: 2; display: block; width: 74px; height: 74px; margin: 50px auto 34px; color: var(--quest-blue); }
.loop-pixel--search { border: 8px solid currentColor; border-radius: 50%; }
.loop-pixel--search::after { content: ''; position: absolute; width: 34px; height: 8px; right: -27px; bottom: -14px; background: currentColor; transform: rotate(45deg); }
.loop-pixel--doc { border: 7px solid currentColor; background: var(--ice); box-shadow: 12px 12px 0 #a9dcf8; }
.loop-pixel--doc::before, .loop-pixel--doc::after { content: ''; position: absolute; left: 12px; right: 12px; height: 6px; background: currentColor; }
.loop-pixel--doc::before { top: 15px; box-shadow: 0 14px 0 currentColor; }
.loop-pixel--doc::after { top: 43px; right: 28px; }
.loop-pixel--cursor { clip-path: polygon(0 0, 0 100%, 28% 75%, 42% 100%, 57% 91%, 43% 65%, 75% 65%); background: currentColor; filter: drop-shadow(8px 8px 0 #a9dcf8); }
.loop-pixel--signal { width: 78px; height: 58px; margin-top: 58px; border: 7px solid currentColor; background: var(--ice); }
.loop-pixel--signal::before { content: '!'; position: absolute; inset: -17px 0 0; display: grid; place-items: center; color: currentColor; font-family: var(--display); font-size: 52px; }
.loop-card strong { position: relative; z-index: 2; font-family: var(--display); font-size: 32px; line-height: 1; }
.loop-card small { position: relative; z-index: 2; margin-top: 10px; color: var(--quest-ink-soft); font-size: 13px; line-height: 1.45; }
.loop-explore { position: relative; z-index: 2; display: flex; justify-content: space-between; margin-top: auto; padding-top: 24px; color: var(--quest-blue-2); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.loop-explore i { font-style: normal; font-size: 15px; transition: transform 260ms var(--game-ease); }
.loop-card:focus-visible .loop-explore i { transform: translateX(5px); }

/* ---------- advantage ---------- */

.advantage { position: relative; z-index: 2; padding: var(--rhythm) 0; overflow: hidden; background: #2f68ca; color: var(--white); }
.advantage::before { content: ''; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg,transparent,#000,transparent); }
.advantage-layout { position: relative; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(50px,8vw,120px); align-items: start; }
.advantage-title { position: sticky; top: 112px; }
.advantage-title h2 { max-width: 550px; }
.advantage-list { border-top: 1px solid rgba(255,255,255,.35); }
.advantage-list article { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 28px 0 32px; border-bottom: 1px solid rgba(255,255,255,.35); }
.advantage-list article > span { padding-top: 4px; color: var(--sun); font-family: var(--mono); font-size: 11px; }
.advantage-list h3 { font-family: var(--body); font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.advantage-list p { max-width: 610px; margin-top: 12px; color: var(--white); font-size: 15px; }

/* ---------- systems ---------- */

.systems { position: relative; z-index: 2; padding: var(--rhythm) 0; background: #effaff; }
.system-panel { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(44px,7vw,100px); align-items: center; min-height: 600px; padding: 80px 0; border-top: 2px solid var(--quest-ink); scroll-margin-top: 24px; }
.system-panel:last-child { border-bottom: 2px solid var(--quest-ink); }
.system-panel:nth-of-type(odd) .system-copy { order: 2; }
.system-panel:nth-of-type(odd) .mock-window { order: 1; }
.system-step { display: inline-block; margin-bottom: 20px; color: var(--quest-blue-2); }
.system-copy h3 { font-size: clamp(40px,5vw,64px); }
.system-copy > p { margin-top: 22px; color: var(--quest-ink-soft); font-size: 17px; }
.pixel-list { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.pixel-list li { position: relative; padding-left: 22px; font-family: var(--mono); font-size: 11px; }
.pixel-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; background: var(--quest-blue); box-shadow: 3px 3px 0 var(--sky-2); }
.system-proof { padding: 16px; border-left: 5px solid var(--quest-blue); background: #dcefff; font-size: 14px !important; }

.mock-window { border: 2px solid var(--quest-ink); background: var(--white); box-shadow: 9px 9px 0 var(--quest-ink); }
.mock-titlebar { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 12px; border-bottom: 2px solid var(--quest-ink); background: var(--sky-2); color: var(--quest-ink); font-family: var(--mono); font-size: 10px; letter-spacing: .09em; }
.feed-window { padding-bottom: 12px; }
.feed-filters { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid #b7d8e9; font-family: var(--mono); font-size: 10px; }
.feed-filters span, .feed-filters b { padding: 6px 8px; border: 1px solid #b5d5e6; }
.feed-filters b { background: var(--quest-blue); color: var(--white); }
.job-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; margin: 10px 12px 0; padding: 12px; border: 1px solid #c5deea; background: #f8fdff; }
.job-row--active { border: 2px solid var(--quest-blue); background: #e9f5ff; box-shadow: 4px 4px 0 #badff3; }
.job-score { display: grid; width: 40px; height: 40px; place-items: center; background: var(--quest-blue); color: var(--white); font-family: var(--display); font-size: 21px; }
.job-row div b, .job-row div small { display: block; }
.job-row div b { font-size: 13px; }
.job-row div small { margin-top: 3px; color: var(--quest-ink-soft); font-size: 10px; }
.job-tier { padding: 5px; background: #d9fff2; color: #126b55; font-family: var(--mono); font-size: 9px; }
.job-tier--strong { background: #e8efff; color: #3157a3; }
.job-evidence { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 12px 4px 72px; }
.job-evidence span { padding: 5px 7px; border: 1px solid #a8cce0; color: var(--quest-ink-soft); font-family: var(--mono); font-size: 9px; }

.resume-layout { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 380px; }
.resume-page { display: flex; flex-direction: column; gap: 12px; margin: 24px; padding: 24px; border: 1px solid #bed8e5; background: #fbfeff; box-shadow: 5px 5px 0 #cce6f3; }
.resume-name { font-family: var(--display); font-size: 28px; }
.resume-page strong { margin-top: 10px; color: var(--quest-blue-2); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.resume-line { display: block; width: 72%; height: 5px; background: #c8dfe9; }
.resume-line--long { width: 100%; }
.resume-line--mid { width: 84%; }
.resume-signals { display: flex; flex-direction: column; gap: 12px; padding: 28px 20px; border-left: 1px solid #bcd8e6; background: #e9f7fd; }
.resume-signals > span { color: #45677b; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.resume-signals > b { padding: 8px; border: 1px solid #9bc8dd; background: var(--white); color: var(--quest-blue-2); font-family: var(--mono); font-size: 10px; }
.truth-meter { margin-top: auto; padding-top: 15px; border-top: 1px solid #a8ccdd; }
.truth-meter span, .truth-meter b { display: block; font-family: var(--mono); font-size: 10px; }
.truth-meter i { display: block; height: 7px; margin: 8px 0; background: var(--signal); box-shadow: inset -24px 0 0 #b9e7d7; }
.truth-meter b { color: #14765d; }

.portal-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.portal-strip span { padding: 6px 8px; border: 1px solid var(--line-blue); background: var(--white); font-family: var(--mono); font-size: 9px; }
.fake-form { padding: 24px; }
.fake-form-head { display: flex; justify-content: space-between; margin-bottom: 20px; font-family: var(--mono); font-size: 10px; }
.fake-field { display: block; margin-top: 16px; color: #3f6075; font-family: var(--mono); font-size: 10px; }
.fake-input { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 10px 12px; border: 1px solid #a9cada; background: #f7fcff; font-style: normal; }
.fake-input--area { min-height: 100px; align-items: flex-start; }
.fake-input b { color: var(--quest-ink); font-size: 10px; font-weight: 500; }
.fake-input em { color: #126b55; font-size: 9px; font-style: normal; }
.fake-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; color: #3f6075; font-family: var(--mono); font-size: 10px; }
.fake-form-bottom .mock-button { border: 1px solid var(--quest-ink); background: var(--quest-blue); color: var(--white); font-family: var(--mono); font-size: 9px; padding: 10px 12px; box-shadow: 3px 3px 0 var(--quest-ink); }
.recording { color: #075f49; }
.recording i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: var(--signal); }

.ask-window { background: #fff9df; }
.ask-card { position: relative; margin: 36px; padding: 30px; border: 2px solid #bc8a18; background: var(--white); box-shadow: 7px 7px 0 #e8c45e; }
.ask-alert { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 18px; background: var(--sun); color: #573e09; font-family: var(--display); font-size: 34px; }
.ask-card h4 { max-width: 480px; margin: 10px 0 0; font-family: var(--body); font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.ask-card p { margin-top: 10px; color: #455b6a; font-size: 13px; }
.ask-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.ask-actions .mock-button { display: grid; min-height: 42px; place-items: center; border: 2px solid var(--quest-ink); background: var(--white); color: var(--quest-ink); font-family: var(--mono); font-size: 10px; box-shadow: 3px 3px 0 var(--quest-ink); }
.ask-actions .mock-button:first-child { background: var(--quest-blue); color: var(--white); }
.ask-card small { display: block; margin-top: 18px; color: #456173; font-size: 10px; }

/* ---------- local mode ---------- */

.local-mode { position: relative; z-index: 2; padding: var(--rhythm) 0; background: #83c9ef; color: var(--quest-ink); }
.local-mode .section-code--light { color: var(--quest-blue-3); }
.local-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.32); }
.local-head p { max-width: 540px; padding-bottom: 8px; color: var(--quest-ink-soft); font-size: 18px; }
.local-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 60px; background: var(--quest-ink); border: 2px solid var(--quest-ink); }
.local-grid article { min-height: 320px; padding: 30px; background: #f1fbff; }
.local-icon { position: relative; display: block; width: 64px; height: 64px; margin-bottom: 70px; color: var(--quest-blue); }
.local-icon--network { border: 7px solid currentColor; border-radius: 50%; }
.local-icon--network::before, .local-icon--network::after { content: ''; position: absolute; left: 50%; top: -7px; width: 7px; height: 64px; background: currentColor; transform: translateX(-50%); }
.local-icon--network::after { left: -7px; top: 50%; width: 64px; height: 7px; transform: translateY(-50%); }
.local-icon--browser { border: 7px solid currentColor; }
.local-icon--browser::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 7px; background: currentColor; }
.local-icon--browser::after { content: ''; position: absolute; right: 7px; bottom: 7px; width: 18px; height: 18px; border-right: 7px solid currentColor; border-bottom: 7px solid currentColor; }
.local-icon--control { clip-path: polygon(0 0,0 100%,30% 74%,43% 100%,58% 92%,45% 65%,78% 65%); background: currentColor; filter: drop-shadow(8px 8px 0 rgba(255,255,255,.25)); }
.local-code { color: var(--quest-blue-2); font-size: 10px; }
.local-grid h3 { margin-top: 13px; font-family: var(--body); font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.local-grid p { margin-top: 12px; color: var(--quest-ink-soft); font-size: 14px; }

/* ---------- pricing ---------- */

.pricing { position: relative; z-index: 2; padding: var(--rhythm) 0; background: var(--sky); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; min-height: 570px; flex-direction: column; padding: 28px; border: 2px solid var(--quest-ink); background: var(--white); box-shadow: 7px 7px 0 rgba(16,35,76,.18); }
.price-card--featured { background: #e7f4ff; box-shadow: 8px 8px 0 var(--quest-blue); }
.recommend-flag { position: absolute; top: -16px; right: 18px; padding: 7px 9px; border: 2px solid var(--quest-ink); background: var(--sun); color: var(--quest-ink); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.price-card__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid #b5d8e9; font-family: var(--mono); }
.price-card__head > h3 { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 700; line-height: 1; }
.price-card__head small { color: var(--quest-ink-soft); font-size: 10px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 12px; }
.price strong { font-family: var(--display); font-size: 68px; line-height: 1; }
.price span { color: var(--quest-ink-soft); font-family: var(--mono); font-size: 10px; }
.price-allowance { padding-bottom: 22px; border-bottom: 1px solid #b5d8e9; color: #496b80; font-size: 13px; }
.price-allowance b { margin-right: 4px; color: var(--quest-blue-2); font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; padding: 0; list-style: none; }
.price-card li { position: relative; padding-left: 22px; color: #49677a; font-size: 13px; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--quest-blue); font-family: var(--mono); font-weight: 700; }
.price-card .game-button { margin-top: auto; }
.plan-path { max-width: 720px; margin: 24px auto 0; color: #405f73; font-size: 13px; text-align: center; }
.enterprise-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 50px; align-items: center; margin-top: 34px; padding: 28px; border: 2px solid var(--quest-ink); background: #caebfb; box-shadow: 7px 7px 0 rgba(16,35,76,.18); }
.enterprise-card h3 { margin-top: 8px; font-size: 37px; }
.enterprise-card p { max-width: 790px; margin-top: 10px; color: var(--quest-ink-soft); font-size: 14px; }
.billing-guarantees { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 18px; border: 2px solid var(--quest-ink); background: var(--quest-ink); gap: 2px; }
.billing-guarantees span { display: flex; min-height: 76px; align-items: center; gap: 11px; padding: 16px; background: #effaff; color: #405f73; font-size: 12px; line-height: 1.35; }
.billing-guarantees b { flex: none; color: var(--quest-blue); font-family: var(--mono); font-size: 10px; }

/* ---------- frequently asked ---------- */

.faq-section { position: relative; z-index: 2; padding: var(--rhythm) 0; border-top: 2px solid var(--quest-ink); background: #f7fcff; }
.faq-layout { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(48px,8vw,120px); align-items: start; }
.faq-intro { position: sticky; top: 112px; }
.faq-intro h2 { max-width: 500px; font-size: clamp(42px,5.5vw,70px); }
.faq-intro p { max-width: 390px; margin-top: 20px; color: var(--quest-ink-soft); font-size: 16px; }
.faq-list { border-top: 2px solid var(--quest-ink); }
.faq-list details { border-bottom: 1px solid #a9cfe2; background: transparent; transition: background-color 260ms var(--game-ease); }
.faq-list details[open] { background: var(--sky-2); }
.faq-list summary { display: grid; min-height: 72px; grid-template-columns: minmax(0,1fr) 32px; gap: 18px; align-items: center; padding: 16px 18px; color: var(--quest-ink); cursor: pointer; font-size: 17px; font-weight: 700; letter-spacing: -.02em; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--quest-blue); font-family: var(--mono); font-size: 24px; font-weight: 400; transition: transform 260ms var(--game-ease); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 690px; padding: 0 70px 24px 18px; color: var(--quest-ink-soft); font-size: 14px; }

/* ---------- download + footer ---------- */

.download-section { position: relative; z-index: 2; padding: 0 0 var(--rhythm); background: var(--sky); }
.download-console { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 70px; align-items: center; padding: clamp(42px,7vw,80px); border: 3px solid var(--quest-ink); background: var(--quest-blue-2); color: var(--white); box-shadow: 10px 10px 0 var(--quest-ink); }
.download-console p { max-width: 660px; margin-top: 20px; color: #c9eaff; font-size: 18px; }
.download-actions { display: flex; flex-direction: column; gap: 13px; }
.text-download { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; color: #ccecff; font-family: var(--mono); font-size: 10px; text-align: center; text-underline-offset: 4px; }
.site-footer { position: relative; z-index: 2; padding: 70px 0 42px; border-top: 2px solid var(--quest-ink); background: #eaf8ff; }
.footer-grid { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 30px 60px; align-items: start; }
.brand--footer { align-self: start; }
.footer-grid > p { max-width: 370px; color: #405f73; font-size: 14px; }
.landing-page .footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 24px; }
.landing-page .footer-links a { display: inline-flex; min-height: 40px; align-items: center; color: var(--quest-ink); font-family: var(--mono); font-size: 10px; text-decoration: none; }
.footer-meta { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid #a9cfe2; color: #456579; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
@media (min-width: 621px) { .footer-meta { padding-right: 150px; } }

/* ---------- sound + reveals ---------- */

.sound-toggle {
  position: fixed;
  z-index: 40;
  right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 11px;
  border: 2px solid var(--quest-ink);
  border-radius: 2px;
  background: var(--white);
  color: var(--quest-ink);
  box-shadow: 4px 4px 0 var(--quest-ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
}
.sound-toggle[aria-pressed='true'] { background: var(--sun); }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 15px; }
.sound-bars i { width: 3px; height: 5px; background: currentColor; }
.sound-bars i:nth-child(2) { height: 11px; }
.sound-bars i:nth-child(3) { height: 8px; }
.sound-toggle[aria-pressed='true'] .sound-bars i { animation: sound-bars 700ms steps(2,end) infinite alternate; }
.sound-toggle[aria-pressed='true'] .sound-bars i:nth-child(2) { animation-delay: -300ms; }
.sound-toggle[aria-pressed='true'] .sound-bars i:nth-child(3) { animation-delay: -500ms; }
@keyframes sound-bars { to { transform: scaleY(.45); } }

html.motion-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 560ms var(--game-ease), transform 560ms var(--game-ease); }
html.motion-ready :where(.console-wrap, .section-intro, .local-head, .faq-intro)[data-reveal] { transform: translateY(32px); filter: blur(4px); transition: opacity 760ms var(--game-ease), transform 760ms var(--game-ease), filter 760ms var(--game-ease); }
html.motion-ready [data-reveal][data-reveal-delay='1'] { transition-delay: 140ms; }
html.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

@media (hover: hover) {
  .nav-link:hover { color: var(--quest-ink); background: var(--sky-2); }
  .landing-page .acct > .btn:hover { background: var(--sky-2); transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--quest-ink); }
  .game-button:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--quest-ink); background: var(--sky-2); }
  .game-button--primary:hover { background: var(--quest-blue-2); }
  .game-button--small:hover { box-shadow: 2px 2px 0 var(--quest-ink); transform: translate(1px,1px); }
  .game-button--sun:hover { background: #ffe79a; }
  .game-button:hover .button-arrow { transform: translateX(4px); }
  .console-replay:hover { border-color: #a9d9f5; background: #214f7c; }
  .loop-card:hover { z-index: 3; background: var(--sky); color: var(--quest-blue-3); box-shadow: 0 12px 0 rgba(16,35,76,.14); transform: translateY(-4px); }
  .loop-card:hover::after { transform: translateY(-28px) rotate(-12deg); }
  .loop-card:hover .loop-explore i { transform: translateX(5px); }
  .landing-page .footer-links a:hover { color: var(--quest-blue); }
  .sound-toggle:hover { background: var(--sky-2); }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .console-screen { grid-template-columns: minmax(0,1fr) 160px; }
  .telemetry { display: none; }
  .loop-grid { grid-template-columns: repeat(2,1fr); }
  .loop-card { min-height: 300px; }
  .local-grid article { padding: 24px; }
}

@media (max-width: 860px) {
  html.no-js .mobile-menu-toggle, html.no-js .landing-page .acct { display: none; }
  html.no-js .nav-download { display: inline-flex; }
  html.no-js .hero { padding-top: 190px; }
  .noscript-menu { position: absolute; z-index: 19; top: 92px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 8px 12px; border: 2px solid var(--quest-ink); background: var(--cloud); box-shadow: 4px 4px 0 var(--quest-ink); }
  .noscript-menu a { color: var(--quest-ink); font-family: var(--mono); font-size: 10px; font-weight: 600; text-decoration: none; }
  .nav-link { display: none; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; }
  .landing-page .acct { flex-basis: 150px; width: 150px; min-width: 110px; }
  .hero { min-height: auto; padding-top: 140px; }
  .hero h1 { font-size: clamp(50px,12vw,76px); }
  .console-wrap { margin-top: 64px; }
  .console-meters span:not(.console-online) { display: none; }
  .console-screen { grid-template-columns: minmax(0,1fr); }
  .quest-rail { display: none; }
  .console-replay { min-height: 44px; font-size: 10px; }
  .application-window { padding: 14px; }
  .advantage-layout { grid-template-columns: 1fr; }
  .advantage-title { position: static; }
  .system-panel, .system-panel:nth-of-type(odd) { grid-template-columns: 1fr; gap: 42px; min-height: 0; padding: 68px 0; }
  .system-panel:nth-of-type(odd) .system-copy, .system-panel:nth-of-type(odd) .mock-window { order: initial; }
  .local-head { grid-template-columns: 1fr; gap: 30px; }
  .local-grid { grid-template-columns: 1fr; }
  .local-grid article { display: grid; grid-template-columns: 100px 1fr; min-height: 0; }
  .local-icon { margin-bottom: 0; }
  .pricing-grid { grid-template-columns: 1fr; gap: 26px; }
  .price-card { min-height: 0; }
  .billing-guarantees { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .enterprise-card { grid-template-columns: 1fr; gap: 24px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .download-console { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .landing-page .footer-links { justify-content: flex-start; }
  .footer-meta { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --gut: 16px; }
  .site-header { padding-top: 12px; }
  .header-frame { min-height: 56px; padding: 7px 8px 7px 11px; box-shadow: 4px 4px 0 var(--quest-ink); }
  .brand--game { gap: 8px; font-size: 18px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-mark::before { left: 2px; top: 2px; }
  .nav-download { display: none; }
  .landing-page .acct { flex-basis: clamp(88px,28vw,112px); width: clamp(88px,28vw,112px); min-width: 88px; }
  .landing-page .acct > .btn { padding-inline: 9px; }
  .landing-page .acct > .btn, .landing-page .acct__chip { min-height: 44px; }
  .landing-page .acct__chip { width: 100%; max-width: 100%; padding: 8px; }
  .hero { padding: 116px 12px 84px; }
  .system-kicker { font-size: 9px; }
  .hero h1 { margin-top: 23px; font-size: clamp(45px,14.7vw,62px); line-height: .9; }
  .hero-lede { font-size: 16px; }
  .hero-actions { width: 100%; }
  .hero-actions .game-button { width: 100%; }
  .hero-note { gap: 8px 16px; }
  .hero-note span:not(:last-of-type)::after { display: none; }
  .console-wrap { width: calc(100% + 4px); margin-top: 24px; }
  .quest-console { padding: 7px; border-width: 2px; box-shadow: 6px 6px 0 var(--quest-ink); }
  .console-titlebar { min-height: 42px; padding: 8px; }
  .console-id { gap: 8px; font-size: 8px; }
  .console-version { display: none; }
  .console-footerbar { justify-content: center; }
  .console-footerbar > span:not(.footer-operation) { display: none; }
  .console-replay { min-height: 44px; }
  .application-window { padding: 8px; }
  .application-body { padding: 13px; }
  .application-heading { align-items: flex-start; }
  .application-heading h2 { font-size: 22px; }
  .match-chip { font-size: 9px; }
  .run-step { grid-template-columns: 29px minmax(0,1fr); gap: 8px; }
  .run-state { grid-column: 2; }
  .run-footer { grid-template-columns: 1fr; }
  .section-intro h2, .advantage h2, .local-mode h2, .download-console h2 { font-size: clamp(40px,12vw,58px); }
  .section-intro p, .local-head p, .download-console p { font-size: 16px; }
  .loop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .loop-card { min-height: 250px; padding: 17px; }
  .loop-pixel { margin-top: 20px; margin-bottom: 14px; scale: .72; }
  .loop-card strong { font-size: 27px; }
  .loop-card small { font-size: 12px; }
  .loop-explore { padding-top: 14px; }
  .advantage-list article { grid-template-columns: 30px 1fr; gap: 12px; }
  .system-panel { padding: 56px 0; }
  .system-copy h3 { font-size: 43px; }
  .job-row { grid-template-columns: 40px 1fr; }
  .job-tier { grid-column: 2; justify-self: start; }
  .job-evidence { margin-left: 12px; }
  .resume-layout { grid-template-columns: 1fr; }
  .resume-signals { border-left: 0; border-top: 1px solid #bcd8e6; }
  .fake-input { flex-direction: column; align-items: flex-start; }
  .ask-card { margin: 18px; padding: 20px; }
  .local-grid article { grid-template-columns: 1fr; gap: 32px; }
  .price-card { padding: 24px 20px; }
  .billing-guarantees { grid-template-columns: 1fr; }
  .billing-guarantees span { min-height: 60px; }
  .faq-list summary { min-height: 64px; padding-inline: 14px; font-size: 16px; }
  .faq-list details p { padding: 0 54px 22px 14px; }
  .enterprise-card { padding: 24px 20px; }
  .download-console { padding: 36px 22px; box-shadow: 7px 7px 0 var(--quest-ink); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { grid-column: 1; }
  .sound-toggle { display: none; }
}

@media (max-width: 380px) {
  .site-header .brand--game > span:last-child { display: none; }
  .masthead-nav { gap: 1px; }
  .mobile-menu-toggle { padding-inline: 7px; }
  .mobile-menu { padding-inline: 18px; }
  .mobile-menu__actions { grid-template-columns: 1fr; gap: 4px; }
  .mobile-menu__login { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .status-light, .signal-bars i, .run-step[data-state='ask'] .run-state, .sound-bars i, .hero-enter { animation: none !important; }
  html.motion-ready .hero-enter { opacity: 1; transform: none; filter: none; }
  html.motion-ready [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .game-button, .loop-card, .loop-card::after, .loop-explore i, .run-step, .progress-track i, .header-frame, .mobile-menu, .menu-label-stack > span, .nav-link::after, .faq-list details, .faq-list summary span { transition-duration: 0.01ms; }
}


/* ---- axolotl brand mark ---- */
.brand-mark--axo {
  border: none;
  background: transparent;
  box-shadow: none;
}
.brand-mark--axo::before,
.brand-mark--axo::after { display: none; }
.brand-mark--axo svg { width: 100%; height: 100%; display: block; }

/* ---- the mon, perched on its console ---- */
.console-mascot {
  position: absolute;
  top: -78px;
  right: 30px;
  width: 94px;
  z-index: 3;
  pointer-events: none;
  animation: mascot-bob 3.6s ease-in-out infinite;
}
.console-mascot svg { width: 100%; height: auto; display: block; }

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.console-mascot .axo-brows { opacity: 0; transition: opacity 0.2s ease; }
.console-mascot[data-mood="focus"] .axo-brows { opacity: 1; }
.console-mascot .axo-smile { transition: opacity 0.2s ease; }
.console-mascot[data-mood="alert"] .axo-smile { opacity: 0; }
.console-mascot[data-mood="alert"] .axo-mouth-o { opacity: 1 !important; }
.console-mascot[data-mood="alert"] .axo-tip { animation: tip-ping 0.9s ease-in-out infinite; transform-origin: 108px 59px; }

@keyframes tip-ping {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

@media (max-width: 900px) {
  .console-mascot { width: 72px; top: -60px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .console-mascot, .console-mascot .axo-tip { animation: none !important; }
}


/* ==== the overworld: the mon out on quests ==== */
.overworld {
  position: relative;
  border-top: 3px solid var(--quest-ink, #12204a);
  border-bottom: 3px solid var(--quest-ink, #12204a);
  background: linear-gradient(#bfe0f7, #cde8fa);
}

.ow-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  height: 250px;
  overflow: hidden;
}

.ow-kicker {
  position: absolute;
  top: 14px;
  left: 20px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #3a548c;
}

.ow-hud {
  position: absolute;
  top: 12px;
  right: 20px;
  z-index: 5;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #12204a;
  background: #fff;
  border: 2px solid #12204a;
  box-shadow: 4px 4px 0 rgba(18, 32, 74, 0.25);
  padding: 7px 12px;
}
.ow-hud b { color: #1f6b48; }
.ow-hud i { font-style: normal; color: #1f6b48; }
.ow-hud.bump { animation: ow-bump 0.4s steps(2) 1; }

@keyframes ow-bump {
  50% { transform: translateY(-4px); }
}

/* ground: pixel tiles that march only while the mon walks */
.ow-ground {
  position: absolute;
  left: -40px;
  right: -40px;
  bottom: 0;
  height: 46px;
  border-top: 3px solid #12204a;
  background:
    repeating-linear-gradient(90deg, #8fd0f2 0 24px, #a5dbf6 24px 48px),
    #8fd0f2;
  animation: ow-march 0.9s linear infinite;
}

@keyframes ow-march {
  from { background-position: 0 0; }
  to { background-position: -48px 0; }
}

.ow-inner[data-phase="encounter"] .ow-ground,
.ow-inner[data-phase="caught"] .ow-ground { animation-play-state: paused; }

/* the mon */
.ow-mon {
  position: absolute;
  left: 17%;
  bottom: 34px;
  width: 88px;
  z-index: 3;
}
.ow-mon svg { display: block; width: 100%; height: auto; }
.ow-inner[data-phase="walk"] .ow-mon { animation: ow-hop 0.5s steps(2) infinite; }

@keyframes ow-hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.ow-mon .axo-brows { opacity: 0; }
.ow-mon .axo-mouth-o { opacity: 0; }
.ow-mon[data-mood="work"] .axo-brows { opacity: 1; }
.ow-mon[data-mood="work"] .axo-smile { opacity: 0.9; }
.ow-mon[data-mood="catch"] .axo-smile { opacity: 0; }
.ow-mon[data-mood="catch"] .axo-mouth-o { opacity: 1; }
.ow-mon[data-mood="catch"] .axo-tip { animation: tip-ping 0.7s steps(2) infinite; transform-origin: 108px 59px; }
.ow-mon.gulp { animation: ow-gulp 0.45s steps(3) 1; }

@keyframes ow-gulp {
  40% { transform: translateY(2px) scale(1.06, 0.92); }
}

/* the signpost quest card */
.ow-post {
  position: absolute;
  left: 52%;
  bottom: 40px;
  z-index: 2;
  transform: translateX(760px);
  opacity: 0;
}
.ow-post.arrive { animation: ow-arrive 1.6s steps(14) forwards; }
.ow-post.clear { animation: ow-clear 0.4s steps(4) forwards; }

@keyframes ow-arrive {
  from { transform: translateX(760px); opacity: 1; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes ow-clear {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(0) scale(0.6); }
}

.ow-card {
  width: 240px;
  background: #fff;
  border: 2px solid #12204a;
  box-shadow: 5px 5px 0 rgba(18, 32, 74, 0.25);
  padding: 11px 13px 10px;
}

.ow-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ow-card-top b { font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 14px; color: #12204a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ow-tier {
  flex: none;
  font-family: "Geist Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: #1f6b48;
  background: #e2f4e9;
  border: 1px solid #1f6b48;
  padding: 2px 6px;
}

.ow-role { display: block; font-family: "DM Sans", sans-serif; font-size: 12px; color: #4a5c86; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ow-ticks { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; border-top: 1px solid #d8e2f5; padding-top: 7px; }
.ow-ticks span {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #9aa7d6;
}
.ow-ticks span.on { color: #1f6b48; }
.ow-ticks span.on::after { content: " \2713"; }

.ow-bar { height: 5px; background: #e3ebfa; border: 1px solid #12204a; margin-top: 8px; }
.ow-bar i { display: block; height: 100%; width: 0; background: #4A5EF2; transition: width 0.4s steps(4); }

.ow-stick {
  display: block;
  width: 5px;
  height: 40px;
  margin: 0 auto;
  background: #12204a;
}

/* the caught application flying to the log */
.ow-sheet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  opacity: 0;
  offset-path: path("M 640 150 C 720 70, 850 30, 1030 24");
  offset-rotate: 0deg;
}
.ow-sheet.go { animation: ow-fly 1.1s steps(16) forwards; }

@keyframes ow-fly {
  0% { opacity: 0; offset-distance: 0%; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

@supports not (offset-path: path("M 0 0 L 1 1")) {
  .ow-sheet { display: none; }
}

@media (max-width: 900px) {
  .ow-inner { height: 216px; }
  .ow-mon { width: 70px; left: 8%; }
  .ow-post { left: 46%; }
  .ow-card { width: 196px; }
  .ow-kicker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ow-ground, .ow-mon, .ow-sheet, .ow-post, .ow-mon .axo-tip { animation: none !important; }
  .ow-post { transform: none; opacity: 1; }
  .ow-sheet { display: none; }
}


/* ==== hero: copy left, overworld right (old landing format) ==== */
@media (min-width: 981px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: 40px;
    align-items: center;
    text-align: left;
  }
  .hero .hero-copy { text-align: left; margin: 0; align-items: flex-start; }
  .hero .hero-copy h1 { margin-left: 0; margin-right: 0; }
  .hero .hero-lede { margin-left: 0; }
  .hero .hero-actions, .hero .hero-note { justify-content: flex-start; }
  .hero .system-kicker { margin-left: 0; }
  .hero .console-wrap { grid-column: 1 / -1; }
  .hero .overworld { margin: 0; }
}

/* the overworld panel */
.overworld {
  position: relative;
  border: 3px solid var(--quest-ink, #12204a);
  background: linear-gradient(#bfe0f7 0%, #d4ebfa 70%, #cde8fa 100%);
  box-shadow: 8px 8px 0 rgba(18, 32, 74, 0.22);
  margin: 26px auto 0;
  max-width: 1180px;
}

.ow-inner { position: relative; height: 300px; overflow: hidden; }

.ow-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  padding: 9px 14px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #2c4a86;
}

.ow-hud { top: 34px; }

@media (max-width: 980px) {
  .overworld { margin: 24px 0 0; }
  .ow-inner { height: 240px; }
}

/* stance fixes: the mon stands ON the ground, closer to the post */
.ow-mon { left: 16%; bottom: 46px; width: 96px; }
.ow-post { left: 48%; bottom: 52px; }

/* the ground: classic overworld grass over earth */
.ow-ground {
  height: 52px;
  border-top: 3px solid #12204a;
  background:
    linear-gradient(#9adf8f 0 10px, transparent 10px),
    repeating-linear-gradient(90deg, #7ecb74 0 24px, #8bd581 24px 48px);
  animation: ow-march 0.9s linear infinite;
}

@media (max-width: 900px) {
  .ow-mon { width: 74px; left: 9%; bottom: 42px; }
  .ow-post { left: 44%; bottom: 48px; }
  .ow-card { width: 190px; }
}

/* clouds drift now */
.sky-field .cloud { animation: cloud-drift-a 90s linear infinite; }
.sky-field .cloud--two { animation-duration: 120s; animation-delay: -40s; }
.sky-field .cloud--three { animation-duration: 75s; animation-delay: -20s; }

@keyframes cloud-drift-a {
  from { transform: translateX(105vw); }
  to { transform: translateX(-220px); }
}

@media (prefers-reduced-motion: reduce) {
  .sky-field .cloud { animation: none; }
}

/* the boot overlay dismisses in a snap, no long ghost crossfade */
.console-boot { transition: opacity 0.22s steps(3), visibility 0s 0.25s !important; }


/* headline sized for the two-column hero */
@media (min-width: 981px) {
  .hero h1 { font-size: clamp(34px, 3.5vw, 52px); }
  .hero-lede { font-size: 17px; }
}


/* the overworld owns the hero's right side */
@media (min-width: 981px) {
  .hero { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
  .ow-inner { height: 540px; }
  .ow-mon { width: 128px; left: 14%; bottom: 48px; }
  .ow-post { left: 50%; bottom: 56px; }
  .ow-card { width: 260px; }
  .ow-ground { height: 56px; }
  .ow-stick { height: 48px; }
}


/* pixel clouds drifting through the overworld sky */
.ow-cloud {
  position: absolute;
  z-index: 1;
  width: 58px;
  height: 16px;
  background: #ffffff;
  box-shadow: 14px -10px 0 #ffffff, 34px -4px 0 #ffffff, -12px -3px 0 #f2fbff;
  opacity: 0.95;
  animation: ow-cloud-move linear infinite;
}
.ow-cloud--a { top: 84px; animation-duration: 46s; animation-delay: -18s; }
.ow-cloud--b { top: 170px; transform: scale(0.7); animation-duration: 64s; animation-delay: -40s; opacity: 0.7; }

@keyframes ow-cloud-move {
  from { left: 105%; }
  to { left: -90px; }
}

@media (prefers-reduced-motion: reduce) {
  .ow-cloud { animation: none; left: 20%; }
}


/* ==== hero v3: the overworld takes the whole hero, unboxed ==== */
.hero { display: block; text-align: left; }

.hero-top {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero-top .hero-copy {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 600px;
  text-align: left;
}
.hero-top .hero-copy h1 { font-size: clamp(46px, 4.9vw, 72px); margin-left: 0; }
.hero-top .hero-lede { margin-left: 0; font-size: 18px; max-width: 46ch; }
.hero-top .hero-actions, .hero-top .hero-note { justify-content: flex-start; }

.overworld {
  position: absolute;
  inset: 0;
  margin: 0;
  max-width: none;
  border: none;
  box-shadow: none;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

.ow-inner { position: absolute; inset: 0; height: auto; overflow: visible; }

/* full-bleed grass */
.ow-ground {
  position: absolute;
  left: calc(50% - 50vw);
  width: 100vw;
  right: auto;
  bottom: 0;
  height: 58px;
}

/* the stage anchors the actors to the open right side */
.ow-stage {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 660px;
  height: 540px;
}

.ow-stage .ow-hud { top: 6px; right: 4px; }
.ow-stage .ow-mon { left: 64px; bottom: 56px; width: 132px; }
.ow-stage .ow-post { left: 348px; bottom: 62px; }
.ow-stage .ow-card { width: 252px; }

.ow-stage .ow-sheet {
  offset-path: path("M 420 260 C 480 170, 540 80, 596 36");
}

.ow-cloud { z-index: 0; }
.ow-cloud--a { top: 64px; }
.ow-cloud--b { top: 168px; }

@media (max-width: 980px) {
  .hero-top { display: block; min-height: 0; padding-bottom: 340px; }
  .hero-top .hero-copy { margin: 0 auto; text-align: center; }
  .hero-top .hero-actions, .hero-top .hero-note { justify-content: center; }
  .ow-stage {
    width: 660px;
    right: 50%;
    transform: translateX(50%) scale(0.62);
    transform-origin: bottom center;
  }
  .ow-ground { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .ow-cloud { animation: none; }
}


/* copy clears the grass line */
@media (min-width: 981px) {
  .hero-top { padding-bottom: 110px; min-height: 620px; }
}


/* ================================================================
   Professional pass: Fraunces display over the game chrome, a hero
   sized like the flagship, a planted mascot, smooth motion.
   ================================================================ */

:root { --display: 'DM Sans', system-ui, sans-serif; }

h1, h2, h3, .price strong, .price-card__head h3 {
  text-shadow: none !important;
  letter-spacing: -0.02em;
}

.hero-top .hero-copy h1 {
  font-size: clamp(50px, 6vw, 94px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: none;
}

.section-intro h2, .advantage-title h2, .local-head h2, .faq-intro h2,
.download-copy h2, .system-copy h3, .enterprise-card h3 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* hero at flagship scale */
@media (min-width: 981px) {
  .hero-top { min-height: min(86vh, 780px); padding-bottom: 130px; }
  .ow-stage { width: 700px; height: 640px; }
  .ow-stage .ow-mon { width: 210px; left: 36px; bottom: 34px; }
  .ow-stage .ow-post { left: 400px; bottom: 64px; }
  .ow-stage .ow-card { width: 280px; }
  .ow-stage .ow-stick { height: 58px; }
  .ow-stage .ow-sheet { offset-path: path("M 480 300 C 540 190, 580 90, 636 42"); }
  .ow-ground { height: 64px; }
}

/* feet exactly on the grass line at any size:
   svg feet sit at 104/120 of its height; ground top = ground height */
.ow-mon { bottom: 34px; }

/* the ground, platformer construction: grass cap, earth, speckles, seams */
.ow-ground {
  border-top: 3px solid #10234c;
  background:
    radial-gradient(circle at 11px 34px, rgba(16, 35, 76, 0.18) 2px, transparent 2.6px),
    radial-gradient(circle at 33px 48px, rgba(16, 35, 76, 0.14) 2px, transparent 2.6px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(16, 35, 76, 0.07) 42px 44px),
    linear-gradient(#9adf8f 0 8px, #7ecb74 8px 20px, #d9bd8f 20px 24px, #cfa878 24px 100%);
  background-size: 44px 100%, 44px 100%, 44px 100%, auto;
  animation: ow-march 1s linear infinite;
}

@keyframes ow-march {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: -44px 0, -44px 0, -44px 0, 0 0; }
}

/* smooth motion: the signpost slides in from off-screen, no stepping */
.ow-post.arrive { animation: ow-arrive 1.25s cubic-bezier(0.16, 0.8, 0.24, 1) forwards; }

@keyframes ow-arrive {
  from { transform: translateX(720px); opacity: 1; }
  to { transform: translateX(0); opacity: 1; }
}

.ow-post.clear { animation: ow-clear 0.35s ease forwards; }

@keyframes ow-clear {
  from { opacity: 1; transform: translateX(0) translateY(0); }
  to { opacity: 0; transform: translateX(0) translateY(10px); }
}

/* clouds drift on transform, buttery */
.ow-cloud { left: 100%; animation: ow-cloud-glide linear infinite; }
.ow-cloud--a { animation-duration: 52s; animation-delay: -22s; }
.ow-cloud--b { animation-duration: 70s; animation-delay: -48s; }

@keyframes ow-cloud-glide {
  from { transform: translateX(0); }
  to { transform: translateX(-860px); }
}

/* moods act instead of blinking */
.ow-mon .axo-brows {
  opacity: 0;
  transform: translateY(-5px);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: opacity 0.16s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ow-mon[data-mood="work"] .axo-brows { opacity: 1; transform: translateY(0); }
.ow-mon .axo-mouth-o { opacity: 0; transition: opacity 0.15s ease; }
.ow-mon .axo-smile { transition: opacity 0.15s ease; }

/* the walk is a gentle bounce, not a stutter */
.ow-inner[data-phase="walk"] .ow-mon { animation: ow-hop 0.62s ease-in-out infinite; }

@keyframes ow-hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 980px) {
  .hero-top { padding-bottom: 310px; }
  .ow-stage { transform: translateX(50%) scale(0.55); }
  .hero-top .hero-copy h1 { font-size: clamp(38px, 10vw, 52px); }
}


/* the hero sits on the same shell grid as every other section */
.hero { padding-left: 0; padding-right: 0; }
.hero-top,
.hero .console-wrap {
  width: min(100% - (var(--gut) * 2), 1280px);
  margin-inline: auto;
}


/* ================================================================
   Round 2 polish: a closed ground, smooth motion everywhere, real
   face swaps, the work bubble, and the two-panel console.
   ================================================================ */

/* --- ground: grass lip is dark, dirt apron runs down to meet the console --- */
.ow-ground {
  border-top: 3px solid #10234c;
  background:
    radial-gradient(circle at 11px 34px, rgba(16, 35, 76, 0.18) 2px, transparent 2.6px),
    radial-gradient(circle at 33px 48px, rgba(16, 35, 76, 0.14) 2px, transparent 2.6px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(16, 35, 76, 0.07) 42px 44px),
    linear-gradient(#63b95a 0 3px, #8ed983 3px 10px, #74c46b 10px 21px, #d9bd8f 21px 25px, #cfa878 25px 100%);
  background-size: 44px 100%, 44px 100%, 44px 100%, auto;
}

.ow-ground::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 170px;
  background:
    radial-gradient(circle at 13px 26px, rgba(16, 35, 76, 0.13) 2px, transparent 2.6px),
    radial-gradient(circle at 35px 64px, rgba(16, 35, 76, 0.11) 2px, transparent 2.6px),
    radial-gradient(circle at 24px 112px, rgba(16, 35, 76, 0.10) 2px, transparent 2.6px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(16, 35, 76, 0.07) 42px 44px),
    linear-gradient(#cfa878 0 64%, #c6a06f 100%);
  background-size: 44px 100%, 44px 100%, 44px 100%, 44px 100%, auto;
  border-bottom: 3px solid #10234c;
  animation: ow-march 1s linear infinite;
}

/* one keyframe pair for every layer: vertical gradients do not show the shift */
@keyframes ow-march {
  from { background-position: 0 0; }
  to { background-position: -44px 0; }
}

.ow-inner[data-phase="encounter"] .ow-ground::after,
.ow-inner[data-phase="caught"] .ow-ground::after { animation-play-state: paused; }

@media (max-width: 980px) {
  .ow-ground::after { height: 96px; }
}

/* --- the sun stays out of the quest log's corner and the header --- */
.sun-pixel { top: 152px; right: 20%; }
@media (max-width: 980px) { .sun-pixel { display: none; } }

/* --- smooth motion: no stepped animation on anything that travels --- */
.ow-sheet.go { animation: ow-fly 1.15s cubic-bezier(0.3, 0.55, 0.25, 1) forwards; will-change: offset-distance, opacity; }
.ow-bar i { transition: width 0.64s linear; }
.ow-mon.gulp { animation: ow-gulp 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1; }
.ow-mon[data-mood="catch"] .axo-tip { animation: tip-ping 0.85s ease-in-out infinite; transform-origin: 103px 62.5px; transform-box: view-box; }
.ow-hud.bump { animation: ow-bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1; }

/* --- faces swap like sprite frames: no crossfade, a snap plus a squash --- */
.ow-mon .axo-brows { transition: none; transform: none; }
.ow-mon .axo-mouth-o { transition: none; }
.ow-mon .axo-smile { transition: none; }
.ow-mon[data-mood="work"] .axo-smile { opacity: 1; }
.ow-mon.face-pop svg { animation: face-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) 1; }
.ow-mon.face-pop .mon-eyes { animation: blink-once 0.18s linear 1; transform-origin: 60px 41px; transform-box: view-box; }

@keyframes face-pop {
  40% { transform: translateY(1.5px) scale(1.05, 0.95); }
}

@keyframes blink-once {
  45% { transform: scaleY(0.12); }
}

/* --- the work bubble: says what the mon is doing, above its head --- */
.ow-mon .ow-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  display: none;
  align-items: center;
  white-space: nowrap;
  background: #ffffff;
  border: 2px solid #10234c;
  box-shadow: 3px 3px 0 rgba(16, 35, 76, 0.25);
  padding: 7px 11px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #10234c;
}
.ow-mon .ow-bubble.on { display: inline-flex; }
.ow-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 3px;
  height: 9px;
  background: #10234c;
  transform: translateX(-50%);
}
.ow-bubble i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: #2b62e8;
  animation: bdot 1s ease-in-out infinite;
}
.ow-bubble.good i { background: #20c995; animation: none; }
.ow-bubble.pop { animation: bubble-pop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) 1; }

@keyframes bdot {
  50% { opacity: 0.25; }
}

@keyframes bubble-pop {
  0% { transform: translateX(-50%) scale(0.85); }
  60% { transform: translateX(-50%) scale(1.05); }
  100% { transform: translateX(-50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ow-bubble i, .ow-mon.face-pop svg, .ow-mon.face-pop .mon-eyes { animation: none !important; }
}

/* --- the second hero action: watch the console demo run --- */
#quest-console { scroll-margin-top: 108px; }

/* --- the hero offers only the visitor's installer once the OS is known --- */
.plat-other { display: none; }
body[data-platform] .hero-actions [data-platform-download] { display: none; }
body[data-platform="windows"] .hero-actions [data-platform-download="windows"] { display: inline-flex; }
body[data-platform="mac"] .hero-actions [data-platform-download="mac"] { display: inline-flex; }
body[data-platform] .hero-note .plat-other { display: inline-flex; }
body[data-platform="windows"] .hero-note a[href*="mac-x64"] { display: none; }

/* --- the brand lockup: Fraunces wordmark beside a bigger mark --- */
.brand--game .brand-mark--axo svg { width: 38px; height: 38px; }
.brand--game > span:last-child { font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; text-transform: none; }

/* --- console: the browser leads, the quest log rides on the right --- */
@media (min-width: 1101px) {
  .console-screen { grid-template-columns: minmax(0, 1fr) 212px; }
}
.quest-rail { border-right: 0; border-left: 1px solid #456b91; }
.quest-rail .telemetry-badge { margin-top: 22px; }
