/* =========================================================
   ТОЧНО — carts built to an exact budget
   Design system: obsidian + acid lime, tabular precision
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: #07080b;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(820px 420px at 50% -140px, rgba(201, 247, 90, 0.15), transparent 65%),
    radial-gradient(680px 380px at 88% -60px, rgba(106, 215, 255, 0.09), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(201, 247, 90, 0.05), transparent 60%),
    #07080b;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- tokens ---------- */
:root {
  --bg: #07080b;
  --panel: #0f1218;
  --panel-2: #13171f;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f4f6fa;
  --muted: #98a2b3;
  --dim: #6b7484;
  --lime: #c9f75a;
  --lime-soft: rgba(201, 247, 90, 0.13);
  --lime-ink: #0b0f03;
  --fan: #ff7a45;
  --voidu: #6ad7ff;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- utilities ---------- */
.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 80;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* =========================================================
   header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 70;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: rgba(7, 8, 11, 0.9);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  color: var(--lime);
  filter: drop-shadow(0 0 12px rgba(201, 247, 90, 0.45));
}

.brand__word {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
}

.brand__tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--dim);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 3px 5px;
  transform: translateY(-1px);
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* ---------- store switch ---------- */
.switch {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  flex: none;
}

.switch__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.38s var(--ease);
  will-change: transform;
}

.switch[data-active="voidu"] .switch__thumb { transform: translateX(100%); }

.switch__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 132px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.25s;
}

.switch__btn[aria-selected="true"] { color: #0a0c10; }

.switch__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fan);
  box-shadow: 0 0 10px currentColor;
  color: var(--fan);
  flex: none;
}
.switch__btn[data-store="voidu"] .switch__dot { background: var(--voidu); color: var(--voidu); }

.switch__cur { opacity: 0.55; font-weight: 600; }

/* =========================================================
   hero
   ========================================================= */
.hero {
  padding: calc(var(--header-h) + 76px) 0 0;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.eyebrow__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(201, 247, 90, 0.55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 247, 90, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(201, 247, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 247, 90, 0); }
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(38px, 6.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--lime);
  position: relative;
  white-space: nowrap;
}

.hero__lede {
  max-width: 610px;
  margin: 24px auto 0;
  font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero__hint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--dim);
}

.hero__hint kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; flex: none; }

.btn--primary {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 12px 34px -14px rgba(201, 247, 90, 0.65);
}
.btn--primary:hover { background: #d8ff78; transform: translateY(-1px); box-shadow: 0 16px 38px -14px rgba(201, 247, 90, 0.75); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }

.btn__short { display: none; }

/* subtle entrance for the hero */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero .eyebrow,
.hero h1,
.hero__lede,
.hero__actions,
.hero__hint {
  animation: rise 0.85s var(--ease) both;
}
.hero h1 { animation-delay: 0.06s; }
.hero__lede { animation-delay: 0.13s; }
.hero__actions { animation-delay: 0.2s; }
.hero__hint { animation-delay: 0.27s; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 780px;
  margin: 54px auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
  text-align: left;
}

.stat {
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }

.stat__v {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__k {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.stat__v span { color: var(--lime); }

/* ---------- ticker ---------- */
.ticker {
  margin-top: 54px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  padding: 13px 0;
  animation: marquee 70s linear infinite;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

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

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}

.ticker__item b { color: var(--muted); font-weight: 600; }
.ticker__item i { font-style: normal; color: rgba(201, 247, 90, 0.75); font-variant-numeric: tabular-nums; }
.ticker__sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); flex: none; }

/* =========================================================
   store panels + tier rail
   ========================================================= */
.store[hidden] { display: none; }

/* avoid a flash of the second catalogue before JS boots */
html.js[data-store="fanatical"] .store[data-store-panel="voidu"] { display: none; }
html.js[data-store="voidu"] .store[data-store-panel="fanatical"] { display: none; }

.rail {
  position: sticky;
  top: var(--header-h);
  z-index: 55;
  margin-top: 40px;
  border-block: 1px solid var(--line);
  background: #08090d;
  box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.9);
}

