/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  --win-bg:        #111118;
  --topbar:        #0d0d13;
  --border:        #141420;
  --border2:       #181824;
  --sec-bg:        #0d0d16;
  --sec-border:    #161622;
  --accent:        #5a28ff;
  --accent-mid:    #8b5cf6;
  --accent-bright: #c4b5fd;
  --accent-tab:    #a78bfa;
  --label:         #aaaab9;
  --sec-title:     #cdcddc;
  --dim:           #737387;
  --red:           #c0392b;
  --page-bg:       #06060c;
  color-scheme: dark;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  background: var(--page-bg);
  font-family: 'DM Sans', 'Inter', Arial, sans-serif;
  font-size: 14px;
  color: var(--label);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 100px;
  overflow-x: hidden;
}

/* ── Nav ───────────────────────────────────────────────────────── */
nav {
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-name {
  color: #e8e4ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 450;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--label); }

.nav-cta {
  background: rgba(90,40,255,0.14) !important;
  border: 1px solid rgba(90,40,255,0.32) !important;
  color: var(--accent-tab) !important;
  padding: 7px 20px !important;
  border-radius: 5px;
  font-weight: 500 !important;
  font-size: 13px !important;
  transition: background 0.15s, border-color 0.15s !important;
}
.nav-cta:hover { background: rgba(90,40,255,0.22) !important; border-color: rgba(90,40,255,0.5) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-right: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dim);
  border-radius: 2px;
  transition: background 0.15s;
}
.nav-hamburger:hover span { background: var(--label); }

.nav-mobile {
  display: none;
  flex-direction: column;
  width: calc(100vw - 32px);
  max-width: 900px;
  background: #0c0c14;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: -8px;
  margin-bottom: 16px;
  position: relative;
  z-index: 100;
}

.nav-mobile.open { display: flex; }

.nav-mobile-link {
  padding: 14px 20px;
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { color: var(--label); background: rgba(90,40,255,0.05); }
.nav-mobile-link.accent { color: var(--accent-tab); }
button.nav-mobile-link {
  width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid var(--border);
  font-family: inherit; cursor: pointer;
}

/* ── Nav auth button ───────────────────────────────────────────── */
.nav-auth-btn {
  background: none;
  border: 1px solid rgba(90,40,255,0.28);
  color: var(--dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 450;
  padding: 6px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-auth-btn:hover { background: rgba(90,40,255,0.08); border-color: rgba(90,40,255,0.5); color: var(--label); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  width: 100%;
  max-width: 960px;
  padding: 96px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 18px;
}

.hero-title {
  color: #f0eeff;
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 0.92;
  margin-bottom: 28px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent-mid);
}

.hero-sub {
  color: var(--dim);
  font-size: 15px;
  max-width: 420px;
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 26px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.hero-btn-primary:hover { opacity: 0.85; }

.hero-btn-ghost {
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.hero-btn-ghost:hover { color: var(--label); }

.hero-by {
  display: none; /* removed in new layout */
}

/* ── Horizontal rule ───────────────────────────────────────────── */
.section-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Preview ───────────────────────────────────────────────────── */
.preview-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 72px 24px 80px;
}

.preview-label {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  align-self: flex-start;
  max-width: 960px;
  width: 100%;
}

.menu-outer {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.menu-glow {
  position: absolute;
  inset: -70px -100px;
  background: radial-gradient(ellipse 50% 45% at 50% 50%, rgba(90,40,255,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.menu-scaler {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transform-origin: top center;
}

.esp-win {
  width: 400px;
  height: 450px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(90,40,255,0.08);
}
.esp-win canvas { display: block; }

/* ── Menu window ───────────────────────────────────────────────── */
.menu-window {
  width: 700px;
  height: 450px;
  background: var(--win-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(90,40,255,0.08);
  user-select: none;
}

.topbar {
  height: 36px;
  min-height: 36px;
  background: var(--topbar);
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
  overflow: hidden;
}

.topbar-title {
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin-left: 8px;
}

.topbar-vsep {
  width: 1px;
  height: 12px;
  background: var(--border2);
  margin: 0 10px;
  flex-shrink: 0;
}

.topbar-sub { color: var(--dim); font-size: 11px; }

.sweep {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(90,40,255,0.59);
}
.sweep::after {
  content: '';
  position: absolute;
  top: -3px; bottom: -3px;
  width: 26px;
  background: rgba(220,210,255,1);
  box-shadow: 0 0 18px 12px rgba(139,92,246,0.55), 0 0 40px 22px rgba(90,40,255,0.28);
  animation: sweep 1.33s ease-in-out infinite alternate;
}
@keyframes sweep { from { left: -160px; } to { left: 700px; } }
@media (prefers-reduced-motion: reduce) { .sweep::after { animation: none; left: 350px; } }

.menu-body { flex: 1; display: flex; overflow: hidden; }

.sidebar {
  width: 44px;
  min-width: 44px;
  background: var(--topbar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 10px 4px 0;
  gap: 2px;
}

.stab-sep { height: 1px; background: var(--border); margin: 4px 6px; }

.stab {
  width: 36px; height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.12s;
}
.stab:hover { background: rgba(90,40,255,0.05); }
.stab.active { background: rgba(90,40,255,0.12); }
.stab.active::before {
  content: '';
  position: absolute;
  left: -4px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 28px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.stab svg { width: 15px; height: 15px; fill: var(--accent-mid); opacity: 0.25; transition: opacity 0.12s; pointer-events: none; }
.stab.active svg, .stab:hover svg { opacity: 1; }

.content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.tabbar {
  height: 36px;
  min-height: 36px;
  background: var(--topbar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.tbtn {
  height: 36px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  color: var(--dim);
  background: none;
  border: none;
  position: relative;
  transition: color 0.1s;
}
.tbtn:hover { color: var(--label); }
.tbtn.active { color: var(--accent-tab); }
.tbtn.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 8px; right: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.panel { flex: 1; overflow: hidden; padding: 10px 14px; display: flex; gap: 12px; }
.card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }

.sec { background: var(--sec-bg); border: 1px solid var(--sec-border); border-radius: 6px; padding: 0 0 6px; }
.sec-title { color: var(--sec-title); font-size: 11px; font-weight: 600; padding: 7px 10px 5px; border-bottom: 1px solid var(--border); margin-bottom: 2px; }

.row { display: flex; align-items: center; padding: 3px 10px; min-height: 22px; gap: 4px; }
.rlabel { color: var(--label); font-size: 12px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }

.tog {
  width: 30px; height: 16px;
  background: #141420; border: 1px solid #222232; border-radius: 8px;
  cursor: pointer; flex-shrink: 0; position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.tog::after {
  content: ''; position: absolute;
  width: 11px; height: 11px; background: #2a2a3e; border-radius: 50%;
  top: 2px; left: 2px; transition: left 0.15s, background 0.15s;
}
.tog.on { background: var(--accent); border-color: var(--accent); }
.tog.on::after { left: 16px; background: #fff; }

.chk {
  width: 16px; height: 16px;
  background: #0a0a12; border: 1px solid #2a2a3e; border-radius: 3px;
  cursor: pointer; flex-shrink: 0; position: relative;
  transition: background 0.1s, border-color 0.1s;
}
.chk.on { background: var(--accent); border-color: var(--accent); }
.chk.on::after {
  content: ''; position: absolute;
  left: 4px; top: 1px; width: 5px; height: 9px;
  border-right: 1.8px solid #fff; border-bottom: 1.8px solid #fff;
  transform: rotate(45deg); transform-origin: center;
}

.sld-wrap { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.sld {
  -webkit-appearance: none; appearance: none;
  width: 104px; height: 3px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--pct, 0%), #1e1e2d var(--pct, 0%), #1e1e2d 100%);
}
.sld::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright); cursor: pointer; }
.sld::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright); border: none; cursor: pointer; }
.sld-val { color: var(--label); font-size: 11px; min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }

.nbtn {
  background: #0a0a12; border: 1px solid #2a2a3e;
  color: var(--accent-tab); font-family: inherit; font-size: 11px;
  padding: 3px 10px; border-radius: 4px; cursor: pointer;
  transition: background 0.1s, border-color 0.1s; white-space: nowrap; line-height: 16px;
}
.nbtn:hover { background: rgba(90,40,255,0.15); border-color: rgba(90,40,255,0.4); }
.nbtn.danger { color: var(--red); }
.nbtn.danger:hover { background: rgba(192,57,43,0.15); border-color: rgba(192,57,43,0.4); }

.btn-row { display: flex; gap: 4px; padding: 4px 10px 0; }
.btn-row .nbtn { flex: 1; text-align: center; }

.cfg-list {
  margin: 4px 10px 0;
  background: rgba(6,6,14,0.86);
  border: 1px solid rgba(40,20,80,0.63);
  border-radius: 4px;
  overflow-y: auto;
  max-height: 86px;
}
.cfg-list::-webkit-scrollbar { width: 4px; }
.cfg-list::-webkit-scrollbar-thumb { background: rgba(90,40,255,0.5); border-radius: 2px; }
.cfg-item { padding: 3px 8px; font-size: 12px; color: var(--label); cursor: pointer; transition: background 0.1s; }
.cfg-item:hover { background: rgba(90,40,255,0.08); }
.cfg-item.sel { color: var(--accent-bright); }
.cfg-item.loaded { color: var(--accent-mid); }

.cfg-input-row { padding: 5px 10px 0; }
.cfg-input {
  width: 100%;
  background: rgba(6,6,14,0.86); border: 1px solid rgba(40,20,80,0.63);
  border-radius: 4px; color: var(--label); font-family: inherit; font-size: 12px;
  padding: 3px 6px; outline: none;
}
.cfg-input:focus { border-color: rgba(90,40,255,0.5); }

.cfg-hint { color: var(--dim); font-size: 10px; padding: 4px 12px 0; }

.cfg-textarea {
  display: block; width: 100%; height: 52px;
  background: rgba(6,6,14,0.86); border: 1px solid rgba(40,20,80,0.63);
  border-radius: 4px; color: var(--dim); font-family: 'Courier New', monospace;
  font-size: 10px; padding: 4px 6px; outline: none; resize: none;
}
.cfg-textarea:focus { border-color: rgba(90,40,255,0.5); }
.cfg-textarea-row { padding: 4px 10px 0; }

.krow { display: flex; align-items: center; padding: 3px 10px; gap: 4px; min-height: 22px; }
.krow-label { color: var(--label); font-size: 12px; flex: 1; }
.krow-val { color: var(--dim); font-size: 12px; }

/* ── Features ──────────────────────────────────────────────────── */
.features-section {
  width: 100%;
  max-width: 960px;
  padding: 80px 24px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 48px;
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-mid);
}

.section-title {
  color: #eeeaff;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

/* old selectors from previous markup — kept for compat */
.section-eyebrow { color: var(--accent-mid); font-size: 10px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.feat {
  background: #0a0a12;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.15s;
}
.feat:hover { background: #0d0d18; }

.feat-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 20px; height: 20px; fill: var(--accent-mid); opacity: 0.7; }

.feat-name {
  color: #ddd9f5;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.feat-desc {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}

/* ── Pricing ───────────────────────────────────────────────────── */
.pricing-section {
  width: 100%;
  max-width: 960px;
  padding: 80px 24px;
}

.plans {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
}

.plan {
  flex: 1;
  min-width: 260px;
  background: #09090f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.plan.featured {
  background: #0d0b1a;
  border-color: rgba(90,40,255,0.4);
  position: relative;
  overflow: hidden;
}
.plan.featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,40,255,0.8), transparent);
}

.plan-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(90,40,255,0.2);
  border: 1px solid rgba(90,40,255,0.4);
  color: var(--accent-tab);
  font-size: 10px; font-weight: 600;
  padding: 3px 9px; border-radius: 4px;
  letter-spacing: 0.5px;
}

.plan-name {
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-amount {
  color: #eeeaff;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.plan-currency { color: var(--dim); font-size: 18px; font-weight: 500; }
.plan-period { color: var(--dim); font-size: 13px; margin-left: 2px; }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  flex: 1;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: var(--label);
}

.plan-feature-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-mid);
  flex-shrink: 0;
}

.plan-feature.muted { color: #3a3a50; }
.plan-feature.muted .plan-feature-dot { background: #222232; }

.plan-btn {
  display: block; width: 100%; padding: 11px 0;
  border-radius: 6px; text-align: center;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s, background 0.15s;
  border: none; text-decoration: none;
}
.plan-btn.outline {
  background: transparent;
  border: 1px solid rgba(90,40,255,0.3);
  color: var(--accent-tab);
}
.plan-btn.outline:hover { background: rgba(90,40,255,0.08); }
.plan-btn.solid { background: var(--accent); color: #fff; }
.plan-btn.solid:hover { opacity: 0.85; }

/* ── Auth Modal ────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(4,4,10,0.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.auth-overlay[hidden] { display: none !important; }

.auth-modal {
  background: #0f0f1c;
  border: 1px solid rgba(90,40,255,0.35);
  border-radius: 12px;
  padding: 28px 28px 24px;
  width: 100%; max-width: 360px;
  position: relative;
  box-shadow: 0 0 60px rgba(90,40,255,0.12), 0 24px 64px rgba(0,0,0,0.6);
  animation: modalIn 0.18s ease;
}

.auth-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.auth-tab {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--dim); padding: 8px 18px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.auth-tab.active { color: var(--accent-bright); border-bottom-color: var(--accent); }
.auth-tab:hover:not(.active) { color: var(--label); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label {
  font-size: 11px; font-weight: 500; color: var(--dim);
  letter-spacing: 0.3px;
}
.auth-field input {
  background: rgba(6,6,14,0.86);
  border: 1px solid rgba(40,20,80,0.5);
  border-radius: 6px;
  color: var(--label);
  font-family: inherit; font-size: 13px;
  padding: 9px 12px; outline: none;
  transition: border-color 0.15s;
}
.auth-field input:focus { border-color: rgba(90,40,255,0.55); }
.auth-field input::placeholder { color: var(--dim); }

.auth-msg {
  font-size: 12px; padding: 8px 10px;
  border-radius: 5px; text-align: center;
}
.auth-msg.error { background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.3); color: #e74c3c; }
.auth-msg.success { background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.3); color: #2ecc71; }

.auth-loggedin {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 8px 0;
}
.auth-welcome {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; color: var(--sec-title);
}
.auth-sub { font-size: 12px; color: var(--dim); }
.auth-sub-val { color: var(--accent-mid); font-weight: 600; }

/* ── Checkout Modal ────────────────────────────────────────────── */
.checkout-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(4,4,10,0.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.checkout-overlay[hidden] { display: none !important; }

.checkout-modal {
  background: #0f0f1c;
  border: 1px solid rgba(90,40,255,0.35);
  border-radius: 12px;
  padding: 32px 28px 28px;
  width: 100%; max-width: 360px;
  position: relative;
  box-shadow: 0 0 60px rgba(90,40,255,0.12), 0 24px 64px rgba(0,0,0,0.6);
  animation: modalIn 0.18s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.checkout-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--dim); font-size: 20px; line-height: 1;
  transition: color 0.15s;
}
.checkout-close:hover { color: var(--label); }

.checkout-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.checkout-brand {
  color: var(--accent-bright);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.5px;
}

.checkout-plan-name {
  color: var(--dim); font-size: 11px; font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.checkout-plan-price {
  color: #eeeaff; font-size: 30px; font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 20px;
}

.checkout-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 24px;
}
.checkout-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--label);
}

.checkout-pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 0;
  background: var(--accent); color: #fff;
  border-radius: 6px; text-decoration: none;
  font-family: inherit; font-size: 14px; font-weight: 600;
  transition: opacity 0.15s;
  border: none; cursor: pointer;
}
.checkout-pay-btn:hover { opacity: 0.85; }
.checkout-pay-btn svg { width: 14px; height: 14px; fill: #fff; }

.checkout-note {
  color: var(--dim); font-size: 11px;
  text-align: center; margin-top: 12px;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 32px 24px 0;
  max-width: 960px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-top: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-name { color: var(--dim); font-size: 12px; font-weight: 500; letter-spacing: 0.2px; }
.footer-note { color: #2a2a3c; font-size: 11px; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .esp-win { display: none; }
}

@media (max-width: 740px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .menu-scaler { transform-origin: top center; }
  .menu-outer { width: calc(100vw - 32px); overflow: hidden; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .plans { flex-direction: column; }
  .plan { min-width: unset; }
}

@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -2px; }
  .preview-section { padding-bottom: 32px; }
  .menu-outer { justify-content: flex-start; }

  .auth-overlay,
  .checkout-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .auth-modal,
  .checkout-modal {
    border-radius: 14px 14px 0 0;
    max-width: 100%;
    padding: 24px 20px 32px;
    animation: sheetIn 0.22s ease;
  }

  @keyframes sheetIn {
    from { transform: translateY(100%); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .auth-field input {
    font-size: 16px;
    padding: 11px 12px;
  }

  .checkout-plan-price { font-size: 26px; }
  .checkout-pay-btn { font-size: 15px; padding: 14px 0; }
}

@media (max-width: 600px) {
  body { padding-bottom: 56px; }

  nav { padding: 18px 16px; }

  .hero { padding: 56px 16px 48px; }
  .hero-title { letter-spacing: -2px; }
  .hero-sub { font-size: 14px; }

  .preview-section { padding: 48px 16px 48px; }
  .preview-label { font-size: 10px; }

  .features-section { padding: 56px 16px; }
  .pricing-section { padding: 56px 16px; }
  .section-title { font-size: 24px; }

  .feat { padding: 20px 18px; gap: 10px; }
  .feat-name { font-size: 13px; }
  .feat-desc { font-size: 12px; }

  .plan { padding: 24px 20px; gap: 18px; }
  .plan-amount { font-size: 32px; }
  .plan-feature { font-size: 12px; }
  .plan-btn { font-size: 13px; padding: 10px 0; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px 0;
    gap: 6px;
    margin-top: 24px;
  }
}
