@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/buy/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
}

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

:root {
  color-scheme: dark;
  --bg: #030508;
  --panel: rgba(3, 5, 8, 0.95);
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --accent: #06b6d4;
  --purple: #8b5cf6;
  --text: #e8ecf4;
  --text-dim: #7b8ba3;
  --text-faint: #4a5568;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.14);
  --divide: rgba(255, 255, 255, 0.16); /* layout dividers, payment details */
  --accent-label: #93c5fd;
  --badge-line: rgba(70, 130, 220, 0.45);
  --badge-fill: rgba(70, 130, 220, 0.12);
  --badge-text: #99baec;
  --sale-line: rgba(160, 112, 220, 0.45);
  --sale-fill: rgba(160, 112, 220, 0.12);
  --sale-text: #cdb6f2;
  --enter: cubic-bezier(0.05, 0.7, 0.1, 1); /* the client's ENTER */
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --panel-soft: rgba(6, 9, 14, 0.8);
  --edge: rgba(255, 255, 255, 0.08);
  --plus: #b9a2f0;
}

body {
  position: relative;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration-color: rgba(96, 165, 250, 0.35); text-underline-offset: 0.2em; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: var(--text); text-decoration-color: currentColor; }

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

svg.i { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Background (fixed, fades in once drawn), title, entrance */

#mesh {
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh; /* lvh: steady under mobile url bar */
  opacity: 0; transition: opacity 600ms ease;
  pointer-events: none;
}
#mesh.on { opacity: 1; }

.page {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 12px 1.25rem 3rem;
}

.hero { max-width: 600px; width: 100%; text-align: center; margin-bottom: 2rem; }

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.title {
  font-size: clamp(2.8rem, 10vw, 4.75rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.title--sm { font-size: clamp(2.1rem, 6.5vw, 3.2rem); }

.title span {
  background: linear-gradient(
    90deg,
    var(--primary) 0%, var(--accent) 20%,
    var(--purple) 45%, #c084fc 55%,
    var(--accent) 80%, var(--primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

.desc {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.75;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

/* the client's motion: 16px rise over 320ms, 40ms apart */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.title, .v { animation: rise 320ms var(--enter) both; }
.d1 { animation-delay: 40ms; }
.d2 { animation-delay: 80ms; }
.d3 { animation-delay: 120ms; }

/* Top bar (the client's: bear, name, version) */

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 50px; border-bottom: 1px solid var(--line); }
.page > .topbar { width: 100%; max-width: 880px; margin-bottom: 2.5rem; }
.topbar__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
.topbar__brand:hover { color: var(--text); }
.topbar__brand img { width: 26px; height: 26px; }
.topbar__links { display: flex; gap: 18px; }
.topbar__links a { color: var(--text-dim); text-decoration: none; font-size: 0.8rem; font-weight: 600; }
.topbar__links a:hover { color: var(--text); }

/* Badges (the client's) */

.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--badge-line); background: var(--badge-fill); color: var(--badge-text); }
.badge--sale { border-color: var(--sale-line); background: var(--sale-fill); color: var(--sale-text); }
.badge--grey { border-color: rgba(148, 148, 148, 0.42); background: rgba(148, 148, 148, 0.12); color: var(--text); text-transform: none; letter-spacing: 0.02em; }

/* Card: a coloured ring that turns, its halo, and a soft glow */

@property --sweep {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

@keyframes sweep { to { --sweep: 360deg; } }

.card {
  --ring:
    rgba(59, 130, 246, 0.55) 0deg,
    rgba(96, 165, 250, 1) 30deg,
    rgba(6, 182, 212, 0.65) 70deg,
    rgba(139, 92, 246, 0.55) 140deg,
    rgba(192, 132, 252, 0.95) 210deg,
    rgba(236, 72, 153, 0.5) 260deg,
    rgba(139, 92, 246, 0.55) 310deg,
    rgba(59, 130, 246, 0.55) 360deg;
  position: relative;
  isolation: isolate;
  max-width: 540px; width: 100%;
  border-radius: 14px;
}

/* 1px ring, masked so the panel inside stays clear */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--sweep), var(--ring));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: sweep 12s linear infinite;
  pointer-events: none;
}

/* Glow: edge light, wide bloom, depth */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.035),
    0 0 22px -4px rgba(59, 130, 246, 0.22),
    0 0 80px -12px rgba(99, 102, 241, 0.18),
    0 0 140px -20px rgba(6, 182, 212, 0.08),
    0 40px 90px -30px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

