:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

.header {
  background: linear-gradient(135deg, #312e81, #4f46e5);
  color: white;
  padding: 1.5rem 2rem;
}

.back-link {
  color: #c7d2fe;
  text-decoration: none;
  font-size: 0.875rem;
}

.back-link:hover { text-decoration: underline; }

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  flex-shrink: 0;
}

.brand-logo.small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand h1 { margin: 0; font-size: 1.5rem; }
.brand p { margin: 0.25rem 0 0; opacity: 0.9; font-size: 0.9rem; }

.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  width: 100%;
}

.info-panel h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.plan-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.plan-card h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.plan-card .price { margin: 0 0 0.5rem; color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.plan-card ul { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }

.notice {
  background: #eef2ff;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.legal-link { font-size: 0.85rem; margin-top: 1rem; }
.legal-link a { color: var(--primary); }

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
}

.form-panel h2 { margin: 0 0 0.25rem; }
.subtitle { color: var(--muted); margin: 0 0 1.5rem; font-size: 0.9rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

input[type="email"], input[type="text"], input[type="tel"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(79,70,229,0.25);
  border-color: var(--primary);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.85rem;
}

.checkbox-label input { margin-top: 0.2rem; flex-shrink: 0; }
.checkbox-label a { color: var(--primary); }

.btn {
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: #e2e8f0;
  color: var(--text);
}

.error { color: #dc2626; font-size: 0.875rem; margin-top: 0.75rem; }
.hidden { display: none !important; }

.divider {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--border);
}

.divider span {
  background: var(--surface);
  padding: 0 0.75rem;
  position: relative;
}

.activate-hint h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.activate-hint p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.activate-hint a { color: var(--primary); }

.success-icon {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  color: #166534;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.license-key-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: #f1f5f9;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.mono {
  font-family: Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
  word-break: break-all;
}

.summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; }

.next-steps {
  background: #eef2ff;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.9rem;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
}
