/* ==========================================================
   Crux — design tokens
   Direction: dark cinematic luxury. One hot accent (Crux gold),
   wide display type (Panchang), technical mono for numbers.
   ========================================================== */
:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #19191c;
  --line: rgba(237, 234, 228, 0.09);
  --line-strong: rgba(237, 234, 228, 0.18);
  --fg: #edeae4;
  --muted: #8d8a83;
  --accent: #f0b44c;
  --accent-deep: #d9822b;
  --accent-ink: #1c1204;
  --danger: #ff7a6b;
  --ok: #8be3b0;

  --f-display: "Panchang", "Arial Black", sans-serif;
  --f-body: "Switzer", "Helvetica Neue", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 32px;
  scrollbar-width: none; /* hidden scrollbar (page still scrolls) */
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* text can't be selected or dragged */
  -webkit-user-select: none;
  user-select: none;
}
a, img, svg { -webkit-user-drag: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
main { overflow-x: clip; }
/* film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 200;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

svg use { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.display--l { font-size: clamp(2.2rem, 6.4vw, 6.4rem); }
.display--m { font-size: clamp(1.9rem, 4.2vw, 3.9rem); line-height: 1; letter-spacing: -0.03em; }
.display em { font-style: normal; color: var(--accent); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.02em; }
.label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--accent); }
.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.link:hover { color: var(--accent); background-size: 0% 1px; background-position: 100% 100%; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-body); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.35s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: 0 10px 40px -8px rgba(240, 180, 76, 0.55); }
.btn--primary:active { transform: scale(0.97); }
.btn--primary[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.btn--outline { border-color: var(--line-strong); color: var(--fg); }
.btn--outline:hover { border-color: var(--fg); background: var(--surface); }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); --h: 42px; padding: 0 18px; font-size: 14px; }
.btn--ghost:hover { border-color: var(--fg); }
.btn--block { width: 100%; }
.btn__icon { width: 17px; height: 17px; flex: none; }
.btn.is-loading .btn__icon { animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.25; transform: scale(0.85); } }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong); background: transparent;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--fg); background: var(--surface-2); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.magnetic { will-change: transform; }

/* ---------- nav ---------- */
/* nav sits on top of the hero and scrolls away with it: no bar */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: var(--s-6);
  padding: 18px var(--gutter);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 17px/1 var(--f-display); letter-spacing: -0.02em; text-decoration: none;
}
.wordmark .mark { width: 22px; height: 22px; color: var(--accent); }
.nav nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.nav nav a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav nav a:hover { color: var(--fg); }

/* ---------- brand hero ---------- */
.brand {
  --pad-top: clamp(48px, 9vh, 104px);
  --stage-h: clamp(250px, 30vw, 400px);
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad-top) var(--gutter) var(--s-7);
}
.brand__glow {
  position: absolute; z-index: -2; left: 50%; top: calc(var(--pad-top) + var(--stage-h) / 2);
  width: min(1500px, 150vw); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(240, 180, 76, 0.22), rgba(240, 180, 76, 0.05) 55%, transparent 75%);
  pointer-events: none;
}

