:root {
  --bg: #080909;
  --bg-elev: #0d0f0e;
  --bg-panel: #111413;
  --bg-inset: #050606;
  --line: #1d2320;
  --line-strong: #2c3530;
  --ink: #f1f2ee;
  --ink-2: #a3ada7;
  --ink-3: #68736c;
  --sig: #16e27e;
  --sig-hover: #29f08e;
  --sig-dim: rgba(22, 226, 126, 0.1);
  --sig-line: rgba(22, 226, 126, 0.42);
  --err: #ef4444;
  --err-dim: rgba(239, 68, 68, 0.12);
  --err-line: rgba(239, 68, 68, 0.38);
  --font-disp: "Archivo", system-ui, -apple-system, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 2px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

button,
input {
  font-family: inherit;
}

:is(a, button, input):focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: rgba(8, 9, 9, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  width: 100%;
  height: 60px;
  padding-inline: clamp(16px, 2.5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-disp);
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #05110b;
  background: var(--sig);
  border-radius: var(--r);
}

.brand-text {
  font-size: 16px;
  white-space: nowrap;
}

.brand-tld {
  color: var(--sig);
  font-family: var(--font-mono);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.14s ease;
  white-space: nowrap;
}

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

.nav-links a.is-active {
  color: var(--sig);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  white-space: nowrap;
}

.user-chip b {
  color: var(--sig);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.mobile-drawer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 16px clamp(16px, 2.5vw, 44px) 20px;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.drawer-links a {
  padding: 11px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.drawer-links a:hover {
  color: var(--sig);
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 11px;
}

.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--sig);
  color: #05110b;
  border-color: var(--sig);
}

.btn-primary:hover:not([disabled]) {
  background: var(--sig-hover);
  border-color: var(--sig-hover);
}

.btn-ghost {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover:not([disabled]) {
  background: var(--bg-panel);
  border-color: var(--ink-3);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.page-head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}

.head-copy {
  padding: clamp(26px, 3.6vw, 48px) clamp(16px, 2.5vw, 44px);
  border-right: 1px solid var(--line);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sig);
  margin-bottom: 12px;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  background: var(--sig);
  flex-shrink: 0;
}

.head-copy h1 {
  margin: 0 0 10px;
  font-family: var(--font-disp);
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.head-sub {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 58ch;
}

.acct-strip {
  padding: clamp(24px, 3.4vw, 44px) clamp(16px, 2.5vw, 40px);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.acct-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sig);
  margin-bottom: 6px;
}

.acct-v {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 14px;
}

.acct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-band {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: clamp(24px, 3.5vw, 46px) clamp(16px, 2.5vw, 44px);
}

.note {
  padding: 12px 16px;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--ink-2);
}

.note.err {
  border-color: var(--err-line);
  background: var(--err-dim);
  color: #fca5a5;
}

.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.billing-switch {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  background: var(--bg-inset);
  border-radius: var(--r);
  padding: 3px;
  gap: 3px;
}

.switch-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.switch-btn:hover {
  color: var(--ink);
}

.switch-btn.is-active {
  background: var(--sig);
  color: #05110b;
}

.shop-rate-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}

.spec-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--bg-elev);
  margin-bottom: 22px;
}

.spec-cell {
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.spec-cell:last-child {
  border-right: 0;
}

.spec-k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.spec-v {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.plan-card {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.plan-card:last-child {
  border-right: 0;
}

.plan-card.is-popular {
  background: linear-gradient(180deg, rgba(22, 226, 126, 0.08) 0%, var(--bg-elev) 60%);
}

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

.plan-term-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.plan-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--sig-dim);
  border: 1px solid var(--sig-line);
  color: var(--sig);
  border-radius: var(--r);
  white-space: nowrap;
}

.plan-name {
  margin: 0;
  font-family: var(--font-disp);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.plan-cap {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.plan-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.plan-meta-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--sig);
}

.plan-perks {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  flex: 1;
}

.plan-perks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-check {
  color: var(--sig);
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

.loading-box {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.terms-band {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.term-cell {
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2.5vw, 44px);
  border-right: 1px solid var(--line);
}

.term-cell:last-child {
  border-right: 0;
}

.term-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sig);
  margin-bottom: 8px;
}

.term-cell h3 {
  margin: 0 0 8px;
  font-family: var(--font-disp);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.term-cell p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 6, 0.84);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 24px;
}

.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink-2);
  cursor: pointer;
}

.modal-x:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.modal-kick {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sig);
  margin-bottom: 6px;
}

.modal-title {
  margin: 0 0 6px;
  font-family: var(--font-disp);
  font-size: 22px;
  font-weight: 800;
}

.modal-sub {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.co-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
}

.co-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.co-method-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.co-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.co-method {
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  cursor: pointer;
}

.co-method.active {
  border-color: var(--sig);
  background: var(--sig-dim);
}

.co-method[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.co-m-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.co-m-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--sig);
}

.co-m-tag.soon {
  color: var(--ink-3);
}

.co-foot {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

.footer {
  width: 100%;
  padding: 20px clamp(16px, 2.5vw, 44px);
  background: var(--bg);
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 14px;
}

.footer-sep,
.footer-muted {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.footer-links a:hover {
  color: var(--sig);
}

@media (max-width: 1040px) {
  .page-head {
    grid-template-columns: 1fr;
  }

  .head-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .plan-grid,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .plan-card,
  .term-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .plan-card:last-child,
  .term-cell:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .spec-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-cell:nth-child(2) {
    border-right: 0;
  }

  .spec-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-auth-btn,
  .nav-actions .user-chip,
  .nav-actions [data-auth="in"] {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .spec-bar,
  .drawer-actions,
  .co-methods {
    grid-template-columns: 1fr;
  }

  .spec-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .spec-cell:last-child {
    border-bottom: 0;
  }
}