/* The ring again, thicker and blurred, so its colours glow */
.card__halo {
  position: absolute; inset: -3px; z-index: 0;
  border-radius: 17px;
  filter: blur(9px);
  opacity: 0.55;
  animation: sweep 12s linear infinite;
  pointer-events: none;
}
.card__halo::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 4px;
  background: conic-gradient(from var(--sweep), var(--ring));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.card__body {
  position: relative; z-index: 1;
  background: var(--panel);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  padding: 1.5rem;
}

.label {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.note { font-size: 0.75rem; line-height: 1.6; color: var(--text-faint); text-wrap: pretty; }
.note strong { color: var(--text-dim); font-weight: 600; }

.who { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; font-size: 0.85rem; color: var(--text-dim); }
.who strong { color: var(--text); font-weight: 700; }
.who a { color: var(--text-dim); text-decoration: none; font-weight: 600; }
.who a:hover { color: var(--primary-light); }

.products { display: grid; gap: 0.6rem; margin-bottom: 0.75rem; }
.products + .note { margin-bottom: 1.5rem; }

.product { position: relative; display: block; cursor: pointer; }
.product input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.product__box {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.product:hover .product__box { border-color: var(--line-strong); }
.product input:checked + .product__box { border-color: var(--primary); background: rgba(59, 130, 246, 0.08); }
.product input:focus-visible + .product__box { outline: 2px solid var(--primary-light); outline-offset: 2px; }
.product__name { font-weight: 700; font-size: 0.95rem; }
.product__name .badge { height: 16px; padding: 0 5px; margin-left: 6px; font-size: 9px; vertical-align: 1px; }
.product__note { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.15rem; }
.product__note--good { color: var(--ok); font-weight: 600; }
.product__incl { display: block; font-size: 0.74rem; line-height: 1.45; color: var(--text-faint); margin-top: 0.2rem; }
.product__price { text-align: right; white-space: nowrap; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.product__price s { color: var(--text-faint); font-weight: 500; font-size: 0.85rem; margin-right: 0.35rem; }
.product__price small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--text-dim); }
.product__price .product__alt { font-weight: 500; font-size: 0.85rem; color: var(--text-dim); }
.products--pair { grid-template-columns: 1fr 1fr; }

.consent { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.85rem; line-height: 1.55; color: var(--text-dim); cursor: pointer; }
.check input { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; accent-color: var(--primary); cursor: pointer; }
.check strong { color: var(--text); font-weight: 600; }

.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.actions + .note { margin-top: 1rem; }

/* State (status pages and the landing card): inline, lines, popup */

.state { margin-bottom: 1.35rem; }
.state__head { display: flex; align-items: center; gap: 12px; }
.state__icon {
  width: 30px; height: 30px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.state__icon svg { width: 15px; height: 15px; }
.state__icon--ok { background: rgba(52, 211, 153, 0.08); color: var(--ok); }
.state__icon--wait { background: rgba(59, 130, 246, 0.08); color: var(--primary-light); }
.state__icon--notice { background: rgba(245, 158, 11, 0.08); color: var(--warn); }
.state__icon--error { background: rgba(248, 113, 113, 0.08); color: var(--danger); }
.state__title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.state__text { margin-top: 0.65rem; font-size: 0.875rem; line-height: 1.65; color: var(--text-dim); text-wrap: pretty; }
.state__text strong { color: var(--text); font-weight: 600; }

/* Lines: a divider under the title row and above the buttons */
.state--lines .state__head { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--divide); }
.state--lines .state__text { margin-top: 0; }
.state--lines ~ .facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.state__foot { padding-top: 1rem; border-top: 1px solid var(--divide); }
.state__foot .actions + .note { margin-top: 1rem; }
.note--lead { margin-bottom: 1.35rem; }

/* Popup: help line on the left, buttons on the right; buttons fill the row without it */
.state__foot--popup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.state__hint { flex: 1 1 220px; font-size: 0.75rem; line-height: 1.5; color: var(--text-faint); }
.state__hint a { color: var(--text-dim); }
.state__foot--popup .actions { flex-wrap: nowrap; margin-left: auto; justify-content: flex-end; }
.state__foot--popup .btn--wide { flex: 0 0 auto; }
.state__foot--fill .actions { flex: 1 1 100%; margin-left: 0; }
.state__foot--fill .btn--wide, .state__foot--fill .btn:only-child { flex: 1 1 auto; }

/* Next steps after paying */
.next-steps { list-style: none; display: grid; gap: 0.75rem; margin-bottom: 1.4rem; }
.next-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0.7rem; align-items: start; font-size: 0.85rem; line-height: 1.55; color: var(--text-dim); }
.next-steps__icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(59, 130, 246, 0.1); color: var(--primary-light); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.next-steps__icon svg { width: 14px; height: 14px; }
.next-steps strong { color: var(--text); font-weight: 600; }

