/* Kura Website — shared styles */
/* Matches launcher visual style (cmd/launcher/templates/) */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f4f9;
  color: #333;
  min-height: 100vh;
  line-height: 1.5;
}

/* ---- Layout ---- */

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

.container-sm {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header / Nav ---- */

header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0;
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.logo span {
  color: #007bff;
}

/* ---- Footer ---- */

footer {
  border-top: 1px solid #e0e0e0;
  background: white;
  padding: 24px 0;
  text-align: center;
  color: #666;
  font-size: 13px;
  margin-top: auto;
}

footer a {
  color: #666;
  text-decoration: none;
}

footer a:hover {
  color: #333;
  text-decoration: underline;
}

/* ---- Card ---- */

.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 32px;
}

.card-sm {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-primary:disabled {
  background: #80bdff;
  cursor: not-allowed;
}

.btn-secondary {
  background: white;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f4f4f9;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---- Forms ---- */

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus {
  border-color: #007bff;
}

/* ---- Spinner ---- */

.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-text {
  color: #666;
  font-size: 14px;
}

/* ---- Alert boxes ---- */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-error {
  background: #fff0f0;
  border: 1px solid #ffcdd2;
  color: #c62828;
}

.alert-success {
  background: #f0fff4;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
}

.alert-warning {
  background: #fffde7;
  border: 1px solid #fff176;
  color: #f57f17;
}

.alert-info {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  color: #1565c0;
}

/* ---- Typography helpers ---- */

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }

.text-muted { color: #666; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }

/* ---- Spacing helpers ---- */

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content {
  flex: 1;
  padding: 48px 0;
}

/* ---- Pricing table ---- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.pricing-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 32px;
}

.pricing-card.featured {
  border-color: #007bff;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.12);
}

.plan-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

.plan-price {
  margin-top: 8px;
  font-size: 40px;
  font-weight: 700;
  color: #333;
}

.plan-price .currency {
  font-size: 20px;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}

.plan-price .period {
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

.plan-desc {
  margin-top: 12px;
  color: #666;
  font-size: 14px;
  min-height: 40px;
}

.plan-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 24px 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.feature-list li .check {
  color: #28a745;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-list li .cross {
  color: #bbb;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-cta {
  margin-top: 28px;
}

/* ---- Hero section ---- */

.hero {
  text-align: center;
  padding: 64px 0 0;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a2e;
}

.hero .subtitle {
  margin-top: 16px;
  font-size: 18px;
  color: #555;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-blue {
  background: #e3f2fd;
  color: #1565c0;
}

.badge-green {
  background: #e8f5e9;
  color: #2e7d32;
}

/* ---- Status page (success/cancel/404) ---- */

.status-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 64px 20px;
}

.status-icon {
  font-size: 56px;
  margin-bottom: 24px;
}

/* ---- Tabs (reset password) ---- */

.tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 24px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn.active {
  color: #007bff;
  border-bottom-color: #007bff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ---- Step indicator ---- */

.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: #999;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-num.active {
  background: #007bff;
  color: white;
}

.step-num.done {
  background: #28a745;
  color: white;
}

.step-sep {
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* ---- Mobile responsive ---- */

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 28px; }
  .hero h1 { font-size: 30px; }
  .hero .subtitle { font-size: 16px; }
  .plan-price { font-size: 32px; }
  .card { padding: 20px; }
  .pricing-card { padding: 24px; }
}
