* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #1A1E2E;
  --bg-card: #20253A;
  --border: #2E3452;
  --text-primary: #F5F5F5;
  --text-secondary: #A8AEBB;
  --text-disabled: #52596E;
  --accent: #FF8C00;
  --accent-secondary: #FFD166;
  --success: #2DD4A7;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  min-height: 100vh;
  padding: 24px 16px 40px;
  -webkit-font-smoothing: antialiased;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
}

.header {
  margin-bottom: 32px;
}

.tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 12px;
}

h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
}

.sub {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.trust-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: ui-monospace, monospace;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  flex-shrink: 0;
}

.plans {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.plan:active {
  transform: scale(0.98);
}

.plan.best {
  border-color: var(--accent);
}

.plan.selecting {
  opacity: 0.7;
  pointer-events: none;
}

.plan-bar {
  height: 4px;
  background: var(--border);
}

.plan.best .plan-bar {
  background: var(--accent);
}

.plan-inner {
  padding: 20px;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.plan-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

.plan-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--bg-primary);
  background: var(--accent-secondary);
  padding: 3px 8px;
}

.plan-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.plan-sub {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: ui-monospace, monospace;
  margin-bottom: 16px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.perks {
  list-style: none;
}

.perks li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.perks li::before {
  content: "—";
  color: var(--accent);
  font-weight: 700;
}

.btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--bg-primary);
  background: var(--accent);
  border: none;
  cursor: pointer;
  font-family: ui-monospace, monospace;
  -webkit-tap-highlight-color: transparent;
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.plan.best .btn {
  background: var(--accent);
}

.legal {
  font-size: 10px;
  color: var(--text-disabled);
  text-align: center;
  line-height: 1.6;
}

.legal a {
  color: var(--accent);
  text-decoration: none;
}

.legal a:active {
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .plan {
    transition: none;
  }
  .plan:active {
    transform: none;
  }
}
