:root {
  --y: #ffd400;
  --y-hot: #ffcd00;
  --y-soft: #ffe861;
  --y-pale: #fff6c2;
  --k: #111111;
  --k-2: #242424;
  --w: #fffef8;
  --paper: #ffffff;
  --mute: #5c5c5c;
  --line: 3px;
  --shift: 5px;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-display: "Pixelify Sans", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1120px;
  --mascot-ink: #111111;
  --mascot-fill: #ffd400;
  --mascot-hi: #fff6c2;
  --mascot-shade: #e6b800;
  --mascot-eye: #111111;
  --mascot-pupil: #ffffff;
  --mascot-white: #ffffff;
  --evil: #ff1f1f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--k);
  background: var(--w);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  background-image: radial-gradient(rgba(17, 17, 17, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: var(--line) solid var(--k);
  background: var(--y);
  color: var(--k);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.02em;
  box-shadow: var(--shift) var(--shift) 0 var(--k);
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s steps(2, end), box-shadow 0.08s steps(2, end);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--k);
}

.btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--k);
}

.btn--ghost {
  background: var(--paper);
}

.btn--dark {
  background: var(--k);
  color: var(--y);
}

.btn--halo {
  animation: halo 1.8s steps(2, end) infinite;
}

@keyframes halo {
  0%,
  100% {
    box-shadow: 5px 5px 0 var(--k), 0 0 0 0 rgba(17, 17, 17, 0.12);
  }
  50% {
    box-shadow: 5px 5px 0 var(--k), 0 0 0 8px rgba(17, 17, 17, 0.08);
  }
}

/* ---------- nav ---------- */

.nav {
  --nav-bg: var(--y);
  --nav-fg: #111111;
  --nav-line: #111111;
  --nav-hair: #111111;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  color: var(--nav-fg);
  border-bottom: var(--line) solid var(--nav-line);
  transition: background 0.16s steps(3, end), color 0.16s steps(3, end), border-color 0.16s steps(3, end);
}

.nav.is-stuck {
  box-shadow: 0 6px 0 rgba(17, 17, 17, 0.12);
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--nav-fg);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand__name {
  white-space: nowrap;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand__bg {
  fill: #111111;
}

.brand__fg {
  fill: #ffd400;
}

.nav__links {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-weight: 600;
  font-size: 14px;
}

.nav__links a {
  position: relative;
  white-space: nowrap;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.16s steps(3, end);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav__tools .btn {
  min-height: 40px;
  padding: 0 12px;
  font-size: 9px;
  box-shadow: 3px 3px 0 var(--k);
}

.btn.nav__account,
.btn.nav__go {
  display: none;
}

.lang {
  position: relative;
}

.lang__btn {
  min-width: 48px;
  padding: 0 8px;
  font-size: 9px;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 55;
  display: grid;
  min-width: 220px;
  background: var(--paper);
  border: 3px solid var(--k);
  box-shadow: 4px 4px 0 var(--k);
}

.lang__menu[hidden] {
  display: none !important;
}

.lang__menu button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-bottom: 3px solid var(--k);
  background: var(--paper);
  color: var(--k);
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.lang__menu button:last-child {
  border-bottom: 0;
}

.lang__menu button.is-on,
.lang__menu button:hover {
  background: var(--y);
  color: #111;
}

.theme-btn {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

.theme-btn__bg {
  fill: #111;
}

.theme-btn__eye,
.theme-btn__mouth {
  fill: #ffd400;
}

.nav__extra {
  display: block;
}

.nav__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: var(--line) solid var(--k);
  background: var(--paper);
  color: var(--k);
  box-shadow: 3px 3px 0 var(--k);
  cursor: pointer;
}

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

.hero-fold {
  min-height: calc(100vh - 67px);
  min-height: calc(100svh - 67px);
  min-height: calc(100dvh - 67px);
  display: flex;
  flex-direction: column;
  background: var(--y);
}

.hero-fold .hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-fold .hero__grid {
  flex: 1 1 auto;
  align-items: center;
  align-content: center;
}

.hero-fold .marquee {
  flex: none;
  margin-top: auto;
}

@media (min-width: 901px) {
  .hero-fold .hero__grid {
    padding: 40px 0 56px;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--y);
  border-bottom: var(--line) solid var(--k);
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.06) 2px, transparent 2px);
  background-size: 24px 24px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding: 56px 0 72px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 8px 10px;
  border: 3px solid var(--k);
  background: var(--paper);
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1.4;
  box-shadow: 3px 3px 0 var(--k);
}

