/* Axon Hub — clean, flat dark style: black page, grey rounded tiles, solid pill buttons, one typeface. No glows. */

:root {
  --bg: #000;
  --card: #161617;
  --card-2: #1c1c1e;
  --line: #262628;
  --fg: #f5f5f7;
  --muted-fg: #86868b;
  --accent: #9b5cf6;
  --accent-rgb: 155, 92, 246;
  --accent-text: #b48cff;
  --green: #30d158;
  --amber: #e9c487;

  --f-body: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --wide: 1152px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/24px var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Site-wide background: a fine square grid fixed behind every page, one line on the centre of the screen.
   It stays put while the page scrolls, and the grey cards cover it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: calc(50% + 28px) 0;
  /* its own GPU layer: scrolling never repaints it */
  transform: translateZ(0);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
/* even line lengths on headlines and lead text (no single word left on the last line) */
h1, h2, h3, .hero__sub, .section__head p, .page__sub { text-wrap: balance; }
/* long words (German, Filipino...) break instead of pushing the page sideways on small phones */
h1, h2, h3, p, li { overflow-wrap: break-word; }
@media (max-width: 479px) { h1, h2 { hyphens: auto; -webkit-hyphens: auto; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
section[id] { scroll-margin-top: 72px; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.accent { color: var(--accent-text); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Nav: a thin full-width bar, content on the same 1152px grid as the page ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
/* phones and tablets: a solid bar instead of a live blur, which costs a repaint every scroll frame */
@media (hover: none), (pointer: coarse) {
  .nav { background: rgba(10, 10, 11, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav:has(.nav__mobile:not([hidden])) { background: rgba(0, 0, 0, .96); }
.nav__pill { display: flex; align-items: center; width: 100%; max-width: var(--wide); height: 48px; }
/* nothing in the bar may shrink or wrap, so app.js can tell when it stops fitting */
.nav__pill > *, .nav__links a { flex-shrink: 0; white-space: nowrap; }
.nav__logo { display: flex; align-items: center; height: 48px; padding-right: 16px; }
.nav__logo img { width: 24px; height: 24px; transform: scale(1.5); }
.nav__links { display: flex; align-items: center; margin: 0 auto; }
.nav__links a {
  padding: 0 14px;
  font-size: 13px;
  line-height: 48px;
  color: rgba(245, 245, 247, .72);
  transition: color .2s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__sep { display: none; }
.nav__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: -7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.nav__menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.nav__mobile { display: grid; width: 100%; max-width: var(--wide); padding: 8px 0 28px; }
.nav__mobile a {
  padding: 8px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -.015em;
  color: var(--fg);
  transition: color .2s var(--ease);
}
.nav__mobile a:hover, .nav__mobile a.is-active { color: var(--accent-text); }

/* Language switch */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 0 0 8px;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, .72);
  font: 400 13px/20px var(--f-body);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { color: var(--fg); }
.lang__current { display: inline-flex; align-items: center; gap: 8px; }
.lang__code { font-size: 13px; font-weight: 500; }
.flag { flex-shrink: 0; width: 18px; height: 13.5px; border-radius: 2px; stroke: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.lang__chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  /* 16 languages: scroll inside the menu on short screens */
  max-height: calc(100vh - 72px);
  max-height: calc(100svh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.lang__menu.is-open { opacity: 1; transform: none; }
.lang__label { padding: 6px 10px 4px; font-size: 12px; font-weight: 600; line-height: 18px; color: var(--muted-fg); }
.lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font: 400 14px/20px var(--f-body);
  text-align: left;
  cursor: pointer;
}
.lang__item:hover, .lang__item:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.lang__check { width: 14px; height: 14px; margin-left: auto; color: var(--accent-text); fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.lang__item[aria-checked="true"] .lang__check { visibility: visible; }

/* app.js adds .is-compact when the links don't fit on one line (depends on the language) */
.nav.is-compact .nav__links { display: none; }
.nav.is-compact .lang { margin-left: auto; }
.nav.is-compact .nav__menu { display: flex; }

/* ---------- Buttons ----------
   Depth instead of glow: a slight top-to-bottom tone, a 1px light edge on top, a crisp outline
   and a neutral drop shadow. Hover brightens, press sinks 1px, trailing arrows slide. */
.btn, .btn-block, .pbtn, .code__copy {
  --btn-bg: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
  --btn-bg-hover: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .07));
  --btn-edge: rgba(255, 255, 255, .11);
  --btn-edge-hover: rgba(255, 255, 255, .2);
  --btn-top: rgba(255, 255, 255, .09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  background: var(--btn-bg);
  box-shadow: inset 0 0 0 1px var(--btn-edge), inset 0 1px 0 var(--btn-top), 0 1px 2px rgba(0, 0, 0, .5), 0 6px 16px -8px rgba(0, 0, 0, .7);
  color: var(--fg);
  font: 600 15px/20px var(--f-body);
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow .2s var(--ease), color .2s var(--ease), transform .12s var(--ease);
}
/* the hover tone fades in on a layer underneath the label (gradients can't transition directly) */
.btn::before, .btn-block::before, .pbtn::before, .code__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-bg-hover);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.btn, .btn-block, .pbtn, .code__copy { position: relative; isolation: isolate; }
.btn:hover, .btn-block:hover, .pbtn:hover, .code__copy:hover { box-shadow: inset 0 0 0 1px var(--btn-edge-hover), inset 0 1px 0 var(--btn-top), 0 1px 2px rgba(0, 0, 0, .5), 0 8px 20px -8px rgba(0, 0, 0, .8); }
.btn:hover::before, .btn-block:hover::before, .pbtn:hover::before, .code__copy:hover::before { opacity: 1; }
.btn:active, .btn-block:active, .pbtn:active, .code__copy:active { transform: translateY(1px); }
.btn .icon, .btn-block .icon, .pbtn .icon { width: 17px; height: 17px; flex-shrink: 0; transition: transform .2s var(--ease); }
.icon--fill { fill: currentColor; stroke: none; }
/* trailing arrows slide toward where they point */
.btn:hover .btn__arrow, .btn-block:hover .icon:last-child, .pbtn:hover .icon:last-child { transform: translateX(3px); }
.pick__go .icon { transition: transform .2s var(--ease); }
.pick__row:hover .pick__go .icon { transform: translate(2px, -2px); }

/* primary: violet, same depth recipe */
.btn--primary, .btn-block, .code__copy {
  --btn-bg: linear-gradient(180deg, #9455f7, #7a3ae6);
  --btn-bg-hover: linear-gradient(180deg, #a067fa, #8445ee);
  --btn-edge: rgba(84, 30, 180, .9);
  --btn-edge-hover: rgba(84, 30, 180, .9);
  --btn-top: rgba(255, 255, 255, .28);
  color: #fff;
}
.btn-block, .pbtn { display: flex; width: 100%; height: 44px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 16px 0;
}
.hero__inner { max-width: 896px; margin: 0 auto; text-align: center; }
/* hero entrance (once, on load) */
@keyframes hero-logo-in { from { opacity: 0; transform: scale(.94); } }
@keyframes hero-up { from { opacity: 0; transform: translateY(12px); } }
.hero__logo { animation: hero-logo-in 1s var(--ease) backwards; }
.hero__sub { animation: hero-up .9s .12s var(--ease) backwards; }
.hero__buttons { animation: hero-up .9s .22s var(--ease) backwards; }

/* Hero logo: on hover it lifts a little and tilts toward the cursor (app.js sets --rx / --ry).
   The PNG has ~20% transparent padding, so the negative bottom margin keeps the gap to the text even. */
.hero__logo {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto -8px;
  perspective: 800px;
  transition: transform .6s var(--ease);
}
.hero__logo:hover { transform: translateY(-4px) scale(1.03); }
.hero__logo img {
  width: 100%;
  height: 100%;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease);
}
.hero__logo.is-tracking img { transition: transform .12s ease-out; }
.hero__sub {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 21px;
  line-height: 1.38;
  color: var(--muted-fg);
}
.hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 96px 16px; }
.section--stats { padding-top: 0; padding-bottom: 0; }
.container { max-width: var(--wide); margin: 0 auto; }
.section__head { margin-bottom: 48px; text-align: center; }
.section__head h2 { font-size: 48px; font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.section__head p { max-width: 560px; margin: 12px auto 0; font-size: 19px; line-height: 1.42; color: var(--muted-fg); }
.eyebrow, .section__head .eyebrow { max-width: none; margin: 0 0 10px; font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--accent-text); }

/* Why Axon: four short tiles */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.why__card { padding: 40px; border-radius: 24px; background: var(--card); }
.why__icon { display: block; width: 40px; height: 40px; margin-bottom: 24px; color: var(--accent-text); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why__card h3 { margin-bottom: 8px; font-size: 28px; font-weight: 700; line-height: 1.14; letter-spacing: -.02em; }
.why__card p { max-width: 420px; font-size: 17px; line-height: 1.47; color: var(--muted-fg); }

/* Stats */
.status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.status__dot span { display: none; }
.status__text { font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { padding: 32px 24px; border-radius: 24px; background: var(--card); text-align: center; }
.stat__value { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.stat__label { margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 20px; }
.stat__meta { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted-fg); }

/* Games */
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* tiles off screen are skipped by the browser until they scroll near (70 tiles, so this matters on phones) */
.game { display: block; overflow: hidden; border-radius: 20px; background: var(--card); content-visibility: auto; contain-intrinsic-size: auto 260px; }
.game__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--card-2); }
.game__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.game:hover .game__media img { transform: scale(1.03); }
.game__caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 16px; }
.game__name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.game__caption .icon { flex-shrink: 0; color: var(--muted-fg); transition: color .2s var(--ease), transform .2s var(--ease); }
.game:hover .game__caption .icon { color: var(--fg); transform: translate(2px, -2px); }

/* Footer */
.footer {
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line);
}
.footer__inner { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: var(--wide); margin: 0 auto; }
.footer__inner img { width: 20px; height: 20px; transform: scale(1.5); }
.footer__inner span { font-size: 12px; line-height: 16px; color: var(--muted-fg); }

/* ---------- Inner pages (Get Key / Premium / Terms) ---------- */
.page { max-width: 1024px; margin: 0 auto; padding: 104px 24px 80px; }
.page--narrow { max-width: 896px; }
.page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  font-size: 14px;
  line-height: 20px;
  color: var(--accent-text);
}
.page__back:hover { text-decoration: underline; }
.page__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page__head { margin-bottom: 56px; text-align: center; }
.page__title { margin-bottom: 12px; font-size: 56px; font-weight: 700; line-height: 1.07; letter-spacing: -.03em; }
.page__sub { max-width: 520px; margin: 0 auto; font-size: 19px; line-height: 1.42; color: var(--muted-fg); }

.glass { background: var(--card); }

/* Premium offer (Get Key) */
.offer { margin-bottom: 56px; padding: 40px; border-radius: 24px; }
.offer__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: center; }
.tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 980px;
  background: rgba(var(--accent-rgb), .16);
  color: var(--accent-text);
  font: 600 12px/16px var(--f-body);
}
.tagline .icon { width: 13px; height: 13px; }
.offer__title { margin-bottom: 8px; font-size: 32px; font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.offer__desc { margin-bottom: 24px; font-size: 17px; line-height: 1.47; color: var(--muted-fg); }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 20px; }
.ticks svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--accent-text); fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ticks--col { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.offer__cta { display: grid; gap: 10px; }
.offer__note { font-size: 12px; line-height: 16px; text-align: center; color: var(--muted-fg); }

/* Blocks */
.block + .block { margin-top: 56px; }
.block__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 16px; margin-bottom: 20px; }
.block__title { font-size: 24px; font-weight: 700; line-height: 1.17; letter-spacing: -.02em; }
.block__title--lg { font-size: 28px; }
.block__sub { margin-top: 4px; font-size: 15px; line-height: 20px; color: var(--muted-fg); }
.block__meta { font-size: 15px; line-height: 20px; color: var(--muted-fg); white-space: nowrap; }

/* Reseller / method cards */
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; padding: 28px; border-radius: 24px; background: var(--card); }
.pcard__body { display: flex; flex: 1; flex-direction: column; }
.pcard__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.pcard__name { font-size: 21px; font-weight: 700; line-height: 28px; letter-spacing: -.02em; }
.pcard__heading { margin-bottom: 16px; }
/* which plans a reseller sells, under its name (40px avatar + 12px gap) */
.pcard__plans { margin: -4px 0 20px 52px; font-size: 13px; line-height: 18px; color: var(--muted-fg); }
.pcard__meta { margin-bottom: 8px; font-size: 13px; font-weight: 600; line-height: 18px; color: var(--accent-text); }
.pcard__desc { flex: 1; margin-bottom: 24px; font-size: 15px; line-height: 1.47; color: var(--muted-fg); }
/* Linkvertise logo (Get Key): the SVG has ~5px of built-in padding at this size */
.pcard__logo { display: block; width: auto; height: 36px; margin-left: -5px; }
.avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), .16);
  color: var(--accent-text);
  font: 600 17px/1 var(--f-body);
}
.pill {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 980px;
  background: rgba(255, 255, 255, .08);
  color: var(--muted-fg);
  font: 600 12px/18px var(--f-body);
  white-space: nowrap;
}
.pill--ok { background: rgba(48, 209, 88, .14); color: var(--green); }