.rail__in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.rail__label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  flex: none;
}

.rail__chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding: 4px 0;
  margin: -4px 0;
}
.rail__chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.chip:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }

.chip small {
  font-size: 10px;
  font-weight: 700;
  color: var(--dim);
  transition: color 0.2s;
}

.chip[aria-current="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}
.chip[aria-current="true"] small { color: rgba(11, 15, 3, 0.55); }

.rail__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: var(--dim);
  flex: none;
}

.rail__right .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fan);
}
.store[data-store-panel="voidu"] .rail__right .dot { background: var(--voidu); }

/* store-level notice (cart limits) */
.store-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0 -14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--dim);
}

.store-note__dot {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--voidu);
  box-shadow: 0 0 10px rgba(106, 215, 255, 0.7);
  flex: none;
}

/* =========================================================
   tiers
   ========================================================= */
.tier {
  padding-top: 54px;
  scroll-margin-top: calc(var(--header-h) + 82px);
}

.tier__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.tier__amount {
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  font-variant-numeric: tabular-nums;
}

.tier__amount span { color: var(--lime); }

.tier__meta {
  text-align: right;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.tier__meta b { color: var(--text); font-weight: 700; }
.tier__meta .dim { color: var(--dim); }

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

/* ---------- card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.008)),
    var(--panel);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 247, 90, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 247, 90, 0.3);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(201, 247, 90, 0.05);
}
.card:hover::before { opacity: 1; }

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.delta[data-tone="tight"] {
  color: var(--lime);
  border-color: rgba(201, 247, 90, 0.26);
  background: var(--lime-soft);
}

.price {
  display: block;
  font-size: clamp(30px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.card__sub {
  margin-top: -9px;
  font-size: 11.5px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 7px;
}

.card__batch { color: var(--muted); }

.card__sub .shop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card__sub .shop::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fan);
}
.store[data-store-panel="voidu"] .card__sub .shop::before { background: var(--voidu); }

/* ---------- items ---------- */
.items { display: flex; flex-direction: column; }

.item {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 9px;
  padding: 9px 8px;
  margin-inline: -8px;
  border-radius: 9px;
  border-top: 1px solid var(--line);
  transition: background 0.18s, color 0.18s;
}
.item:first-child { border-top: 0; }

.item:hover { background: rgba(255, 255, 255, 0.045); }

.item__i {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  align-self: start;
  padding-top: 3px;
}

.item__name {
  font-size: 13px;
  line-height: 1.35;
  color: #dde2ea;
  transition: color 0.18s;
  overflow-wrap: anywhere;
}
.item:hover .item__name { color: var(--lime); }

.item__price {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.item__go {
  font-size: 11px;
  color: var(--lime);
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.18s, transform 0.18s;
}
.item:hover .item__go { opacity: 1; transform: none; }

/* ---------- card actions ---------- */
.card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.card__actions .btn {
  height: 42px;
  font-size: 13px;
  padding: 0 14px;
}
.card__actions .btn--primary { flex: 1; }

.icon-btn {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); border-color: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; }

/* =========================================================
   how it works
   ========================================================= */
.how {
  padding-top: 96px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.section-head { max-width: 620px; }

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 800;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

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

.step {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005)), var(--panel);
}

.step__n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.1em;
}