.hero h1 {
  color: var(--k);
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: var(--k);
  color: var(--y);
  padding: 0 10px 4px;
  box-decoration-break: clone;
}

.hero__lead {
  max-width: 46ch;
  margin-top: 18px;
  font-size: 18px;
  color: var(--k-2);
}

.hero__lead--m {
  display: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 3px solid var(--k);
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
}

.pill i {
  width: 8px;
  height: 8px;
  background: var(--k);
}

.term {
  margin-top: 26px;
  max-width: 460px;
  background: var(--k);
  color: var(--y);
  border: 3px solid var(--k);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.25);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #1d1d1d;
  border-bottom: 3px solid #000;
  color: var(--w);
  font-family: var(--font-pixel);
  font-size: 8px;
}

.term__dot {
  width: 8px;
  height: 8px;
  background: var(--y);
}

.term__body {
  margin: 0;
  padding: 14px 14px 16px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.term__body .ok {
  color: #fff;
}

.term__cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 2px;
  background: var(--y);
  vertical-align: -2px;
  animation: blink-cursor 1s steps(1) infinite;
}

@keyframes blink-cursor {
  50% {
    opacity: 0;
  }
}

/* ---------- mascot stage ---------- */

.stage {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.stage__frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  background: var(--paper);
  border: 4px solid var(--k);
  box-shadow: 8px 8px 0 var(--k);
}

.stage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--k);
  color: var(--y);
  font-family: var(--font-pixel);
  font-size: 8px;
}

.stage__top b {
  font-weight: 400;
}

.stage__dots {
  display: flex;
  gap: 5px;
}

.stage__dots i {
  width: 8px;
  height: 8px;
  background: var(--y);
}

.stage__screen {
  position: relative;
  height: calc(100% - 32px);
  overflow: hidden;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(17, 17, 17, 0.04),
      rgba(17, 17, 17, 0.04) 2px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(#fffef8, #fff4b8);
}

.file {
  --file-bg: var(--y);
  --file-fg: #111111;
  --file-mark: #111111;
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px 7px 8px;
  background: var(--file-bg);
  color: var(--file-fg);
  border: 3px solid var(--file-fg);
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--file-fg);
  white-space: nowrap;
}

.file__ico {
  position: relative;
  width: 10px;
  height: 12px;
  flex: none;
  background: var(--file-mark);
  box-shadow: inset -2px 0 0 var(--file-bg);
}

.file__ico::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 4px;
  background: var(--file-bg);
  box-shadow: -2px 2px 0 var(--file-mark);
}

.file--a {
  top: 28%;
  left: 5%;
}

.file--b {
  top: 62%;
  right: 5%;
}

.file--c {
  bottom: 10%;
  left: 8%;
}

.bubble {
  position: absolute;
  z-index: 3;
  top: 7%;
  left: 5%;
  right: auto;
  max-width: 150px;
  padding: 10px 12px;
  background: var(--paper);
  border: 3px solid var(--k);
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 1.5;
  box-shadow: 4px 4px 0 var(--k);
}

.bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -11px;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border-right: 3px solid var(--k);
  border-bottom: 3px solid var(--k);
  transform: rotate(45deg);
}

.mascot {
  position: absolute;
  inset: 18px 0 0;
  display: grid;
  place-items: center;
}

.mascot svg {
  width: min(78%, 280px);
  height: auto;
  overflow: visible;
}

.mascot__bob {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: bob 2.6s ease-in-out infinite;
}

.mascot__sparkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: spark-spin 3.2s steps(8, end) infinite;
}

.mascot__spark-mini {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 1.4s steps(2, end) infinite;
}

.mascot__lids {
  opacity: 0;
  animation: lids 3.4s steps(1, end) infinite;
}

.mascot__arm {
  transform-box: fill-box;
  transform-origin: 12px 8px;
  animation: wave 2.8s ease-in-out infinite;
}

.mascot__shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: shadow 2.6s ease-in-out infinite;
}

.pupil {
  transform-box: fill-box;
  fill: var(--mascot-pupil);
}

.mascot .ink {
  fill: var(--mascot-ink);
}

.mascot .fill {
  fill: var(--mascot-fill);
}

.mascot .hi {
  fill: var(--mascot-hi);
}

.mascot .lo {
  fill: var(--mascot-shade);
}

.mascot .eye {
  fill: var(--mascot-eye);
}

.mascot .hand {
  fill: var(--mascot-white);
}

