:root {
  --bg: #050508;
  --card: #111118;
  --border: #222230;
  --text: #F2F0FF;
  --muted: #9B98B8;
  --dim: #4A4860;
  --accent: #D4FF47;
  --green: #2EE89A;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); }

.container { max-width: 960px; margin: 0 auto; padding: 24px 20px 64px; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  display: block; object-fit: contain;
}

.hero { text-align: center; margin-bottom: 48px; }
.hero h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 12px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; font-size: 16px; }

.coverage { text-align: center; margin: 0 0 48px; }
.coverage h2 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 10px; }
.coverage p { color: var(--muted); max-width: 580px; margin: 0 auto 22px; font-size: 15px; }
.source-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 640px; margin: 0 auto; }
.source-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 9px 16px;
  font-size: 13px; font-weight: 700;
  color: var(--text);
}
.source-chip-more { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0 48px;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 15px; }
.step p { margin: 0; font-size: 13px; color: var(--muted); }

.auth-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  margin: 0 auto 40px;
}
.auth-box h2 { margin: 0 0 8px; font-size: 18px; text-align: center; }
.auth-box p { margin: 0 0 16px; font-size: 13px; color: var(--muted); text-align: center; }

input {
  width: 100%;
  background: #0E0E16;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 10px;
}
input:focus { outline: none; border-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  border: none; border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); margin-top: 8px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

#auth-status { font-size: 13px; color: var(--green); text-align: center; margin-top: 12px; min-height: 18px; }
#auth-error { font-size: 13px; color: #FF5A72; text-align: center; margin-top: 8px; }

.plans-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }

.plan-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.plan-card.selected { border-width: 2px; }
.plan-card h3 { margin: 0; font-size: 17px; }
.plan-price { font-size: 24px; font-weight: 800; }
.plan-period { font-size: 12px; color: var(--dim); }
.badge {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 99px;
  border: 1px solid currentColor;
  margin-left: 8px;
  vertical-align: middle;
}
.plan-features { list-style: none; padding: 0; margin: 14px 0 0; }
.plan-features li { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.plan-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }

.checkout-bar {
  position: sticky; bottom: 0;
  background: rgba(5,5,8,0.95);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  margin-top: 32px;
}

footer { text-align: center; margin-top: 48px; font-size: 12px; color: var(--dim); }

.hidden { display: none !important; }

/* Success page */
.success-hero { text-align: center; padding: 40px 0; }
.success-hero .icon { font-size: 56px; margin-bottom: 16px; }
.success-steps { text-align: left; max-width: 480px; margin: 0 auto; }
.success-steps li { margin-bottom: 16px; color: var(--muted); }
.success-steps strong { color: var(--text); }
