:root,
html[data-theme="light"] {
  --bg: #eef3f9;
  --bg-raised: #ffffff;
  --ink: #0b1a33;
  --muted: #5b6b82;
  --line: #d5deea;
  --accent: #1d4f91;
  --accent-ink: #ffffff;
  --shadow: 0 18px 40px rgba(11, 26, 51, 0.08);
  --glow-1: #c5d7f0;
  --glow-2: #d4e0f2;
  --hover: rgba(255, 255, 255, 0.55);
  --radius: 18px;
  --max: 1080px;
  --owned: #1f8a4c;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #07101e;
  --bg-raised: #0e1a2e;
  --ink: #e8eef8;
  --muted: #9aabc2;
  --line: #24344c;
  --accent: #5b8fd4;
  --accent-ink: #ffffff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  --glow-1: #0c2348;
  --glow-2: #102a52;
  --hover: rgba(255, 255, 255, 0.08);
  --owned: #3dbe74;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #07101e;
    --bg-raised: #0e1a2e;
    --ink: #e8eef8;
    --muted: #9aabc2;
    --line: #24344c;
    --accent: #5b8fd4;
    --accent-ink: #ffffff;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    --glow-1: #0c2348;
    --glow-2: #102a52;
    --hover: rgba(255, 255, 255, 0.08);
    --owned: #3dbe74;
    color-scheme: dark;
  }
}

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

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--glow-1) 0%, transparent 55%),
    radial-gradient(900px 400px at -10% 110%, var(--glow-2) 0%, transparent 50%),
    var(--bg);
  line-height: 1.55;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}

html[data-theme="dark"] .brand-logo {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .brand-logo {
    filter: invert(1);
  }
}

html[data-theme="light"] .brand-logo {
  filter: none;
}

nav {
  display: flex;
  gap: 6px;
}

.tab {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.tab:hover {
  color: var(--ink);
  background: var(--hover);
}

.tab.is-active {
  color: var(--ink);
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cart-link {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cart-link:hover,
.cart-link.has-items,
.cart-link.is-active {
  border-color: var(--accent);
  color: var(--ink);
}

.cart-link svg {
  width: 18px;
  height: 18px;
}

.cart-link svg circle {
  fill: currentColor;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon {
  fill: currentColor;
  stroke: none;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }

  html:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

main {
  flex: 1;
  padding: 56px 0 88px;
}

.hero {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
  max-width: 720px;
}

main.home .hero {
  max-width: none;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hero-title-row h1 {
  flex: 1;
  min-width: 0;
}

.active-users {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.active-users-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--owned);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--owned) 55%, transparent);
  animation: active-users-pulse 2s ease-out infinite;
}

.active-users-copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.active-users-count {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.active-users-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes active-users-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--owned) 50%, transparent);
  }
  70% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--owned) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--owned) 0%, transparent);
  }
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.inline-link {
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card,
.panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  padding: 22px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.85;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg));
  color: var(--accent);
  display: grid;
  place-items: center;
}

.card-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-title h2 {
  margin: 0;
}

.thumb {
  height: 140px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #07101e 0%, #1d4f91 48%, var(--accent) 100%);
}