.mascot__evil {
  display: none;
}

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

@keyframes shadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.25;
  }
  50% {
    transform: scaleX(0.82);
    opacity: 0.16;
  }
}

@keyframes spark-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  50% {
    opacity: 0.15;
  }
}

@keyframes lids {
  0%,
  92%,
  100% {
    opacity: 0;
  }
  94%,
  97% {
    opacity: 1;
  }
}

@keyframes wave {
  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }
  70% {
    transform: rotate(-18deg);
  }
  80% {
    transform: rotate(12deg);
  }
  90% {
    transform: rotate(-8deg);
  }
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--k);
  color: var(--y);
  border-bottom: var(--line) solid var(--k);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  display: flex;
  gap: 28px;
  padding: 14px 0;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.marquee__track b {
  font-weight: 400;
  color: var(--paper);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */

.section {
  padding: 88px 0;
}

.section--white {
  background: var(--paper);
  border-bottom: var(--line) solid var(--k);
}

.section--yellow {
  background: var(--y);
  border-bottom: var(--line) solid var(--k);
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.05) 2px, transparent 2px);
  background-size: 24px 24px;
}

.section__head {
  display: grid;
  gap: 12px;
  margin: 0 auto 36px;
  max-width: 640px;
  justify-items: center;
  text-align: center;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section__head h2 em {
  font-style: normal;
  background: var(--k);
  color: var(--y);
  padding: 0 8px 2px;
}

.section--yellow .section__head h2 em {
  background: var(--paper);
  color: var(--k);
}

.section__head p {
  color: var(--k-2);
  font-size: 17px;
}

.catalog__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.catalog__q {
  flex: 1;
  min-width: 220px;
  min-height: 48px;
  padding: 0 14px;
  border: 3px solid var(--k);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--k);
  font-size: 16px;
}

.catalog__q:focus {
  outline: 3px solid var(--y);
  outline-offset: 0;
}

.catalog__meta {
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1.4;
}

.catalog__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  min-height: 36px;
  padding: 0 12px;
  border: 3px solid var(--k);
  background: var(--paper);
  font-family: var(--font-pixel);
  font-size: 8px;
  cursor: pointer;
}

.chip.is-on {
  background: var(--y);
}

.catalog__more {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.catalog__more[hidden] {
  display: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--paper);
  border: 3px solid var(--k);
  box-shadow: 5px 5px 0 var(--k);
  transition: transform 0.1s steps(2, end), box-shadow 0.1s steps(2, end);
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--k);
}

.card__icon {
  display: grid;
  place-items: center;
  height: 92px;
  border-bottom: 3px solid var(--k);
  background: var(--y-pale);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.card__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--mute);
}

.badge-x {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border: 3px solid var(--k);
  background: var(--k);
  color: var(--y);
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--k);
}

.card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.card p {
  color: var(--mute);
  font-size: 15px;
}

.card__installs {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--mute);
}

.card .btn {
  margin-top: 12px;
  min-height: 42px;
  width: 100%;
  font-size: 10px;
}

.catalog__empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 3px solid var(--k);
  background: var(--y-pale);
}

.section__head a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card__row {
  display: flex;
  align-items: baseline;
  margin-top: auto;
  padding-top: 12px;
}

.card__row span {
  font-size: 13px;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 22px;
  background: var(--paper);
  border: 3px solid var(--k);
  box-shadow: 5px 5px 0 var(--k);
}

.step__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  background: var(--y);
  border: 3px solid var(--k);
  font-family: var(--font-pixel);
  font-size: 12px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 8px;
}

.step p {
  color: var(--mute);
}

.step code {
  display: inline-block;
  padding: 1px 6px;
  background: var(--k);
  color: var(--y);
  font-size: 13px;
}

.tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tool {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 14px;
  background: var(--paper);
  border: 3px solid var(--k);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--k);
}

.tool i {
  width: 14px;
  height: 14px;
  background: var(--y);
  border: 3px solid var(--k);
  flex: none;
}

.whys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.why {
  padding: 20px;
  background: var(--y-pale);
  border: 3px solid var(--k);
}

.why h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 6px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--paper);
  border: 3px solid var(--k);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-pixel);
  font-size: 12px;
}

.faq details[open] summary::after {
  content: "-";
}

.faq p {
  padding: 0 18px 18px;
  color: var(--mute);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--paper);
  border: 4px solid var(--k);
  box-shadow: 8px 8px 0 var(--k);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.cta-band p {
  margin-top: 8px;
  color: var(--mute);
}