/* Seller picker (Premium "Buy now") */
.pick { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pick__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  transition: background-color .2s var(--ease);
}
.pick__row:hover, .pick__row:focus-visible { background: rgba(255, 255, 255, .1); }
.pick__row .rlogo { width: 40px; height: 40px; border-radius: 10px; }
.pick__name { display: grid; min-width: 0; }
.pick__name b { overflow: hidden; font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.pick__name small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--green); }
.pick__name small .icon { width: 12px; height: 12px; }
.pick__go { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--accent-text); }

/* Reseller cards (Premium): logo, name, instant delivery, plans, payment methods, Visit */
.rlogo { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--card-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.rlogo--letter { display: flex; align-items: center; justify-content: center; background: rgba(var(--accent-rgb), .16); color: var(--accent-text); font-size: 19px; font-weight: 700; }
.rcard { display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: var(--card); }
.rcard__top { display: flex; align-items: center; gap: 14px; }
.rcard__id { min-width: 0; flex: 1; }
.rcard__name { overflow: hidden; font-size: 19px; font-weight: 700; line-height: 24px; letter-spacing: -.015em; white-space: nowrap; text-overflow: ellipsis; }
.rcard__auto { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 18px; color: var(--green); }
.rcard__auto .icon { width: 13px; height: 13px; }
.rcard__top .pill { align-self: flex-start; margin-left: 0; }
.rcard__plans { margin-top: 16px; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--fg); }
.rcard__pay { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 20px; padding: 0; list-style: none; }
.rcard__pay li { padding: 3px 10px; border-radius: 980px; background: rgba(255, 255, 255, .06); font-size: 12px; font-weight: 500; line-height: 18px; color: var(--muted-fg); }
.rcard__cta { display: grid; gap: 10px; margin-top: auto; }
.rcard__mirror { justify-self: center; font-size: 13px; line-height: 18px; color: var(--muted-fg); text-decoration: underline; text-underline-offset: 3px; }
.rcard__mirror:hover { color: var(--fg); }

