/**
 * Shared styles for connection / onboarding / error status pages.
 * Served from /css/status.css (server/assets/css).
 */

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

body {
  font-family:
    Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  padding: 32px 16px;
  color: #1a202c;
  -webkit-font-smoothing: antialiased;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 28px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-size: 26px;
  font-weight: 800;
  color: #1d4ed8;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 20px;
}

.check,
.icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.icon.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.status-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: #2563eb;
}

h1 {
  color: #1a202c;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}

.lede,
.card > p,
.message {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
  text-align: left;
}

.card > p.center,
.message.center,
.lede.center {
  text-align: center;
}

.btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 10px;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
}

.shopify-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f8e8;
  border: 1px solid #96bf48;
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 20px;
}

.shopify-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #96bf48;
}

.shopify-label {
  font-size: 13px;
  font-weight: 600;
  color: #5a8a1f;
}

.steps {
  background: #f8fafc;
  border-radius: 12px;
  padding: 18px 16px;
  margin: 20px 0;
  text-align: left;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.step:last-child {
  margin-bottom: 0;
}

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

.step-text {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
  padding-top: 2px;
}

.status {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0 10px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.billing-notice {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.browser-note {
  margin-top: 16px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.shop-name {
  font-weight: 600;
  color: #2563eb;
}

@media (max-width: 480px) {
  body {
    padding: 16px 12px;
  }

  .card {
    padding: 28px 20px 22px;
  }
}
