:root {
  --sj-blue: #1e4fbf;
  --sj-blue-dark: #163f98;
  --sj-blue-soft: #eef3ff;
  --sj-orange: #f97316;
  --sj-orange-dark: #ea580c;
  --sj-bg: #f6f8fc;
  --sj-bg-hero: linear-gradient(165deg, #f8faff 0%, #eef3fb 45%, #e8eef8 100%);
  --sj-ink: #0f172a;
  --sj-muted: #64748b;
  --sj-border: rgba(148, 163, 184, 0.35);
  --sj-shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.06);
  --sj-shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
  --sj-shadow-lg: 0 24px 60px rgba(30, 79, 191, 0.12);
  --sj-radius: 20px;
  --sj-font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

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

.sj-page {
  background: var(--sj-bg);
  color: var(--sj-ink);
  font-family: var(--sj-font);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.sj-topbar {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--sj-border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.sj-topbar img,
.sj-logo-light {
  height: 56px;
  max-height: 56px;
  width: auto;
}

.staff-sidebar .brand .sj-logo-light,
.staff-sidebar .brand .brand-logo.sj-logo-light {
  background: transparent;
  border-radius: 8px;
  padding: 0;
}

.sj-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sj-nav a {
  border-radius: 999px;
  color: var(--sj-blue-dark);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sj-nav a:hover {
  background: var(--sj-blue-soft);
  color: var(--sj-blue);
}

.sj-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sj-hero {
  background: var(--sj-bg-hero);
  border-bottom: 1px solid var(--sj-border);
  padding: 56px 24px 48px;
}

.sj-hero > div {
  margin: 0 auto;
  max-width: 1100px;
}

.sj-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 18ch;
}

.sj-hero .lead {
  color: var(--sj-muted);
  font-size: 1.12rem;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 58ch;
}

.sj-eyebrow {
  color: var(--sj-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.sj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sj-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--sj-border);
  border-radius: 999px;
  box-shadow: var(--sj-shadow-sm);
  color: var(--sj-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 8px;
  padding: 13px 20px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sj-btn:hover {
  box-shadow: var(--sj-shadow-md);
  transform: translateY(-1px);
}

.sj-btn.primary {
  background: linear-gradient(135deg, var(--sj-blue), var(--sj-blue-dark));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(30, 79, 191, 0.28);
  color: #fff;
}

.sj-btn.orange {
  background: linear-gradient(135deg, var(--sj-orange), var(--sj-orange-dark));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.28);
  color: #fff;
}

.sj-section {
  margin: 0 auto;
  max-width: 1100px;
  padding: 48px 24px;
}

.sj-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 28ch;
}

.sj-section > p:not(.sj-eyebrow) {
  color: var(--sj-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 60ch;
}

/* —— Módulos por segmento —— */
.sj-section-modules {
  background: linear-gradient(165deg, #fafbff 0%, #f0f4fc 100%);
  border-bottom: 1px solid var(--sj-border);
  border-top: 1px solid var(--sj-border);
  max-width: none;
}

.sj-module-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.sj-module-card {
  background: #fff;
  border: 1px solid var(--sj-border);
  border-radius: var(--sj-radius);
  box-shadow: var(--sj-shadow-sm);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 22px 22px 20px;
  position: relative;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.sj-module-card::before {
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.sj-module-card:hover {
  border-color: rgba(30, 79, 191, 0.25);
  box-shadow: var(--sj-shadow-lg);
  transform: translateY(-4px);
}

.sj-module-card h3,
.sj-module-card p,
.sj-module-card .sj-module-cta {
  text-decoration: none;
}

.sj-module-icon {
  align-items: center;
  border-radius: 14px;
  display: flex;
  font-size: 1.65rem;
  height: 52px;
  justify-content: center;
  line-height: 1;
  width: 52px;
}

.sj-module-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}

.sj-module-card p {
  color: var(--sj-muted);
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

.sj-module-cta {
  align-items: center;
  color: var(--sj-blue);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 6px;
  margin-top: 4px;
}

.sj-module-cta::after {
  content: "→";
  transition: transform 0.15s ease;
}

.sj-module-card:hover .sj-module-cta::after {
  transform: translateX(4px);
}

.sj-module-automotive::before { background: linear-gradient(90deg, #2563eb, #1d4ed8); }
.sj-module-automotive .sj-module-icon { background: #eff6ff; }

.sj-module-celular::before { background: linear-gradient(90deg, #7c3aed, #6d28d9); }
.sj-module-celular .sj-module-icon { background: #f5f3ff; }

.sj-module-informatica::before { background: linear-gradient(90deg, #0891b2, #0e7490); }
.sj-module-informatica .sj-module-icon { background: #ecfeff; }

.sj-module-obras::before { background: linear-gradient(90deg, #ea580c, #c2410c); }
.sj-module-obras .sj-module-icon { background: #fff7ed; }

.sj-module-otica::before { background: linear-gradient(90deg, #db2777, #be185d); }
.sj-module-otica .sj-module-icon { background: #fdf2f8; }

.sj-module-geral::before { background: linear-gradient(90deg, #64748b, #475569); }
.sj-module-geral .sj-module-icon { background: #f1f5f9; }

.sj-module-eletro::before { background: linear-gradient(90deg, #0d9488, #0f766e); }
.sj-module-eletro .sj-module-icon { background: #f0fdfa; }

.sj-module-clima::before { background: linear-gradient(90deg, #0284c7, #0369a1); }
.sj-module-clima .sj-module-icon { background: #f0f9ff; }

.sj-module-moda::before { background: linear-gradient(90deg, #c026d3, #a21caf); }
.sj-module-moda .sj-module-icon { background: #fdf4ff; }

.sj-module-pet::before { background: linear-gradient(90deg, #65a30d, #4d7c0f); }
.sj-module-pet .sj-module-icon { background: #f7fee7; }

.sj-module-beleza::before { background: linear-gradient(90deg, #e11d48, #be123c); }
.sj-module-beleza .sj-module-icon { background: #fff1f2; }

.sj-module-grafica::before { background: linear-gradient(90deg, #4f46e5, #4338ca); }
.sj-module-grafica .sj-module-icon { background: #eef2ff; }

.sj-module-eletronicos::before { background: linear-gradient(90deg, #475569, #334155); }
.sj-module-eletronicos .sj-module-icon { background: #f8fafc; }

.sj-module-bikes::before { background: linear-gradient(90deg, #16a34a, #15803d); }
.sj-module-bikes .sj-module-icon { background: #f0fdf4; }

.sj-module-ferragens::before { background: linear-gradient(90deg, #ca8a04, #a16207); }
.sj-module-ferragens .sj-module-icon { background: #fefce8; }

.sj-module-farmacia::before { background: linear-gradient(90deg, #059669, #047857); }
.sj-module-farmacia .sj-module-icon { background: #ecfdf5; }

.sj-module-academia::before { background: linear-gradient(90deg, #dc2626, #b91c1c); }
.sj-module-academia .sj-module-icon { background: #fef2f2; }

.sj-module-food::before { background: linear-gradient(90deg, #f97316, #ea580c); }
.sj-module-food .sj-module-icon { background: #fff7ed; }

.sj-module-grid .sj-module-geral {
  grid-column: 2 / span 1;
}

.sj-howto-picker {
  margin: 12px 0 20px;
  max-width: 420px;
}

.sj-howto-picker select {
  margin-top: 6px;
  width: 100%;
}

.sj-checklist-preview {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.sj-checklist-preview li {
  background: #f8fafc;
  border: 1px solid var(--sj-border);
  border-radius: 8px;
  font-size: 0.92rem;
  padding: 8px 12px;
}

.sj-checklist-preview li::before {
  content: "✓ ";
  color: #16a34a;
  font-weight: 700;
}

.sj-field-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sj-field-tags li {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1e40af;
  font-size: 0.9rem;
  padding: 6px 14px;
}

.sj-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sj-card-link:hover {
  box-shadow: var(--sj-shadow-sm);
  transform: translateY(-2px);
}

.sj-howto-disclaimer {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  color: #166534;
  font-size: 0.92rem;
  margin: 0 0 20px;
  padding: 12px 16px;
}

.sj-howto-note {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  color: #92400e;
  font-size: 0.9rem;
  margin: 12px 0 0;
  padding: 10px 12px;
}

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

.tenant-checklist li {
  align-items: center;
  border-bottom: 1px solid var(--sj-border, #e5e7eb);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
}

.tenant-checklist li.is-done span {
  color: #166534;
}

.tenant-site-share {
  margin: 12px 0 20px;
}

.ts-product-meta {
  color: #64748b;
  font-size: 0.88rem;
  margin: 4px 0;
}

/* Cards genéricos (recursos) */
.sj-card-grid,
.sj-pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sj-card,
.sj-pricing-card {
  background: #fff;
  border: 1px solid var(--sj-border);
  border-radius: var(--sj-radius);
  box-shadow: var(--sj-shadow-sm);
  padding: 22px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.sj-card:hover {
  box-shadow: var(--sj-shadow-md);
  transform: translateY(-2px);
}

.sj-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.sj-card p {
  color: var(--sj-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

.sj-card-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.sj-card-link h3,
.sj-card-link p {
  text-decoration: none;
}

.sj-pricing-card strong {
  color: var(--sj-blue);
  display: block;
  font-size: 2rem;
  margin: 8px 0;
}

.sj-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.sj-trust-item {
  align-items: center;
  color: var(--sj-muted);
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 8px;
}

.sj-trust-item span {
  color: var(--sj-blue);
  font-size: 1.1rem;
}

.sj-form {
  background: #fff;
  border: 1px solid var(--sj-border);
  border-radius: 24px;
  box-shadow: var(--sj-shadow-md);
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 28px;
}

.sj-form label {
  display: grid;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 8px;
}

.sj-form input,
.sj-form select {
  border: 1px solid var(--sj-border);
  border-radius: 12px;
  font: inherit;
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sj-form input:focus,
.sj-form select:focus {
  border-color: var(--sj-blue);
  box-shadow: 0 0 0 3px rgba(30, 79, 191, 0.12);
  outline: none;
}

.sj-form label.sj-checkbox-line {
  align-items: center;
  display: flex;
  flex-direction: row;
  font-weight: 600;
  gap: 10px;
}

.sj-form label.sj-checkbox-line input[type="checkbox"] {
  accent-color: var(--sj-blue);
  height: 18px;
  margin: 0;
  width: 18px;
}

.sj-form-result {
  color: var(--sj-blue-dark);
  font-weight: 700;
  margin: 0;
}

.sj-owner-portal .staff-header-copy .eyebrow {
  color: var(--sj-orange);
}

.sj-owner-portal .module-search {
  display: none;
}

.sj-owner-portal .staff-login-shell .login-hint {
  color: var(--sj-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 12px;
}

.sj-owner-portal .staff-login-shell .login-hint a {
  color: var(--sj-blue);
  font-weight: 700;
}

.sj-footer {
  background: #fff;
  border-top: 1px solid var(--sj-border);
  color: var(--sj-muted);
  margin-top: 24px;
  padding: 32px 24px 48px;
  text-align: center;
}

.sj-footer a {
  color: var(--sj-blue);
  font-weight: 700;
  text-decoration: none;
}

.sj-footer a:hover {
  text-decoration: underline;
}

body.staff-body.sistemajam-theme {
  --accent: var(--sj-blue);
}

body.staff-body.sistemajam-theme:not(.is-authenticated) .staff-login-shell {
  background: var(--sj-bg-hero);
}

body.staff-body.sistemajam-theme:not(.is-authenticated) .staff-login-hero,
body.staff-body.sistemajam-theme:not(.is-authenticated) .staff-login,
body.staff-body.sistemajam-theme:not(.is-authenticated) .staff-login.reset-panel {
  backdrop-filter: none;
  background: #fff;
  border: 1px solid var(--sj-border);
  box-shadow: var(--sj-shadow-md);
}

body.staff-body.sistemajam-theme:not(.is-authenticated) .staff-login-brand .sj-eyebrow {
  color: var(--sj-orange);
}

body.staff-body.sistemajam-theme .staff-sidebar {
  border-color: var(--sj-border);
}

body.staff-body.sistemajam-theme .button.primary,
body.staff-body.sistemajam-theme .staff-shortcut.active {
  background: linear-gradient(135deg, var(--sj-blue), var(--sj-blue-dark));
}

.sj-license-banner {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fdba74;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
}

.sj-license-banner strong {
  color: #9a3412;
}

.sj-login-shell {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr 0.9fr;
  margin: 0 auto;
  max-width: 1000px;
  padding: 32px 20px 48px;
}

.sj-login-card,
.sj-login-aside {
  background: #fff;
  border: 1px solid var(--sj-border);
  border-radius: var(--sj-radius);
  box-shadow: var(--sj-shadow-sm);
  padding: 28px;
}

.sj-login-aside h2 {
  margin-top: 0;
}

.sj-login-extra {
  border-top: 1px solid var(--sj-border);
  color: var(--sj-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  padding-top: 16px;
}

.sj-guide {
  margin: 0 auto;
  max-width: 900px;
  padding: 32px 20px 48px;
}

.sj-guide .lead {
  color: var(--sj-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.sj-guide-step {
  align-items: flex-start;
  display: grid;
  gap: 16px;
  grid-template-columns: 48px 1fr;
  margin: 24px 0;
}

.sj-step-num {
  align-items: center;
  background: linear-gradient(135deg, var(--sj-blue), var(--sj-blue-dark));
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.sj-steps-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sj-steps-list.numbered {
  counter-reset: sjstep;
  list-style: none;
}

.sj-steps-list.numbered li {
  background: #fff;
  border: 1px solid var(--sj-border);
  border-radius: 14px;
  counter-increment: sjstep;
  padding: 14px 14px 14px 44px;
  position: relative;
}

.sj-steps-list.numbered li::before {
  background: linear-gradient(135deg, var(--sj-orange), var(--sj-orange-dark));
  border-radius: 50%;
  color: #fff;
  content: counter(sjstep);
  font-size: 0.82rem;
  font-weight: 800;
  height: 26px;
  left: 12px;
  line-height: 26px;
  position: absolute;
  text-align: center;
  top: 14px;
  width: 26px;
}

.sj-steps-list a {
  color: var(--sj-blue);
  font-weight: 700;
  text-decoration: none;
}

.sj-steps-list a:hover {
  text-decoration: underline;
}

.sj-muted {
  color: var(--sj-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .sj-module-grid {
    grid-template-columns: 1fr;
  }

  .sj-module-grid .sj-module-geral {
    grid-column: auto;
  }

  .sj-login-shell {
    grid-template-columns: 1fr;
  }

  .sj-topbar {
    flex-wrap: wrap;
  }

  .sj-nav {
    order: 3;
    width: 100%;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .sj-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sj-module-grid .sj-module-geral {
    grid-column: auto;
  }
}