/* ---------- footer ---------- */

.foot {
  background: var(--k);
  color: var(--w);
  padding: 48px 0 28px;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.foot a {
  color: var(--y-soft);
}

.foot p,
.foot li {
  color: #d7d7d7;
  font-size: 14px;
}

.foot ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.foot h3 {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--y);
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--y);
}

.foot__copy {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 3px solid #2a2a2a;
  font-size: 12px;
  color: #9a9a9a;
}

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.55);
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s steps(2, end);
}

.modal.is-on {
  opacity: 1;
  pointer-events: auto;
}

.modal__box {
  width: min(420px, 100%);
  background: var(--paper);
  border: 4px solid var(--k);
  box-shadow: 8px 8px 0 var(--k);
}

.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--k);
  color: var(--y);
  font-family: var(--font-pixel);
  font-size: 9px;
}

.modal__close {
  width: 28px;
  height: 28px;
  border: 3px solid var(--y);
  background: var(--k);
  color: var(--y);
  cursor: pointer;
}

.modal__box p {
  padding: 18px;
}

.modal__box .btn {
  margin: 0 18px 18px;
}

/* ---------- rv ---------- */

.rv {
  opacity: 0;
}

.rv.is-on,
html.is-mobile .rv {
  opacity: 1;
}

html.is-mobile {
  --font-pixel: "Outfit", ui-monospace, monospace;
  touch-action: pan-x pan-y;
}

html.is-mobile body {
  touch-action: pan-x pan-y;
}

.hero__pills .pill strong {
  font-weight: 700;
}

.nav.is-open .nav__links {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  background: var(--nav-bg);
  color: var(--nav-fg);
  border-bottom: 3px solid var(--nav-line);
}

.nav.is-open .nav__links a,
.nav.is-open .nav__links .nav__extra {
  padding: 14px 20px;
  border-top: 3px solid var(--nav-hair);
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.nav.is-open .nav__links a::after {
  display: none;
}

.nav__lang {
  display: none;
}

.nav__lang-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__lang-picks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.nav__lang-picks button {
  min-height: 44px;
  border: 3px solid var(--k);
  background: var(--paper);
  color: var(--k);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nav__lang-picks button.is-on,
.nav__lang-picks button:hover {
  background: var(--y);
}

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

@media (min-width: 961px) and (max-width: 1100px) {
  .nav__links {
    gap: 16px;
    font-size: 13px;
  }
}

@media (min-width: 961px) {
  .nav__links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
  }

  .btn.nav__account,
  .btn.nav__go {
    display: inline-flex;
  }

  .nav__extra,
  .nav__burger,
  .nav__lang {
    display: none;
  }

  .nav.is-open .nav__links {
    position: static;
    flex-direction: row;
    border: 0;
  }

  .nav.is-open .nav__links a {
    padding: 0;
    border: 0;
  }
}

@media (max-width: 960px) {
  .hero__grid,
  .cards,
  .steps,
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tools,
  .whys {
    grid-template-columns: 1fr 1fr;
  }

  .btn.nav__account {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  :root {
    --font-pixel: "Outfit", ui-monospace, monospace;
  }

  .rv {
    opacity: 1;
  }

  .term,
  .hero__pills {
    display: none;
  }

  .stage {
    min-height: 0;
    width: min(240px, 68vw);
    margin: 4px auto 0;
  }

  .stage__frame {
    width: 100%;
    aspect-ratio: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .stage__top,
  .file,
  .bubble {
    display: none;
  }

  .stage__screen {
    height: auto;
    overflow: visible;
    background: none;
  }

  .mascot {
    position: relative;
    inset: auto;
  }

  .mascot svg {
    width: min(100%, 220px);
  }

  .btn {
    font-size: 13px;
    letter-spacing: 0.04em;
    font-weight: 700;
    text-transform: uppercase;
  }

  .kicker,
  .catalog__meta,
  .card__tag,
  .card__installs {
    font-size: 12px;
    letter-spacing: 0.03em;
    font-weight: 600;
  }
}

@media (max-width: 720px) {
  .hero__grid,
  .cards,
  .steps,
  .tools,
  .whys,
  .foot__grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    display: grid;
  }

  .hero__grid {
    padding: 12px 0 24px;
    gap: 12px;
  }

  .hero__copy {
    order: 1;
    text-align: center;
  }

  .stage {
    order: 0;
    width: min(168px, 46vw);
    margin: 4px auto 2px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.08;
    margin-inline: auto;
  }

  .hero__lead--desk {
    display: none;
  }

  .hero__lead--m {
    display: block;
    max-width: 28ch;
    margin: 10px auto 0;
    font-size: 15px;
    line-height: 1.35;
  }

  .hero__actions {
    margin-top: 16px;
    flex-direction: column;
  }

  .section {
    padding: 48px 0;
  }

  .hero__actions .btn,
  .cta-band .btn {
    width: 100%;
    min-height: 48px;
  }

  .catalog__chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -8px 16px;
    padding: 4px 8px 10px;
    scroll-snap-type: x proximity;
  }

  .catalog__chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: none;
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    scroll-snap-align: start;
  }

  .card h3 {
    font-size: 22px;
  }

  .card h3 a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .card .btn {
    min-height: 48px;
  }

  .catalog__more {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .catalog__more .btn {
    width: 100%;
    min-height: 48px;
  }
}

/* ---------- cookies ---------- */

.cookies {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 80;
  display: none;
  width: min(252px, calc(100vw - 24px));
  pointer-events: none;
}

.cookies.is-on {
  display: block;
}

.cookies__box {
  display: grid;
  gap: 8px;
  padding: 10px 10px 8px;
  background: var(--paper);
  border: 3px solid var(--k);
  box-shadow: 4px 4px 0 var(--k);
  pointer-events: auto;
}

.cookies__kicker {
  margin-bottom: 3px;
  font-family: var(--font-pixel);
  font-size: 7px;
}

.cookies__copy p {
  color: var(--mute);
  font-size: 12px;
  line-height: 1.35;
}

.cookies__copy a {
  text-decoration: underline;
}

.cookies__actions {
  display: flex;
  gap: 6px;
}

.cookies__actions .btn {
  flex: 1;
  min-height: 32px;
  padding: 0 6px;
  font-size: 7px;
  box-shadow: 2px 2px 0 var(--k);
}

.chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 12px;
  font-size: 14px;
  color: var(--k-2);
}

