:root {
  --bg: #05010a;
  --bg-2: #12061c;
  --card: rgba(18, 6, 28, 0.82);
  --stroke: rgba(210, 120, 255, 0.22);
  --text: #f6edff;
  --muted: #b49cc8;
  --cyan: #e879f9;
  --mint: #c084fc;
  --violet: #a855f7;
  --neon: #ff2bd6;
  --neon-2: #b026ff;
  --warn: #ffb45c;
  --danger: #ff6b8a;
  --ok: #e879f9;
  --radius: 22px;
  --dock: 76px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Syne", "Manrope", sans-serif;
  --shadow: 0 20px 60px rgba(120, 0, 160, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

body {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(232, 121, 249, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(124, 58, 237, 0.18), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 56px);
  z-index: 0;
}

button,
input {
  font: inherit;
}

a {
  color: var(--neon-2);
  text-decoration: none;
}

.app {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top)) 16px
    calc(var(--dock) + 12px + env(safe-area-inset-bottom));
  overflow: hidden;
}

@media (min-width: 560px) {
  body {
    min-height: 100dvh;
    display: grid;
    place-items: center;
  }

  .app {
    width: 400px;
    height: min(844px, 94dvh);
    border-radius: 32px;
    border: 1px solid var(--stroke);
    box-shadow: 0 40px 80px rgba(80, 0, 140, 0.45), 0 0 40px rgba(168, 85, 247, 0.12);
    background: rgba(5, 1, 10, 0.96);
  }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  background: linear-gradient(160deg, #2a1048, #12081c);
  border: 1px solid var(--stroke);
  color: #f0e6ff;
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, 0.12), 0 0 18px rgba(217, 70, 239, 0.28);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0;
  font-size: 15px;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.pill {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5a4a70;
  box-shadow: 0 0 0 4px rgba(90, 74, 112, 0.2);
}

.pill.on .dot {
  background: var(--neon);
  box-shadow: 0 0 8px #d946ef, 0 0 0 4px rgba(217, 70, 239, 0.2);
}

.stage {
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
  padding-bottom: 8px;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.stage::-webkit-scrollbar {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px 20px 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(217, 70, 239, 0.28), transparent 46%),
    linear-gradient(180deg, rgba(36, 14, 58, 0.94), rgba(12, 6, 20, 0.9));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--neon);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(217, 70, 239, 0.55);
}

.hero h1,
.page h2,
.gate-card h2,
.sheet-card h3 {
  font-family: var(--display);
  letter-spacing: 0;
  margin: 0 0 8px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.1;
  max-width: 12ch;
}

.muted {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  user-select: none;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 45%);
  opacity: 0.55;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -35%;
  width: 42%;
  transform: skewX(-18deg) translateX(-170%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transition: transform 0.45s ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: skewX(-18deg) translateX(430%);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:focus-visible {
  outline: 2px solid rgba(232, 121, 249, 0.7);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.primary {
  background: linear-gradient(180deg, #f0abfc, #c026d3 48%, #7c3aed);
  color: #1a0528;
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.32), 0 0 24px rgba(217, 70, 239, 0.38);
}

.btn.primary.is-off {
  opacity: 0.45;
  box-shadow: none;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: rgba(232, 121, 249, 0.45);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn.full {
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.stat,
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.stat {
  padding: 14px;
}

.stat b {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 4px 10px;
  font-weight: 700;
}

.section-title span {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.locs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.loc {
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid var(--stroke);
}

.loc small {
  color: var(--muted);
}

.plan {
  padding: 16px;
  margin-bottom: 10px;
  position: relative;
}

.plan.highlight {
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.16), 0 0 28px rgba(168, 85, 247, 0.18);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(217, 70, 239, 0.18);
  color: var(--neon);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.25);
}

.price {
  font-family: var(--display);
  font-size: 28px;
  margin: 8px 0 2px;
}

.price small {
  font-family: var(--font);
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.perks {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  color: var(--muted);
}

.perks li {
  padding: 4px 0 4px 18px;
  position: relative;
}

.perks li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px #d946ef;
  position: absolute;
  left: 0;
  top: 10px;
}

.row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.row + .row,
.list .row {
  border-top: 1px solid var(--stroke);
}

.ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(217, 70, 239, 0.12);
  color: var(--neon);
  flex-shrink: 0;
}

.row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ref-code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.08em;
  font-size: 22px;
  margin: 8px 0 14px;
  color: #f5d0fe;
  text-shadow: 0 0 14px rgba(217, 70, 239, 0.45);
}

.legal {
  white-space: pre-wrap;
  color: #ddd0f0;
  line-height: 1.65;
  font-size: 14px;
}

.page header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.back {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(168, 85, 247, 0.08);
  color: var(--text);
}

.dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  height: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(14, 8, 24, 0.9);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  z-index: 5;
}

.dock-btn {
  border: 0;
  background: transparent;
  color: #8b7aa3;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.dock-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-btn.active {
  color: var(--neon);
  text-shadow: 0 0 10px rgba(217, 70, 239, 0.45);
}

.sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 2, 12, 0.72);
}

.sheet-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86%;
  overflow: auto;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  background: #160a24;
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--stroke);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: #4c2d6e;
  margin: 6px auto 14px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  margin: 12px 0 4px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #e8dcf8;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.doc-link {
  display: inline-block;
  margin: 0 0 8px 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e879f9;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 0 0 10px rgba(217, 70, 239, 0.55);
  cursor: pointer;
}

.legal-gate {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(5, 1, 10, 0.88);
  display: grid;
  place-items: center;
  padding: 16px 16px 88px;
  pointer-events: auto;
}

body.gate-open .dock {
  pointer-events: none;
  opacity: 0.35;
}

.check .box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid rgba(196, 140, 255, 0.45);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: inset 0 0 8px rgba(168, 85, 247, 0.12);
}

.check[aria-pressed="true"] .box {
  background: linear-gradient(180deg, #e879f9, #a855f7);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.55);
}

.check[aria-pressed="true"] .box::after {
  content: "";
  display: block;
  width: 6px;
  height: 10px;
  margin: 2px auto 0;
  border: solid #1a0528;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.legal-gate[hidden],
.sheet[hidden],
.gate-doc[hidden],
.gate-card[hidden] {
  display: none !important;
}

.gate-card {
  width: min(100%, 440px);
  background: #160a24;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  padding: 22px 18px 18px;
  margin-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.18);
}

.gate-doc {
  max-height: min(78dvh, 640px);
  overflow: auto;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--dock) + 18px);
  transform: translateX(-50%);
  background: #1e1030;
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  z-index: 40;
  font-size: 13px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: -4px 0 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 180, 92, 0.1);
  color: var(--warn);
  font-size: 12px;
  border: 1px solid rgba(255, 180, 92, 0.2);
}
