:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --muted: #64748b;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.site-header .container,
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a {
  margin-left: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.pricing {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
}

.tag {
  background: #e0e7ff;
  color: #3730a3;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.hero-card,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.hero-card ul {
  padding-left: 1.2rem;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.section {
  padding: 3rem 0;
}

.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.highlight {
  text-align: center;
  padding: 3rem 2rem;
}

.button {
  border: 1px solid transparent;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  font-size: 1rem;
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.narrow {
  width: min(420px, 92%);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 0.9rem;
}

.form input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-top: 0.4rem;
  font-size: 1rem;
}

.form input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.status {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status.ok {
  background: #dcfce7;
  color: var(--success);
}

.status.warn {
  background: #fef9c3;
  color: var(--warning);
}

.status.muted {
  background: #e2e8f0;
  color: var(--muted);
}

.status.info {
  background: #dbeafe;
  color: #2563eb;
}

/* Auth styles */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.auth-form {
  flex-direction: column;
}

.error-message {
  background: #fee2e2;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.success-message {
  background: #dcfce7;
  color: #16a34a;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.user-email {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-right: 1rem;
}

.loading-state,
.empty-state,
.error-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.error-state {
  color: #dc2626;
}

@media (max-width: 600px) {
  .actions {
    flex-direction: column;
  }
}