.chk input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--y);
  flex: none;
}

.chk a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --y: #ffd400;
  --y-hot: #ffcd00;
  --y-soft: #ffd400;
  --y-pale: #2a1810;
  --k: #f3ead8;
  --k-2: #cbbba4;
  --w: #0c0b0b;
  --paper: #161210;
  --mute: #a89888;
  --mascot-ink: #ff2a2a;
  --mascot-fill: #14080a;
  --mascot-hi: #4a141c;
  --mascot-shade: #7a0c14;
  --mascot-eye: #ff1a1a;
  --mascot-pupil: #1a0000;
  --mascot-white: #ffd0d0;
  --evil: #ff1f1f;
}

html[data-theme="dark"] .btn,
html[data-theme="dark"] .section--yellow,
html[data-theme="dark"] .plan:not(.plan--on) {
  --k: #111111;
  --k-2: #242424;
  --mute: #5c5c5c;
  --paper: #fffef8;
  color: #111111;
}

html[data-theme="dark"] .nav {
  --nav-bg: #12080a;
  --nav-fg: #f3ead8;
  --nav-line: #ff1f1f;
  --nav-hair: #3a1218;
}

html[data-theme="dark"] .nav.is-stuck {
  box-shadow: 0 6px 0 rgba(255, 31, 31, 0.28);
}

html[data-theme="dark"] .nav .brand__bg {
  fill: #ffd400;
}

html[data-theme="dark"] .nav .brand__fg {
  fill: #12080a;
}

html[data-theme="dark"] .nav .nav__links a:hover {
  color: #ffd400;
}

html[data-theme="dark"] .nav .nav__links a::after {
  background: #ffd400;
}

html[data-theme="dark"] .nav .nav__burger {
  background: #1a1012;
  color: #f3ead8;
  border-color: #ff1f1f;
  box-shadow: 3px 3px 0 #5a0008;
}

html[data-theme="dark"] .nav .nav__lang-picks button {
  background: #1a1012;
  color: #f3ead8;
  border-color: #ff1f1f;
}

html[data-theme="dark"] .nav .nav__lang-picks button.is-on,
html[data-theme="dark"] .nav .nav__lang-picks button:hover {
  background: #ffd400;
  color: #111;
}

html[data-theme="dark"] .auth__brand .brand__bg {
  fill: #ffd400;
}

html[data-theme="dark"] .auth__brand .brand__fg {
  fill: #12080a;
}

