/* Vendaprojeto panel */
body {
  font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
[x-cloak] {
  display: none !important;
}

/* Shell do painel: coluna no mobile, linha no desktop */
.app-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .app-shell {
    flex-direction: row;
  }
}

.app-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 1rem;
}
@media (min-width: 640px) {
  .app-main {
    padding: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .app-main {
    padding: 2rem;
  }
}

/* Cards de métrica alinhados (label longa não empurra o número) */
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 6.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e7e5e4;
  background: #fff;
  padding: 1rem;
}
.stat-card__label {
  font-size: 0.7rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #78716c;
  min-height: 2.25rem;
}
.stat-card__value {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Wizard / Meu negócio — layout largo, 2 colunas no desktop */
.wizard-page {
  max-width: 72rem;
}

.wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.wizard-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.5rem;
  background: #e7e5e4;
  color: #78716c;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wizard-steps li.is-done {
  background: #ccfbf1;
  color: #115e59;
}

.wizard-steps li.is-current {
  background: #0f766e;
  color: #fff;
}

.wizard-steps__n {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .wizard-steps__label {
    display: none;
  }
}

.wizard-hero h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1c1917;
}

.wizard-hero p {
  margin: 0.5rem 0 0;
  max-width: 40rem;
  font-size: 0.98rem;
  color: #78716c;
  line-height: 1.5;
}

.wizard-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f766e;
}

.wizard-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .wizard-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
    gap: 1.75rem;
  }
}

.wizard-block {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 0.85rem;
  padding: 1.25rem 1.35rem;
}

.wizard-block + .wizard-block {
  margin-top: 1rem;
}

.wizard-block h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1c1917;
}

.wizard-fields {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.wizard-fields label,
.wizard-block label {
  display: block;
  font-size: 0.875rem;
}

.wizard-fields label > span,
.wizard-block label > span:first-child {
  display: block;
  color: #57534e;
  margin-bottom: 0.3rem;
}

.wizard-fields input,
.wizard-fields textarea,
.wizard-fields select,
.wizard-block input[type="number"],
.wizard-block input[type="url"],
.wizard-block input[type="text"],
.wizard-block textarea,
.wizard-block select {
  width: 100%;
  border: 1px solid #d6d3d1;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  background: #fff;
}

.wizard-fields input:focus,
.wizard-fields textarea:focus,
.wizard-fields select:focus,
.wizard-block input:focus,
.wizard-block textarea:focus,
.wizard-block select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  border-color: #0f766e;
}

.wizard-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .wizard-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wizard-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #a8a29e;
  line-height: 1.4;
}

.wizard-niches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 1280px) {
  .wizard-niches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wizard-niche {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.65rem;
  background: #fafaf9;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wizard-niche:hover {
  border-color: rgba(15, 118, 110, 0.45);
  background: #fff;
}

.wizard-niche.is-active,
.wizard-niche:has(input:checked) {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: inset 0 0 0 1px #0f766e;
}

.wizard-niche input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-niche__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1c1917;
  line-height: 1.25;
}

.wizard-niche__hint {
  font-size: 0.72rem;
  color: #78716c;
  line-height: 1.35;
}

.wizard-preview__body {
  margin-top: 0.85rem;
  display: grid;
  gap: 1rem;
}

.wizard-preview__k {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a29e;
}

.wizard-preview__item p {
  margin: 0;
  font-size: 0.92rem;
  color: #292524;
  line-height: 1.45;
}

.wizard-preview__angles {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid #f5f5f4;
  font-size: 0.8rem;
  color: #78716c;
}

.wizard-submit {
  margin-top: 1.25rem;
  width: 100%;
  border: none;
  border-radius: 0.55rem;
  padding: 0.85rem 1.25rem;
  background: #0f766e;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.wizard-submit:hover {
  background: #115e59;
}

@media (min-width: 1024px) {
  .wizard-col--side .wizard-preview {
    position: sticky;
    top: 1rem;
  }
}
