:root {
  --ink: #0f172a;
  --muted: #475569;
  --brand: #2563eb;
  --line: rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body.welcome-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 45%, #e2e8f0 100%);
}

body.welcome-boot .welcome-page {
  visibility: hidden;
}

.welcome-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 56px;
}

.welcome-shell {
  width: min(100%, 1080px);
}

.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
}

.welcome-brand {
  padding: 8px 4px 0;
}

.welcome-brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.welcome-logo {
  display: block;
  flex-shrink: 0;
}

.welcome-wordmark {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.welcome-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.welcome-brand h1,
.welcome-card h1 {
  margin: 12px 0 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.welcome-lead {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.welcome-points {
  margin: 24px 0 0;
  padding-left: 1.2rem;
  line-height: 1.75;
  color: var(--ink);
}

.welcome-points li + li {
  margin-top: 6px;
}

.welcome-panel {
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.welcome-form {
  display: grid;
  gap: 0;
}

.welcome-form-title {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.welcome-form-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.welcome-field {
  margin-top: 18px;
}

.welcome-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.welcome-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.welcome-field input::placeholder {
  color: #94a3b8;
}

.welcome-field input:hover {
  border-color: #94a3b8;
}

.welcome-field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.welcome-field input:invalid:not(:placeholder-shown) {
  border-color: #f87171;
}

.welcome-button {
  margin-top: 24px;
  min-width: 180px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

.welcome-button--full {
  width: 100%;
}

.welcome-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
}

.welcome-button:active:not(:disabled) {
  transform: translateY(0);
}

.welcome-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.welcome-error {
  margin: 16px 0 0;
  color: #b91c1c;
  font-size: 0.95rem;
}

.welcome-plans {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.welcome-plans-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.welcome-plans-head h2 {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

.welcome-plans-lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.welcome-plans-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.welcome-plans-loading {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.welcome-plan-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.welcome-plan-card--featured {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
}

.welcome-plan-name {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.welcome-plan-price {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
}

.welcome-plan-trial {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
}

.welcome-plan-summary {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.welcome-plan-features {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink);
}

.welcome-plan-features li {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.welcome-plan-features li::before {
  content: "✓";
  flex-shrink: 0;
  font-weight: 700;
  color: var(--brand);
}

.welcome-card {
  width: min(100%, 560px);
  padding: 40px 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.welcome-shop {
  margin: 20px 0 0;
  font-weight: 600;
  color: var(--brand);
}

.welcome-success h1 {
  color: #166534;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .welcome-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .welcome-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .welcome-page {
    padding: 24px 16px 40px;
  }

  .welcome-panel {
    padding: 24px 20px;
  }

  .welcome-plans-grid {
    grid-template-columns: 1fr;
  }

  .welcome-plans {
    margin-top: 36px;
    padding-top: 32px;
  }
}
