:root {
  --bg: #07080d;
  --panel: #12141c;
  --panel2: #1a1d28;
  --line: #2a3144;
  --text: #f4f7ff;
  --muted: #9aa4b8;
  --accent: #6aa6ff;
  --good: #00ffaa;
  --gold: #ffd166;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 600px at 20% -10%, #1a2744 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #1a3d32 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.shell { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.shell-wide { max-width: 1200px; }

h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; }
p { margin: 0 0 12px; color: var(--muted); line-height: 1.55; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #041018; border-color: transparent; }
.btn.good { background: #123d2e; color: var(--good); border-color: #2d5a44; }
.btn.ghost { background: transparent; }

.hidden { display: none !important; }

.progress {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #232838;
}
.progress span.on { background: var(--accent); }

.center-flow {
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-card { width: 100%; max-width: 480px; text-align: center; }
.flow-card button { width: 100%; margin-top: 8px; }

/* Paywall */
.pay-hero { text-align: center; margin-bottom: 28px; }
.pay-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.billing-toggle {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 16px 0 24px;
}
.billing-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.billing-toggle button.active {
  background: var(--accent);
  color: #041018;
}

.shell-wide {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.feat-group {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.feat-group strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  margin-bottom: 4px;
}
.feat-group ul {
  margin: 4px 0 0;
  padding-left: 16px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.plan.highlight {
  border-color: var(--good);
  box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.25), 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: scale(1.02);
}
.plan .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--good);
  color: #041018;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 18px; margin-top: 8px; }
.plan .price { font-size: 32px; font-weight: 800; margin: 8px 0; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  flex: 1;
  font-size: 13px;
  color: var(--muted);
}
.plan li { padding: 6px 0 6px 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); }
.plan .btn { width: 100%; margin-top: auto; }

.compare {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 800px) { .checkout-layout { grid-template-columns: 1fr; } }

#shopify-mount { min-height: 52px; }