.backlink { text-align: center; margin-top: 1rem; font-size: 0.8rem; }
.backlink a { color: var(--text-dim); text-decoration: none; font-weight: 600; }
.backlink a:hover { color: var(--text); }

/* Buttons (the client's pills: tinted fill and ring) */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font: inherit; font-size: 0.82rem; font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 160ms var(--enter), border-color 160ms var(--enter), color 160ms var(--enter);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn--wide { flex: 1 1 auto; }
.btn--primary { background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: color-mix(in srgb, var(--primary) 50%, transparent); color: var(--accent-label); }
.btn--primary:hover { background: color-mix(in srgb, var(--primary) 22%, transparent); border-color: color-mix(in srgb, var(--primary) 70%, transparent); color: #fff; }
.btn--discord { background: rgba(88, 101, 242, 0.16); border-color: rgba(88, 101, 242, 0.55); color: #c9cdfb; }
.btn--discord:hover { background: rgba(88, 101, 242, 0.24); border-color: rgba(88, 101, 242, 0.75); color: #fff; }
.btn--ghost { background: rgba(148, 148, 148, 0.14); border-color: rgba(148, 148, 148, 0.5); color: var(--text); }
.btn--ghost:hover { background: rgba(148, 148, 148, 0.22); border-color: rgba(148, 148, 148, 0.7); color: var(--text); }

.alert {
  border: 1px solid rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.07);
  color: #fecaca; border-radius: 10px;
  padding: 0.8rem 1rem; margin-bottom: 1.25rem;
  font-size: 0.85rem; line-height: 1.55;
}

.facts { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; font-size: 0.85rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--divide); padding-bottom: 0.6rem; }
.facts dt { color: var(--text-dim); }
.facts dd { font-weight: 600; text-align: right; }

/* Footer (the placeholder site's) */

.foot {
  margin-top: 3rem;
  font-size: 0.68rem; font-weight: 500;
  color: var(--text-faint);
  text-align: center;
}
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--primary-light); }
.foot__sep {
  display: inline-block;
  width: 1px; height: 0.85em;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 0.6rem;
  vertical-align: middle;
}
.foot__own { white-space: nowrap; } /* policies and the owner, one line on a phone */
.foot__note { display: block; margin-top: 0.6rem; text-wrap: balance; }

/* Sections, panels, feature rows and questions (shop, homepage, download) */

.sec { display: grid; gap: 16px; }
.sec__title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.025em; text-align: center; text-wrap: balance; }
.sec > .note { text-align: center; max-width: 64ch; justify-self: center; }

.plain { border: 1px solid var(--edge); border-radius: 14px; background: var(--panel-soft); }

/* Feature rows (the client's module icons) */
.ticks { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 0.65rem; font-size: 0.84rem; line-height: 1.5; color: var(--text-dim); }
.ticks li > svg.i { width: 16px; height: 16px; margin-top: 2px; }
.ticks li.is-plus { color: var(--text); }
.ticks li.is-plus > svg.i { color: var(--plus); }

/* Questions (the client's chevron) */
.faq { width: 100%; max-width: 680px; justify-self: center; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 1rem 1.25rem; font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em; transition: background-color 160ms var(--enter); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(27, 29, 31, 0.6); }
.faq details:first-child summary { border-radius: 14px 14px 0 0; }
.faq summary svg.i { color: var(--text-dim); transition: transform 220ms var(--enter); }
.faq details[open] summary svg.i { transform: rotate(90deg); }
.faq details p { padding: 0 1.25rem 1.1rem; font-size: 0.85rem; line-height: 1.65; color: var(--text-dim); max-width: 62ch; }
.faq strong { color: var(--text); font-weight: 600; }

/* Lite: no gpu, no glow, still ring */
.lite .card__halo, .lite .card::after { display: none; }
.lite .card::before { animation: none; }

@media (max-width: 540px) {
  .page { padding: 8px 1rem 2.5rem; }
  .card__body { padding: 1.15rem; }
  .who { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .actions .btn { flex: 1 1 100%; }
  .state__foot--popup { flex-direction: column; align-items: stretch; }
  .state__hint { flex: none; }
  .state__foot--popup .actions { flex-wrap: wrap; margin-left: 0; width: 100%; }
  .topbar__links { gap: 12px; }
  .foot__own { display: block; margin-top: 0.4rem; }
  .foot__own > .foot__sep:first-child { display: none; } /* own line, no lead sep */
}

@media (max-width: 359px) {
  .products--pair { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .title, .v { animation: none !important; opacity: 1; }
  .title span { animation: none; }
  .btn { transition: none; }
  .card::before, .card__halo { animation: none; }
  #mesh { transition: none; }
}