.step h3 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- notes ---------- */
.notes {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.note {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.note h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.note p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.note p + p { margin-top: 8px; }
.note b { color: var(--text); font-weight: 700; }

.note__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.pill--lime { color: var(--lime); border-color: rgba(201, 247, 90, 0.25); background: var(--lime-soft); }

/* =========================================================
   footer
   ========================================================= */
.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
}

.footer__in {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 12.5px;
}

.footer__brand .brand__mark { width: 22px; height: 22px; filter: none; color: var(--muted); }

.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.footer__links a:hover { color: var(--lime); }

.footer__legal {
  width: 100%;
  padding-top: 22px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.6;
}
.footer__legal p { max-width: 720px; }

/* =========================================================
   queue dialog (positions 1 → 2 → 3)
   ========================================================= */
.queue {
  width: min(560px, calc(100% - 32px));
  max-height: min(88svh, 780px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: #0c0f14;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}

.queue::backdrop {
  background: rgba(3, 4, 6, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.queue[open] { animation: queueIn 0.28s var(--ease); }

@keyframes queueIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.queue__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 20px 12px;
}

.queue__eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.queue__total {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.queue__count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.queue__x {
  align-self: center;
  width: 30px;
  height: 30px;
  margin-left: 4px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
}
.queue__x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.queue__bar {
  height: 3px;
  margin: 0 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.queue__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--lime);
  transition: width 0.35s var(--ease);
}

.queue__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px 4px;
  max-height: 56svh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.queue__list.is-faded {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.queue__group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px 2px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.queue__group:first-child { padding-top: 0; }

.queue__group-label { flex: none; white-space: nowrap; }

.queue__group-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.queue__group-sum {
  flex: none;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.queue__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  transition: background 0.18s, border-color 0.18s, opacity 0.18s;
}
.queue__item:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); }

.queue__item[data-step="1"] {
  border-color: rgba(201, 247, 90, 0.34);
  background: var(--lime-soft);
}

.queue__item[data-done="1"] { opacity: 0.45; }
.queue__item[data-done="1"] .queue__state { color: var(--lime); }

.queue__n { font-family: var(--mono); font-size: 9.5px; color: var(--dim); }
.queue__name { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.queue__price { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.queue__state { font-size: 12px; color: var(--dim); text-align: center; }
.queue__item[data-step="1"] .queue__state { color: var(--lime); }

.queue__foot { padding: 14px 20px 12px; }
.queue__foot .btn { width: 100%; }

.queue__note {
  padding: 0 20px 18px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--dim);
}

/* =========================================================
   toast
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 11px 12px 11px 14px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: rgba(16, 19, 25, 0.96);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12.5px;
  color: var(--text);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

.toast__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}

.toast__act {
  color: var(--lime);
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 2px;
  white-space: nowrap;
}
.toast__act[hidden] { display: none; }

/* =========================================================
   reveal
   ========================================================= */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail__right { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .hero { padding-top: calc(var(--header-h) + 56px); }
}

@media (max-width: 680px) {
  :root { --header-h: 58px; }
  .wrap { width: calc(100% - 32px); }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -0.04em; }
  .brand__tag { display: none; }
  .switch__btn { min-width: 0; padding: 0 11px; font-size: 12px; }
  .rail { margin-top: 28px; }
  .rail__in { height: 58px; gap: 10px; }
  .rail__label { display: none; }
  .tier { padding-top: 40px; }
  .tier__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tier__meta { text-align: left; }
  .hero__actions .btn { flex: 1; }
  .steps { gap: 10px; }
  .footer__in { flex-direction: column; gap: 18px; }
  .queue {
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: fixed;
    inset: auto 0 0 0;
    border-radius: 22px 22px 0 0;
    max-height: 88svh;
  }
  .queue__list { max-height: 46svh; }
  .queue__note { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

@media (max-width: 400px) {
  .brand__word { font-size: 14px; letter-spacing: 0.16em; padding-left: 0.16em; }
  .switch__btn { padding: 0 9px; }
  .switch__cur { display: none; }
  .btn__long { display: none; }
  .btn__short { display: inline; }
  .card__actions .btn--primary { padding: 0 10px; }
}

/* =========================================================
   motion / print
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  body::before, body::after, .site-header, .progress, .ticker, .rail, .hero__actions, .card__actions { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .step, .note { border-color: #ccc; background: #fff; }
}