.thumb.alt {
  background:
    linear-gradient(135deg, #0a1a30 0%, #163a6e 55%, #5b8fd4 100%);
}

.thumb.soft {
  background:
    linear-gradient(135deg, #0e1a2e 0%, #2a5fa8 60%, #9bb8de 100%);
}

.card h2,
.panel h2 {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.price,
.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 650;
  background: var(--ink);
  color: var(--bg);
  cursor: default;
}

a.btn,
button.btn {
  cursor: pointer;
}

button.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

button.btn.is-soon:disabled {
  cursor: default;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-name {
  display: none !important;
}

.auth-menu {
  position: relative;
}

.auth-avatar-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.auth-avatar-btn:hover {
  border-color: var(--accent);
}

.auth-avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.auth-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 22%, var(--bg));
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.auth-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.auth-menu-item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-menu-item:hover {
  background: var(--hover);
}

.auth-card {
  max-width: 440px;
}

.google-btn {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.google-btn iframe,
.google-btn > div {
  margin: 0 auto;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 650;
}

.field input {
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.form-msg {
  font-size: 0.9rem;
  font-weight: 650;
}

.form-msg.is-error {
  color: #b42318;
}

.form-msg.is-ok {
  color: #1f7a45;
}

html[data-theme="dark"] .form-msg.is-error {
  color: #f07178;
}

html[data-theme="dark"] .form-msg.is-ok {
  color: #3dd68c;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .form-msg.is-error {
    color: #f07178;
  }

  html:not([data-theme="light"]) .form-msg.is-ok {
    color: #3dd68c;
  }
}

.auth-switch {
  color: var(--muted);
  font-size: 0.92rem;
}

main.home {
  display: flex;
  flex-direction: column;
  padding-bottom: 48px;
}

.home-screen {
  display: flex;
  flex-direction: column;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn.ghost:hover {
  border-color: var(--accent);
  background: var(--hover);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.request-cta {
  margin-top: 2.5vh;
}

.features {
  margin-top: 0;
  padding-top: 12vh;
  padding-bottom: 11.04vh;
}

.features-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  margin: 8px 0 22px;
}

.faq {
  margin-top: 0;
  padding-top: 11.04vh;
  padding-bottom: 8vh;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq-list details {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 20px;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.03em;
  padding: 16px 28px 16px 0;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  color: var(--muted);
  padding: 0 0 18px;
  max-width: 62ch;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature h3 {
  font-size: 1rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
}

.home-cta {
  margin-top: 48px;
  margin-bottom: 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-note {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-cta .btn {
  padding: 22px 50px;
  font-size: 1.38rem;
  min-width: 288px;
}

.store-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.store-filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--bg-raised);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.store-filter:hover {
  color: var(--ink);
}

.store-filter.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

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

.store-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.store-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.store-card-link {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.store-card-link:hover h2 {
  color: var(--accent);
}

.store-card.is-owned {
  background: color-mix(in srgb, var(--owned) 18%, var(--bg-raised));
  border-color: color-mix(in srgb, var(--owned) 55%, var(--line));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--owned) 18%, transparent);
}

.store-card[hidden] {
  display: none;
}

.store-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.store-tag {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.store-price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.store-price.is-free {
  color: var(--accent);
}

.store-price.is-soon,
.store-buy.is-soon {
  color: var(--muted);
}

.store-card h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.store-card p:not(.store-tag):not(.store-price):not(.store-msg) {
  color: var(--muted);
  font-size: 0.92rem;
}

.script-page {
  max-width: 760px;
}

.script-back {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.script-back:hover {
  color: var(--accent);
}

.script-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.script-buy-box {
  display: grid;
  gap: 10px;
  justify-items: start;
  flex-shrink: 0;
}

.script-buy-box .store-price {
  font-size: 1.35rem;
}

.script-features-wrap h2 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin: 8px 0 14px;
}

.script-features,
.script-features ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.script-features > li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.script-features > li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--owned);
  font-weight: 700;
}

.script-features li strong {
  font-weight: 700;
}

.script-features ul {
  margin-top: 8px;
  gap: 6px;
}

.script-features ul li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.script-features ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--owned);
  font-weight: 700;
  font-size: 0.82rem;
}

.store-buy {
  margin-top: 6px;
  justify-self: start;
  padding: 8px 16px;
  font-size: 0.88rem;
}

.store-buy.is-owned {
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: default;
}

.store-buy.is-in-cart {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.store-msg {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.store-msg.is-ok {
  color: var(--accent);
}

.start-options {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.discord-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 720px;
}

.discord-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: #5865f2;
  color: #fff;
  display: grid;
  place-items: center;
}

.discord-mark svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.discord-copy {
  display: grid;
  gap: 4px;
  flex: 1;
}

.discord-copy p {
  color: var(--muted);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  padding: 12px 22px;
  white-space: nowrap;
}

.btn-discord:hover {
  background: #4752c4;
}

.download-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}

.download-mark svg {
  width: 26px;
  height: 26px;
}

.setup-page {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.setup-steps {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.setup-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.setup-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.setup-step h2 {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.setup-step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.setup-note {
  padding: 22px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.setup-note h2 {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.setup-note p {
  color: var(--muted);
  font-size: 0.95rem;
}

.setup-note p + p {
  margin-top: 8px;
}

.download-layout,
.docs-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 28px;
}

.list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.docs-nav {
  display: grid;
  gap: 8px;
}

.docs-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.docs-nav a.is-active,
.docs-nav a:hover {
  background: var(--bg);
  color: var(--ink);
}

.prose {
  display: grid;
  gap: 14px;
}

.prose h2 {
  margin-top: 10px;
}

.prose p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.success-page {
  max-width: 720px;
}

.success-hero {
  max-width: none;
}

.success-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.cart-page {
  max-width: 720px;
}

.cart-panel {
  display: grid;
  gap: 18px;
}

.cart-banner {
  margin: -16px 0 24px;
}

.cart-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-item strong {
  letter-spacing: -0.03em;
}

.cart-item-price {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  margin-top: 5%;
}

.cart-total {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.cart-total strong {
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.account-page {
  max-width: 720px;
}

.account-stack {
  display: grid;
  gap: 16px;
}

.account-card {
  display: grid;
  gap: 14px;
}

.account-copy {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 58ch;
}

.account-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.account-meta > div {
  display: grid;
  gap: 2px;
}

.account-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-meta dd {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.account-status {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.account-status.is-on {
  color: var(--owned);
}

.account-status.is-off {
  color: var(--muted);
}

.account-banner {
  margin: -16px 0 24px;
}

.mfa-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.account-secret {
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-all;
}

.account-secret code {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.btn.danger,
.btn.danger-fill {
  color: #b42318;
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}

.btn.danger-fill {
  background: #b42318;
  color: #fff;
  box-shadow: none;
}

html[data-theme="dark"] .btn.danger,
html[data-theme="dark"] .btn.danger-fill {
  color: #f07178;
}

html[data-theme="dark"] .btn.danger-fill {
  background: #f07178;
  color: #07101e;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .btn.danger,
  html:not([data-theme="light"]) .btn.danger-fill {
    color: #f07178;
  }

  html:not([data-theme="light"]) .btn.danger-fill {
    background: #f07178;
    color: #07101e;
  }
}

.field[hidden],
form[hidden],
#mfa-enroll[hidden],
#mfa-idle[hidden],
#mfa-disable-form[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .grid,
  .features-grid,
  .download-layout,
  .docs-layout,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .auth-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .discord-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .hero-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