/* faded giant wordmark (same treatment as the footer) */
.brand__bg {
  position: absolute; z-index: -1;
  left: var(--gutter); right: var(--gutter);
  top: calc(var(--pad-top) + var(--stage-h) / 2);
  transform: translateY(-50%);
  font: 800 clamp(48px, 18vw, 300px)/0.8 var(--f-display);
  letter-spacing: -0.055em; white-space: nowrap; text-align: center;
  pointer-events: none;
}
.brand__bg span {
  display: inline-block;
  background: linear-gradient(180deg, #303036 0%, rgba(10, 10, 11, 0) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* product stage */
.stage {
  position: relative;
  width: min(780px, 100%); height: var(--stage-h);
  margin: 0 auto;
  pointer-events: none;
}
.stage__card { position: absolute; container-type: inline-size; transform: rotate(var(--r)); }
.stage__card--ticket { --r: -7deg; width: 56%; left: 1%; top: 4%; z-index: 2; }
.stage__card--server { --r: 5deg; width: 52%; right: 1%; top: 30%; z-index: 1; }

.ticket.ticket--mini {
  aspect-ratio: 1.7 / 1;
  padding: 7cqw; border-radius: 5cqw;
  grid-template-rows: auto 1fr auto auto;
}
.ticket.ticket--mini .ticket__brand { font-size: 3.6cqw; gap: 1.8cqw; }
.ticket.ticket--mini .ticket__brand svg { width: 4.6cqw; height: 4.6cqw; }
.ticket.ticket--mini .mono { font-size: 2.9cqw; }
.ticket.ticket--mini .ticket__name { font-size: 18cqw; }
.ticket.ticket--mini .ticket__cut { margin: 0 -7cqw 4cqw; }
.ticket.ticket--mini .ticket__cut::before, .ticket.ticket--mini .ticket__cut::after { width: 6cqw; height: 6cqw; top: -3.2cqw; background: #1a140b; }
.ticket.ticket--mini .ticket__cut::before { left: -3cqw; } .ticket.ticket--mini .ticket__cut::after { right: -3cqw; }

.server {
  aspect-ratio: 1.7 / 1;
  display: grid; grid-template-rows: auto 1fr auto; gap: 5cqw;
  padding: 6.5cqw; border-radius: 5cqw;
  background: linear-gradient(160deg, #1d1d21, #121214 60%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9);
}
.server__top { display: flex; align-items: center; gap: 3cqw; }
.server__icon {
  width: 10cqw; height: 10cqw; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #f4dc72, var(--accent-deep)); color: var(--accent-ink);
}
.server__icon svg { width: 5cqw; height: 5cqw; }
.server__name { font-weight: 600; font-size: 4.6cqw; }
.server__lvl {
  margin-left: auto; font-size: 2.9cqw !important; padding: 1.6cqw 3.2cqw; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500;
}
.server__bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 1.3cqw; }
.server__bars i {
  border-radius: 0.8cqw; transform-origin: bottom;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 4cqw -1cqw rgba(240, 180, 76, 0.6);
}
.server__bottom { display: flex; justify-content: space-between; font-size: 2.9cqw; color: var(--muted); }

.brand__copy { text-align: center; max-width: 1240px; margin: clamp(24px, 3vw, 44px) auto 0; }
.brand__title {
  margin: 0;
  font: 800 clamp(28px, 3.6vw, 58px)/1.02 var(--f-display);
  letter-spacing: -0.035em; text-wrap: balance;
}
.brand__lede { margin: var(--s-4) auto 0; color: var(--muted); max-width: 44ch; font-size: clamp(16px, 1.3vw, 19px); }
.brand__actions { display: flex; justify-content: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.brand__facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center;
  list-style: none; margin: var(--s-7) auto 0; padding: 0;
}
.brand__facts li {
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(20px, 2.6vw, 40px);
  text-align: left;
}
.brand__facts li + li { border-left: 1px solid var(--line-strong); }
.fact__fig {
  flex: none; min-width: 2.7em;
  font: 800 26px/1 var(--f-display); letter-spacing: -0.04em;
  color: var(--accent);
}
.brand__facts strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.brand__facts small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* load-in: cards fly in, bars fill, copy follows */
.js .ticket--mini, .js .server { animation: card-in 1.1s var(--ease) both; }
.js .ticket--mini { animation-delay: 0.1s; }
.js .server { animation-delay: 0.22s; }
.js .server__bars i { animation: bar 0.6s var(--ease) both; animation-delay: calc(0.7s + var(--i, 0) * 40ms); }
.js .brand__bg span { animation: fade-plain 1.6s ease both; }
.js .brand__copy, .js .brand__facts { animation: fade 0.9s var(--ease) 0.45s both; }
@keyframes card-in { from { opacity: 0; transform: translateY(80px) rotate(var(--from-r, 0deg)) scale(0.94); } }
@keyframes bar { from { transform: scaleY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- shop ---------- */
.shop {
  position: relative; isolation: isolate;
  max-width: var(--max); margin: 0 auto;
  padding: var(--s-10) var(--gutter) var(--s-9);
}
.shop__glow {
  position: absolute; z-index: -1; left: 50%; top: 62%;
  width: min(1200px, 120vw); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%) scale(calc(0.6 + var(--lvl) * 0.14));
  background: radial-gradient(closest-side, rgba(240, 180, 76, calc(0.04 + var(--lvl) * 0.045)), transparent 70%);
  transition: transform 0.8s var(--ease), background 0.8s;
  pointer-events: none;
}
.shop__title { margin-bottom: var(--s-7); }

.picker { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vw, 20px); }
.pick {
  position: relative; text-align: left; cursor: pointer;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s-3);
  min-height: clamp(260px, 28vw, 380px);
  padding: clamp(20px, 2.6vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.35s, background 0.35s, opacity 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.5s var(--ease);
}
.pick:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pick:active { transform: scale(0.99); }
.pick__name {
  font: 800 clamp(26px, 4.4vw, 64px)/0.95 var(--f-display); letter-spacing: -0.04em;
  margin-top: auto;
}
.pick__desc { color: var(--muted); font-size: 15px; max-width: 34ch; }
.pick__foot { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.pick__from { color: var(--fg); }
.pick__state {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pick__state svg { width: 16px; height: 16px; }

.pick[aria-expanded="true"] {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(240, 180, 76, 0.14), var(--surface) 55%);
  box-shadow: 0 30px 80px -40px rgba(240, 180, 76, 0.6);
}
.pick[aria-expanded="true"] .pick__state { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.picker.has-pick .pick[aria-expanded="false"] { opacity: 0.45; }
.picker.has-pick .pick[aria-expanded="false"]:hover { opacity: 0.8; }

/* tile visuals */
.pick__visual { height: clamp(56px, 7vw, 96px); display: flex; align-items: flex-end; }
.pick__visual--bars { gap: clamp(2px, 0.35vw, 5px); }
.pick__visual--bars i {
  flex: 1; height: 100%; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.pick:hover .pick__visual--bars i, .pick[aria-expanded="true"] .pick__visual--bars i { background: var(--accent); border-color: transparent; }
.pick__visual--bars i:nth-child(1) { transition-delay: 0s; }
.pick__visual--bars i:nth-child(2) { transition-delay: .02s; } .pick__visual--bars i:nth-child(3) { transition-delay: .04s; }
.pick__visual--bars i:nth-child(4) { transition-delay: .06s; } .pick__visual--bars i:nth-child(5) { transition-delay: .08s; }
.pick__visual--bars i:nth-child(6) { transition-delay: .10s; } .pick__visual--bars i:nth-child(7) { transition-delay: .12s; }
.pick__visual--bars i:nth-child(8) { transition-delay: .14s; } .pick__visual--bars i:nth-child(9) { transition-delay: .16s; }
.pick__visual--bars i:nth-child(10) { transition-delay: .18s; } .pick__visual--bars i:nth-child(11) { transition-delay: .20s; }
.pick__visual--bars i:nth-child(12) { transition-delay: .22s; } .pick__visual--bars i:nth-child(13) { transition-delay: .24s; }
.pick__visual--bars i:nth-child(14) { transition-delay: .26s; }

.mini-ticket {
  position: relative; height: 100%; aspect-ratio: 1.9 / 1;
  border: 1px solid var(--line-strong); border-radius: 8px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 10%;
  background: var(--surface-2);
  transition: transform 0.5s var(--ease), background 0.35s, border-color 0.35s, color 0.35s;
  transform: rotate(-4deg);
}
.mini-ticket svg { width: 34%; height: auto; max-width: 30px; }
.mini-ticket i { display: block; height: 3px; border-radius: 2px; background: var(--line-strong); }
.mini-ticket i:last-child { width: 60%; }
.pick:hover .mini-ticket, .pick[aria-expanded="true"] .mini-ticket {
  transform: rotate(0) translateY(-4px); background: var(--accent); border-color: transparent; color: var(--accent-ink);
}
.pick:hover .mini-ticket i, .pick[aria-expanded="true"] .mini-ticket i { background: rgba(28, 18, 4, 0.35); }

/* panels */
.panel { padding-top: var(--s-9); }
.panel.is-entering .line > span { animation: rise 0.9s var(--ease) both; }
.panel.is-entering .line:nth-child(2) > span { animation-delay: 0.08s; }
.panel.is-entering > :not(:first-child), .panel.is-entering .panel__lede { animation: fade 0.8s var(--ease) 0.2s both; }
.panel__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  align-items: end; gap: var(--s-7);
  margin-bottom: var(--s-8);
}
.panel__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.panel__title .line > span { display: inline-block; }
.panel__title em { display: inline-block; }
.panel__lede { color: var(--muted); margin: 0 0 0.6em; max-width: 34ch; }

/* boosts: meter */
.meter-wrap { position: relative; }
.meter__levels, .meter { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: clamp(3px, 0.5vw, 8px); }
.meter__levels { margin-bottom: 10px; }
.meter__levels span {
  justify-self: end; font: 500 11px/1 var(--f-mono); color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; transition: color 0.3s;
}
.meter__levels span.is-on { color: var(--accent); }
.meter { height: clamp(84px, 11vw, 150px); cursor: ew-resize; touch-action: pan-y; border-radius: 4px; }
.meter:focus-visible { outline-offset: 8px; }
.notch {
  position: relative; border-radius: 3px;
  background: var(--surface); border: 1px solid var(--line);
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.5s var(--ease), transform 0.35s var(--ease);
  transform-origin: bottom;
}
.notch.is-threshold { background: var(--surface-2); border-color: var(--line-strong); }
.notch.is-on {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: transparent; box-shadow: 0 0 28px -6px rgba(240, 180, 76, 0.65);
}
.notch.is-on.is-threshold::after {
  content: ""; position: absolute; left: 50%; top: 10px; width: 7px; height: 7px;
  background: var(--accent-ink); transform: translateX(-50%) rotate(45deg); border-radius: 1px;
}
.notch.is-last { transform: scaleY(1.06); }
.meter:hover .notch:not(.is-on) { border-color: var(--line-strong); }
.meter__scale { display: flex; justify-content: space-between; margin-top: 10px; font: 400 11px/1 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }

.order {
  display: grid; grid-template-columns: auto auto 1fr auto;
  align-items: end; gap: var(--s-7);
  margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line);
}
.order__group { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper output { font: 500 22px/1 var(--f-mono); min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }

.seg { border: 0; margin: 0; display: flex; flex-direction: row; flex-wrap: nowrap; position: relative; padding: 21px 0 0; gap: 0; min-width: 0; }
.seg legend { position: absolute; top: 0; left: 0; padding: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.seg label:first-of-type span { border-radius: 999px 0 0 999px; }
.seg label:last-of-type span { border-radius: 0 999px 999px 0; margin-left: -1px; }
.seg input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.seg input:hover:not(:checked) + span { color: var(--fg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.save { font: 500 10px/1 var(--f-mono); color: var(--accent); }
.seg input:checked + span .save { color: var(--accent-deep); }

.order__total { justify-self: end; text-align: right; align-items: flex-end; }
.price { font: 500 clamp(30px, 3.4vw, 46px)/1 var(--f-mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price--s { font-size: 22px; letter-spacing: -0.02em; }
.hint { font-size: 13px; color: var(--muted); }

.perks {
  list-style: none; padding: 0; margin: var(--s-8) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6);
}
.perks__col { border-top: 1px solid var(--line); padding-top: var(--s-4); opacity: 0.38; transition: opacity 0.5s var(--ease), border-color 0.5s; }
.perks__col.is-on { opacity: 1; border-color: var(--accent); }
.perks__title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 var(--s-4); font: 700 15px/1.2 var(--f-display); letter-spacing: -0.01em; }
.perks__title .mono { color: var(--muted); font-weight: 400; font-size: 11px; }
.perks ul { list-style: none; margin: 0; padding: 0; }
.perks ul li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); transition: color 0.4s; }
.perks__col.is-on ul li { color: var(--fg); }

/* nitro panel */
.panel#panel-nitro .panel__title { margin-bottom: var(--s-8); }
.nitro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.ticket {
  position: relative; aspect-ratio: 1.72 / 1;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 40px);
  display: grid; grid-template-rows: auto 1fr auto auto;
  color: var(--accent-ink);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(140deg, #f4dc72 0%, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: 0 50px 120px -50px rgba(240, 180, 76, 0.75);
  overflow: hidden;
  transition: transform 0.6s var(--ease), filter 0.5s;
}
.ticket::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
}
.ticket.is-swap::after { animation: shine 0.9s var(--ease); }
@keyframes shine { to { transform: translateX(120%); } }
.ticket.is-basic { filter: saturate(0.55) brightness(0.92); }
.ticket__top { display: flex; justify-content: space-between; align-items: center; }
.ticket__brand { display: flex; align-items: center; gap: 8px; font: 800 14px/1 var(--f-display); letter-spacing: -0.01em; }
.ticket__brand svg { width: 18px; height: 18px; }
.ticket__name { align-self: center; font: 800 clamp(34px, 6vw, 88px)/0.9 var(--f-display); letter-spacing: -0.05em; }
.ticket__cut { height: 0; border-top: 2px dashed rgba(28, 18, 4, 0.3); margin: 0 calc(clamp(20px, 3vw, 40px) * -1) clamp(14px, 2vw, 22px); position: relative; }
.ticket__cut::before, .ticket__cut::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg);
}
.ticket__cut::before { left: -12px; } .ticket__cut::after { right: -12px; }
.ticket__bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.ticket__bottom .mono { font-size: 11px; opacity: 0.75; }
.ticket__code { opacity: 1 !important; font-weight: 500; }

.nitro__controls { display: flex; flex-direction: column; gap: var(--s-5); }
.nitro__controls .seg label { flex: 1; }
.checklist { list-style: none; margin: var(--s-2) 0 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li {
  display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; transition: color 0.35s, opacity 0.35s;
}
.checklist svg { width: 16px; height: 16px; color: var(--accent); flex: none; transition: color 0.35s; }
.checklist li.is-off { color: var(--muted); opacity: 0.5; text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist li.is-off svg { color: var(--muted); }
.buybar { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); padding-top: var(--s-3); }
.buybar__total { display: flex; flex-direction: column; gap: 10px; }

/* ---------- how ---------- */
.how, .faq, .promise, .footer { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.how { padding-block: var(--s-10); border-top: 1px solid var(--line); }
.how h2 { max-width: 16ch; }
.timeline { list-style: none; padding: 0; margin: var(--s-8) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--accent)); }
.timeline li { position: relative; padding: 40px var(--s-6) 0 0; }
.timeline li::before { content: ""; position: absolute; top: 3px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--fg); }
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px var(--accent); }
.timeline time { color: var(--accent); font-size: 13px; }
.timeline h3 { font: 700 22px/1.15 var(--f-display); letter-spacing: -0.02em; margin: 14px 0 10px; }
.timeline p { color: var(--muted); margin: 0; max-width: 34ch; font-size: 16px; }

/* ---------- promise ---------- */
.promise { padding-block: var(--s-10); border-top: 1px solid var(--line); }
.promise .display { max-width: 15ch; margin-top: var(--s-5); }
.promise__body { color: var(--muted); max-width: 46ch; margin: var(--s-6) 0 0 auto; font-size: 18px; }

/* ---------- faq ---------- */
.faq { padding-block: var(--s-10); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  padding: 22px 0; font-size: 18px; font-weight: 500; transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 60ch; }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-5);
  padding-block: var(--s-7); border-top: 1px solid var(--line); font-size: 15px;
}
.footer p { margin: 0; color: var(--muted); }
.footer p a { color: var(--fg); }
.footer { padding-bottom: 0; overflow: hidden; }
.footer__mark {
  width: 100%;
  font: 800 clamp(64px, 18vw, 268px)/0.8 var(--f-display);
  letter-spacing: -0.055em; white-space: nowrap;
  margin: var(--s-6) 0 -0.12em -0.04em;
}
.footer__mark span {
  display: inline-block;
  background: linear-gradient(180deg, #2a2a2f 0%, var(--bg) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- checkout dialog ---------- */
.checkout {
  margin: 0 0 0 auto; height: 100dvh; max-height: none;
  width: min(460px, 100vw); padding: 0; border: 0;
  background: var(--surface); color: var(--fg); border-left: 1px solid var(--line-strong);
}
.checkout::backdrop { background: rgba(5, 5, 6, 0.72); backdrop-filter: blur(4px); }
.checkout[open] { animation: slide-in 0.5s var(--ease); }
.checkout[open]::backdrop { animation: fade-plain 0.4s ease; }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes fade-plain { from { opacity: 0; } }
.checkout__inner { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6); min-height: 100%; }
.checkout__head { display: flex; justify-content: space-between; align-items: center; }
.checkout__head h2 { font: 800 22px/1 var(--f-display); letter-spacing: -0.02em; margin: 0; }
.checkout__item { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s-4); align-items: center; padding: var(--s-5) 0; border-block: 1px solid var(--line); }
.checkout__name { font-weight: 600; font-size: 18px; }
.checkout__item .mono { color: var(--muted); grid-row: 2; }
.checkout__item .price { grid-row: 1 / span 2; grid-column: 2; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input { height: 50px; padding: 0 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-strong); transition: border-color 0.2s, box-shadow 0.2s; }
.field input::placeholder { color: #5d5b56; }
.field input:hover { border-color: var(--muted); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 180, 76, 0.18); }
.field.is-invalid input { border-color: var(--danger); }
.field__note { margin: 0; font-size: 13px; color: var(--muted); }
.field__error { margin: 0; font-size: 13px; color: var(--danger); }
.field__error:empty { display: none; }
.checkout__status { margin: -8px 0 0; font-size: 14px; color: var(--muted); text-align: center; min-height: 1.4em; }
.checkout__status.is-ok { color: var(--ok); }
.checkout__fine { margin: auto 0 0; font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .order { grid-template-columns: auto auto 1fr; }
  .order .btn--primary { grid-column: 1 / -1; width: 100%; }
  .nitro { grid-template-columns: 1fr; }
  .ticket { max-width: 640px; }
}
@media (max-width: 860px) {
  .nav ul { display: none; }
  .panel__head { grid-template-columns: 1fr; gap: var(--s-5); margin-bottom: var(--s-7); }
  .faq { grid-template-columns: 1fr; padding-block: var(--s-9); }
  .how, .promise { padding-block: var(--s-9); }
  .timeline { grid-template-columns: 1fr; gap: var(--s-6); }
  .timeline::before { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-strong), var(--accent)); }
  .timeline li { padding: 0 0 0 32px; }
  .timeline li::before { top: 4px; }
  .timeline h3 { margin-top: 8px; }
  .perks { grid-template-columns: 1fr; gap: var(--s-5); }
  .perks ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .perks ul li { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; font-size: 14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav__cta { margin-left: auto; }
  .brand { --pad-top: 48px; --stage-h: 250px; min-height: 0; padding-bottom: var(--s-8); }
  .stage__card--ticket { width: 68%; left: 0; top: 2%; }
  .stage__card--server { width: 64%; right: 0; top: 38%; }
  .brand__title { font-size: clamp(26px, 8vw, 34px); }
  .brand__facts { grid-template-columns: 1fr; gap: var(--s-4); justify-content: stretch; margin-top: var(--s-6); }
  .brand__facts li { padding: 0; }
  .brand__facts li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: var(--s-4); }
  .brand__actions { width: 100%; flex-direction: column; }
  .brand__actions .btn { width: 100%; }
  .shop { padding-top: var(--s-9); }
  .shop__title { margin-bottom: var(--s-6); }
  .pick { min-height: 230px; padding: 16px; gap: 10px; }
  .pick__desc { font-size: 13px; line-height: 1.4; }
  .pick__foot { padding-top: 12px; }
  .pick__from { font-size: 10px; }
  .pick__state { width: 26px; height: 26px; }
  .panel { padding-top: var(--s-8); }
  .meter__levels span { font-size: 10px; }
  .order { grid-template-columns: auto 1fr; grid-template-areas: "qty total" "dur dur" "btn btn"; gap: var(--s-5) var(--s-4); }
  .order > .order__group:first-child { grid-area: qty; }
  .order .seg { grid-area: dur; }
  .order__total { grid-area: total; }
  .order .btn--primary { grid-area: btn; }
  .order__total .price { font-size: 30px; }
  .order__total .hint { font-size: 12px; }
  .seg label { flex: 1; }
  .seg span { padding: 0 12px; }
  .ticket { border-radius: 14px; }
  .buybar { flex-direction: column; align-items: stretch; }
  .buybar__total { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .buybar .btn { width: 100%; }
  .promise__body { margin-left: 0; font-size: 17px; }
  .faq summary { font-size: 17px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .checkout__inner { padding: var(--s-5) var(--s-4); }
}

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

/* own payment screen */
.checkout__step { display: flex; flex-direction: column; gap: var(--s-5); }
.pay__qr:empty { display: none; }
.pay__qr { align-self: center; width: 188px; padding: 14px; border-radius: 10px; background: var(--fg); }
.pay__qr svg { width: 100%; height: auto; }
.pay__rows { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; }
.pay__row { display: flex; flex-direction: column; gap: 6px; }
.pay__row dd { margin: 0; }
.copy {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--fg);
  font-size: 13px; text-align: left; word-break: break-all; cursor: pointer; transition: border-color 0.2s;
}
.copy::after { content: "Copy"; flex: none; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.copy:hover { border-color: var(--accent); }
.copy.is-copied::after { content: "Copied"; color: var(--accent); }
.pay__status { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 14px; color: var(--muted); }
.pay__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 0.9s ease-in-out infinite alternate; }
.pay__status.is-ok { color: var(--ok); }
.pay__status.is-ok i { background: var(--ok); animation: none; }
.pay__status.is-off i { background: var(--danger); animation: none; }
