@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #0b1220;
  --surface: #131c2e;
  --surface-2: #1a2538;
  --border: #253048;
  --text: #edeff5;
  --muted: #8892a6;
  --signal: #b4ff39;
  --signal-dim: #7fbf20;
  --data: #4fd1ff;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}

.wrap {
  width: 100%;
  max-width: 420px;
}

/* ---- Header / signature signal mark ---- */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.signal-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.signal-mark span {
  width: 5px;
  background: var(--border);
  border-radius: 2px;
  animation: fill-bar 1.6s ease-in-out infinite;
}

.signal-mark span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.signal-mark span:nth-child(2) { height: 13px; animation-delay: 0.15s; }
.signal-mark span:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.signal-mark span:nth-child(4) { height: 22px; animation-delay: 0.45s; }

@keyframes fill-bar {
  0%, 100% { background: var(--border); }
  50% { background: var(--signal); }
}

@media (prefers-reduced-motion: reduce) {
  .signal-mark span { animation: none; background: var(--signal); }
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand-name small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---- Headline ---- */

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.subhead {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

/* ---- Phone input ---- */

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  margin-bottom: 24px;
}

input[type="tel"]:focus {
  outline: none;
  border-color: var(--signal);
}

/* ---- Plan type toggle ---- */

.toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.toggle button {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 7px;
  cursor: pointer;
}

.toggle button.active {
  background: var(--surface-2);
  color: var(--text);
}

.toggle button.active[data-category="time"] { box-shadow: inset 0 0 0 1px var(--signal); color: var(--signal); }
.toggle button.active[data-category="weekly"] { box-shadow: inset 0 0 0 1px var(--data); color: var(--data); }
.toggle button.active[data-category="monthly"] { box-shadow: inset 0 0 0 1px var(--data); color: var(--data); }

/* ---- Plan cards ---- */

.plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.plan-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.plan-card:focus-visible,
.plan-card.selected {
  border-color: var(--signal);
  outline: none;
}

.plan-card .label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.plan-card .price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 15px;
  color: var(--signal);
}

/* ---- CTA ---- */

button.cta {
  width: 100%;
  padding: 16px;
  background: var(--signal);
  color: #0b1220;
  border: none;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

button.cta:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.error-text {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  min-height: 16px;
}

/* ---- Success page ---- */

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.status-card .big-check {
  font-size: 36px;
  margin-bottom: 8px;
}

.promo-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-row a {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.promo-row a.primary {
  background: var(--signal);
  color: #0b1220;
}

.promo-row a.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.footnote {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}