/* Numbered steps */
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 24px; color: var(--muted-fg); }
.steps__n {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--fg);
  font: 600 12px/1 var(--f-body);
}
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mini { padding: 24px; border-radius: 20px; background: var(--card); }
.mini .steps__n { margin-bottom: 14px; }
.mini p { font-size: 15px; line-height: 1.47; color: var(--muted-fg); }

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(245, 194, 107, .08);
  font-size: 14px;
  line-height: 20px;
  color: var(--amber);
}
.note svg { flex-shrink: 0; margin-top: 2px; }
.note strong { color: #f5d39c; font-weight: 600; }

/* Small game tiles (Get Key) */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { min-width: 0; overflow: hidden; border-radius: 14px; background: var(--card); content-visibility: auto; contain-intrinsic-size: auto 150px; }
.tile__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--card-2); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__name {
  display: -webkit-box;
  overflow: hidden;
  padding: 8px 10px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: rgba(245, 245, 247, .86);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

/* Premium plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 24px; background: var(--card); }
.plan--best { box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .7); }
.plan__tag { position: absolute; top: 28px; right: 24px; margin: 0; }
.plan__name { font-size: 21px; font-weight: 700; line-height: 28px; letter-spacing: -.02em; }
.plan__price { margin-top: -8px; font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.plan .plan__buy { margin-top: auto; }

/* ---------- Creator program ---------- */
/* hero: pitch left, pay staircase right */
.crhero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 56px; }
.crhero__title { margin-bottom: 16px; font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.crhero__sub { max-width: 460px; margin-bottom: 28px; font-size: 19px; line-height: 1.42; color: var(--muted-fg); }
.crhero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn:hover .btn__down { transform: translateY(2px); }

/* pay staircase: one bar per tier, height = share of the top payout (--r from app.js) */
.chart { --chart-h: 180px; margin: 0; padding: 32px 32px 24px; border-radius: 28px; background: var(--card); }
.chart__title { font-size: 15px; font-weight: 600; line-height: 20px; color: var(--muted-fg); }
.chart__bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; height: calc(var(--chart-h) + 56px); margin: 20px 0 0; padding: 0; list-style: none; }
.chart__bars li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.chart__pay { font-size: 15px; font-weight: 700; line-height: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart__bar {
  width: 100%;
  height: max(6px, calc(var(--r) * var(--chart-h)));
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .95), rgba(var(--accent-rgb), .45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.chart__views { font-size: 13px; font-weight: 500; line-height: 16px; color: var(--muted-fg); white-space: nowrap; }
.chart__note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; line-height: 20px; color: var(--accent-text); }
/* bars rise one after the other when the chart scrolls in */
.js .chart[data-reveal] .chart__bar { transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease) calc(var(--i, 0) * 90ms + .15s); }
.js .chart.is-in .chart__bar { transform: none; }