html[data-theme="dark"] body {
  background-image: radial-gradient(rgba(255, 31, 31, 0.16) 1px, transparent 1px);
}

html[data-theme="dark"] .theme-btn__bg {
  fill: #14080a;
}

html[data-theme="dark"] .theme-btn__eye,
html[data-theme="dark"] .theme-btn__mouth {
  fill: #ff1a1a;
}

html[data-theme="dark"] .hero-fold {
  background: #12080a;
}

html[data-theme="dark"] .hero {
  background: #12080a;
  background-image:
    linear-gradient(rgba(255, 31, 31, 0.14) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 31, 31, 0.14) 2px, transparent 2px);
  background-size: 24px 24px;
}

html[data-theme="dark"] .hero h1 {
  color: var(--k);
}

html[data-theme="dark"] .hero h1 em {
  background: var(--evil);
  color: #12080a;
}

html[data-theme="dark"] .hero__lead {
  color: #f3ead8;
}

html[data-theme="dark"] .term {
  background: #141010;
  color: var(--y);
  border-color: #000;
}

html[data-theme="dark"] .term__bar {
  color: #f3ead8;
}

html[data-theme="dark"] .stage__screen {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 40, 40, 0.14),
      rgba(255, 40, 40, 0.14) 2px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(#1a080c, #2e0008);
}

html[data-theme="dark"] .stage__frame {
  border-color: var(--evil);
  box-shadow: 8px 8px 0 #5a0008;
}

html[data-theme="dark"] .stage__top {
  background: #2a0008;
  color: var(--evil);
}

html[data-theme="dark"] .stage__dots i {
  background: var(--evil);
}

html[data-theme="dark"] .stage__top b {
  font-size: 0;
}

html[data-theme="dark"] .stage__top b::after {
  content: "CLOD.BAD";
  font-size: 8px;
  color: var(--evil);
}

html[data-theme="dark"] .stage__tag {
  color: var(--evil);
}

html[data-theme="dark"] .mascot__cute {
  display: none;
}

html[data-theme="dark"] .mascot__evil {
  display: block;
}

html[data-theme="dark"] .mascot .eye {
  filter: drop-shadow(0 0 5px #ff1a1a);
}

html[data-theme="dark"] .file {
  --file-bg: #0c0608;
  --file-fg: #f3ead8;
  --file-mark: #ff1f1f;
  border-color: var(--evil);
  box-shadow: 3px 3px 0 #5a0008;
}

html[data-theme="dark"] .bubble {
  background: #0c0608;
  color: #f3ead8;
  border-color: var(--evil);
  box-shadow: 3px 3px 0 #5a0008;
}

html[data-theme="dark"] .bubble::after {
  border-right-color: var(--evil);
  border-bottom-color: var(--evil);
}

html[data-theme="dark"] .marquee {
  background: #1a0004;
  color: var(--evil);
  border-bottom-color: var(--evil);
}

html[data-theme="dark"] .section__head h2 em {
  background: var(--evil);
  color: #12080a;
}

html[data-theme="dark"] .section--yellow .section__head h2 em {
  background: var(--paper);
  color: var(--k);
}

html[data-theme="dark"] .foot {
  background: #0a0606;
}

html[data-theme="dark"] .foot p,
html[data-theme="dark"] .foot li {
  color: #c4b8a8;
}

html[data-theme="dark"] .foot__copy {
  border-top-color: #3a1218;
}

html[data-theme="dark"] input,
html[data-theme="dark"] .catalog__q {
  color: var(--k);
}

html[data-theme="dark"] .modal {
  background: rgba(10, 0, 0, 0.72);
}

@media (max-width: 960px) {
  .nav .wrap {
    width: min(var(--max), calc(100% - 24px));
  }

  .nav__bar {
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand__mark {
    width: 22px;
    height: 22px;
  }

  .nav__tools > [data-lang-slot],
  .nav__tools > .lang {
    display: none;
  }

  .nav.is-open .nav__links .nav__lang {
    display: block;
    padding: 12px 16px 16px;
    border-top: 3px solid var(--nav-hair);
  }

  .nav__tools {
    gap: 6px;
    flex: none;
  }

  .nav__tools .btn,
  .nav__burger {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0;
    font-size: 8px;
  }

  .btn.nav__account {
    width: auto;
    min-width: 76px;
    padding: 0 12px;
    font-size: 13px;
    letter-spacing: 0.04em;
    font-weight: 700;
  }

  .nav__tools .theme-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}