/* three key numbers */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
.fact { padding: 28px; border-radius: 24px; background: var(--card); }
.fact__v { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact__l { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--muted-fg); }

/* calculator: two sliders left, results right */
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; border-radius: 28px; background: var(--card); }
.calc__main { padding: 40px; }
.calc__side { display: flex; flex-direction: column; padding: 40px; border-left: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.calc__title { margin-bottom: 6px; font-size: 28px; font-weight: 700; line-height: 1.14; letter-spacing: -.025em; }
.calc__sub { margin-bottom: 32px; font-size: 15px; line-height: 22px; color: var(--muted-fg); }
.field + .field { margin-top: 28px; }
.field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field__head label { font-size: 15px; font-weight: 600; line-height: 20px; }
.field__head output { font-size: 17px; font-weight: 700; line-height: 20px; color: var(--accent-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.result + .result { margin-top: 20px; }
.result__l { font-size: 15px; line-height: 20px; color: var(--muted-fg); }
.result__v { margin-top: 4px; font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.result--big .result__v { font-size: 64px; }
.calc__next { min-height: 44px; margin-top: 20px; font-size: 15px; line-height: 22px; color: var(--muted-fg); }
.calc__next b { color: var(--fg); font-weight: 600; }
.calc__note { margin-top: auto; padding-top: 16px; font-size: 12px; line-height: 16px; color: var(--muted-fg); }

/* sliders: the filled part of the track follows --p (set by app.js) */
.range__input {
  --p: 50%;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.range__input::-webkit-slider-runnable-track { height: 6px; border-radius: 980px; background: linear-gradient(90deg, var(--accent) var(--p), rgba(255, 255, 255, .12) var(--p)); }
.range__input::-moz-range-track { height: 6px; border-radius: 980px; background: rgba(255, 255, 255, .12); }
.range__input::-moz-range-progress { height: 6px; border-radius: 980px; background: var(--accent); }
.range__input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .08);
  -webkit-appearance: none;
  appearance: none;
  transition: transform .15s var(--ease);
}
.range__input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.range__input:active::-webkit-slider-thumb { transform: scale(1.1); }
.range__input:focus-visible { outline: none; }
.range__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
/* tick labels sit under the thumb's centre: the thumb travels from 12px to (100% - 12px) */
.range__ticks { position: relative; height: 22px; margin: 4px 12px 0; }
.range__ticks button {
  position: absolute;
  top: 0;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--muted-fg);
  font: 500 12px/18px var(--f-body);
  white-space: nowrap;
  transform: translateX(-50%);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.range__ticks button:hover, .range__ticks button.is-on { color: var(--fg); }

/* how it works: three tiles with an icon */
.calc + .block { margin-top: 56px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.flow__step { position: relative; padding: 24px; border-radius: 24px; background: var(--card); }
.flow__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 14px; background: rgba(var(--accent-rgb), .16); color: var(--accent-text); }
.flow__icon .icon { width: 22px; height: 22px; }
.flow__n { position: absolute; top: 24px; right: 24px; font-size: 13px; font-weight: 600; line-height: 20px; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.flow__step h3 { margin-bottom: 6px; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.flow__step p { font-size: 15px; line-height: 1.47; color: var(--muted-fg); }

/* rules + questions side by side */
.crgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 20px; align-items: start; margin-top: 56px; }
.crgrid .block + .block { margin-top: 0; }
.rules { padding: 28px; border-radius: 24px; background: var(--card); }
.rules li { align-items: flex-start; font-size: 15px; line-height: 22px; }
.rules svg { margin-top: 3px; }
.faq { padding: 4px 28px; border-radius: 24px; background: var(--card); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex-shrink: 0; color: var(--muted-fg); transition: transform .25s var(--ease), color .2s var(--ease); }
.faq summary:hover .icon { color: var(--fg); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; font-size: 15px; line-height: 1.5; color: var(--muted-fg); }

.cta { margin-top: 56px; padding: 56px 24px; border-radius: 28px; background: var(--card); text-align: center; }
.cta__title { margin-bottom: 10px; font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.cta__sub { max-width: 460px; margin: 0 auto 28px; font-size: 17px; line-height: 1.47; color: var(--muted-fg); text-wrap: balance; }

/* Popups (Get Script, seller picker) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
@media (hover: none), (pointer: coarse) {
  .modal__backdrop { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.modal__card {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 24px;
  background: var(--card-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.modal.is-open .modal__backdrop, .modal.is-open .modal__card { opacity: 1; transform: none; }
.has-modal { overflow: hidden; }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--muted-fg);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: rgba(255, 255, 255, .14); color: var(--fg); }
.modal__close .icon { width: 14px; height: 14px; }
.modal__title { margin-bottom: 12px; padding-right: 40px; font-size: 28px; font-weight: 700; line-height: 1.14; letter-spacing: -.025em; }
.modal__status { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 500; line-height: 20px; }
.modal__status:empty { display: none; }
.modal__status.is-ok { color: var(--green); }
.modal__status.is-warn { color: var(--amber); }
.modal__desc { margin-bottom: 20px; font-size: 15px; line-height: 1.47; color: var(--muted-fg); }
.code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.code__text {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  font: 400 12.5px/20px var(--f-mono);
  color: var(--fg);
  white-space: nowrap;
  scrollbar-width: none;
}
.code__text::-webkit-scrollbar { display: none; }
.code__copy { flex-shrink: 0; gap: 6px; height: 34px; padding: 0 14px; font-size: 13px; }
.code__copy .icon { width: 15px; height: 15px; }
.code__copy.is-done {
  --btn-bg: rgba(48, 209, 88, .16);
  --btn-bg-hover: rgba(48, 209, 88, .16);
  --btn-edge: rgba(48, 209, 88, .3);
  --btn-edge-hover: rgba(48, 209, 88, .3);
  --btn-top: transparent;
  color: var(--green);
}
.modal .steps { margin-bottom: 20px; }
.modal__note { margin-top: 12px; font-size: 12px; line-height: 16px; text-align: center; color: var(--muted-fg); }

/* Free-key gate: one task card (join the Discord) with a 4s bar, then the Linkvertise button unlocks */
.task {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
}
.task__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #5865f2; color: #fff; }
.task__icon .icon { width: 22px; height: 22px; }
.task__name { font-size: 15px; font-weight: 600; line-height: 20px; }
.task__state { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted-fg); }
.task .task__go { height: 36px; padding: 0 14px; font-size: 14px; }
.task__check { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(48, 209, 88, .16); color: var(--green); }
.task__check .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.task__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); }
.task__bar i { display: block; width: 0; height: 100%; background: var(--accent); }
.task.is-wait .task__state { color: var(--accent-text); }
.task.is-wait .task__go { opacity: .5; pointer-events: none; }
.task.is-wait .task__bar i { width: 100%; transition: width 4s linear; }
.task.is-done .task__state { color: var(--green); }
.task.is-done .task__go { display: none; }
.task.is-done .task__check { display: flex; }
.task.is-done .task__bar i { width: 100%; background: var(--green); }
/* locked until the task is done */
.btn-block[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn-block[aria-disabled="true"]:hover::before { opacity: 0; }
.btn-block[aria-disabled="true"]:active { transform: none; }

/* Terms */
.legal__title { margin-bottom: 16px; font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.legal__intro { margin-bottom: 48px; font-size: 17px; line-height: 1.47; color: var(--muted-fg); }
.legal__updated { display: block; margin-bottom: 4px; color: var(--fg); font-weight: 500; }
.legal section + section { margin-top: 40px; }
.legal h2 { margin-bottom: 12px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.legal ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--muted-fg); }
.legal li::marker { color: var(--accent-text); }

/* ---------- Motion: fade up on scroll; .why__card and .game step in column by column (--d from the markup / app.js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .why__card[data-reveal], .js .game[data-reveal] { transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero__logo { width: 208px; height: 208px; margin-bottom: -6px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .crhero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__side { border-left: 0; border-top: 1px solid var(--line); }
  .crgrid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .page { padding: 88px 16px 56px; }
  .page__back { margin-bottom: 28px; }
  .page__head { margin-bottom: 40px; }
  .page__title { font-size: 40px; }
  .page__sub { font-size: 17px; }
  .offer { margin-bottom: 40px; padding: 28px 20px; border-radius: 20px; }
  .offer__title { font-size: 26px; }
  .offer__desc { font-size: 15px; }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .cards2, .steps3, .plans { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pcard, .plan, .rcard { padding: 22px; border-radius: 20px; }
  .plan__tag { top: 22px; right: 18px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .legal__title { font-size: 32px; }
  .crhero { margin-bottom: 40px; }
  .crhero__title { font-size: 40px; }
  .crhero__sub { font-size: 17px; }
  .crhero__actions .btn { flex: 1 1 auto; }
  .chart { --chart-h: 140px; padding: 24px 20px 20px; border-radius: 20px; }
  .chart__bars { gap: 8px; }
  .chart__pay { font-size: 13px; }
  .chart__views { font-size: 12px; }
  .facts { gap: 14px; margin-bottom: 40px; }
  .fact { padding: 20px; border-radius: 20px; }
  .fact__v { font-size: 30px; }
  .fact__l { font-size: 13px; }
  .calc { border-radius: 20px; }
  .calc__main, .calc__side { padding: 28px 20px; }
  .calc__title { font-size: 24px; }
  .result__v { font-size: 36px; }
  .result--big .result__v { font-size: 52px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .flow__step { padding: 22px; border-radius: 20px; }
  .flow__n { top: 22px; right: 22px; }
  .crgrid { gap: 40px; margin-top: 40px; }
  .rules, .faq { border-radius: 20px; }
  .rules { padding: 22px; }
  .faq { padding: 2px 22px; }
  .calc + .block, .block + .block { margin-top: 40px; }
  .cta { margin-top: 40px; padding: 40px 20px; border-radius: 20px; }
  .cta__title { font-size: 30px; }
  .cta .btn { width: 100%; }
  .modal__card { padding: 24px; border-radius: 20px; }

  .hero__logo { width: 168px; height: 168px; margin-bottom: -4px; }
  .hero__sub { margin-bottom: 32px; font-size: 17px; }
  /* 2 x 2 instead of 3 + 1 orphan */
  .hero__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; margin: 0 auto; }
  .hero__buttons .btn { width: 100%; }
  .section { padding: 72px 16px; }
  .section--stats { padding-top: 0; padding-bottom: 0; }
  .section__head { margin-bottom: 36px; }
  .section__head h2 { font-size: 32px; line-height: 1.12; }
  .section__head p { font-size: 17px; }
  .eyebrow, .section__head .eyebrow { font-size: 17px; }
  .why { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .why__card { padding: 28px; border-radius: 20px; }
  .why__icon { width: 34px; height: 34px; margin-bottom: 20px; }
  .why__card h3 { font-size: 24px; }
  .why__card p { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .stat { padding: 24px 16px; border-radius: 20px; }
  .stat__value { font-size: 32px; }
  .games { gap: 14px; }
  .game { border-radius: 18px; }
}
@media (max-width: 639px) {
  .hero__buttons { grid-template-columns: minmax(0, 1fr); }
  /* phones: key numbers as rows, number on the left */
  .facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fact { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
  .fact__v { flex-shrink: 0; min-width: 92px; font-size: 28px; }
  .fact__l { margin-top: 0; font-size: 15px; }
  .games { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* gate task: the Join button gets its own row, the done tick sits in the corner */
  .task { grid-template-columns: auto minmax(0, 1fr); }
  .task .task__go { grid-column: 1 / -1; width: 100%; }
  .task__check { position: absolute; top: 16px; right: 16px; }
}

/* very small phones (iPhone SE 1st gen, small Androids) */
@media (max-width: 359px) {
  .page, .section { padding-left: 12px; padding-right: 12px; }
  .nav { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .page__title, .crhero__title { font-size: 34px; }
  .section__head h2 { font-size: 28px; }
  .why__card, .flow__step, .pcard, .plan { padding: 20px; }
  .calc__main, .calc__side { padding: 24px 16px; }
  .result--big .result__v { font-size: 44px; }
  .chart { padding: 20px 14px 16px; }
  .chart__bars { gap: 6px; }
  .chart__pay { font-size: 12px; }
  .chart__views { font-size: 11px; }
  .fact__v { min-width: 80px; font-size: 24px; }
  .modal__card { padding: 22px 16px; }
  .btn, .btn-block, .pbtn { padding: 0 16px; }
}

/* phones held sideways: keep the hero buttons on the first screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 88px 16px 56px; }
  .hero__logo { width: 132px; height: 132px; margin-bottom: 0; }
  .hero__sub { margin-bottom: 24px; }
  .nav__mobile { max-height: calc(100vh - 48px); overflow-y: auto; }
}

/* touch screens: finger-sized targets, and no hover zoom that sticks after a tap */
@media (pointer: coarse) {
  .lang__btn { height: 44px; }
  .lang__item { height: 44px; }
  .nav__menu { width: 44px; height: 44px; margin-right: -10px; }
  .range__input { height: 36px; }
  .range__input::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -11px; }
  .range__input::-moz-range-thumb { width: 28px; height: 28px; }
  .range__ticks { height: 32px; }
  .range__ticks button { padding: 6px 6px; }
  .modal__close { width: 40px; height: 40px; top: 12px; right: 12px; }
}
@media (hover: none) {
  .game:hover .game__media img, .tile:hover .tile__media img { transform: none; }
  .game:hover .game__caption .icon { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .chart .chart__bar { opacity: 1; transform: none; }
}
