/* =========================================================
   TOKENS — mude aqui e o editor inteiro acompanha
   ========================================================= */
:root {
  --chrome:   #1c1c28;
  --chrome-2: #262635;
  --linha:    #34344a;
  --texto:    #e7e7ef;
  --suave:    #9a9ab0;
  --acento:   #5457e6;
  --papel:    #f7f7fb;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--chrome);
  color: var(--texto);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- Barra superior ---------- */
.topbar {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--chrome-2);
  border-bottom: 1px solid var(--linha);
}
.marca { font-weight: 800; letter-spacing: -0.02em; }
.dica  { color: var(--suave); font-size: 13px; }

/* ---------- Layout: painel + canvas + propriedades ---------- */
.layout { flex: 1; display: flex; min-height: 0; }

.painel, .props-painel {
  width: 250px;
  flex-shrink: 0;
  background: var(--chrome-2);
  padding: 18px;
  overflow-y: auto;
}
.painel { border-right: 1px solid var(--linha); }
.props-painel { border-left: 1px solid var(--linha); }

.painel h2, .props-painel h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--suave);
  margin-bottom: 12px;
}

.paleta { display: flex; flex-direction: column; gap: 8px; }
.paleta button {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--linha);
  border-radius: 10px;
  background: var(--chrome);
  color: var(--texto);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, transform .05s;
}
.paleta button:hover  { border-color: var(--acento); }
.paleta button:active { transform: translateY(1px); }

/* ---------- Painel de propriedades ---------- */
.props-vazio { color: #7c7c92; font-size: 14px; line-height: 1.5; }
.props-tipo {
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--linha);
}
.campo { display: block; margin-bottom: 14px; }
.campo span {
  display: block;
  font-size: 12px;
  color: var(--suave);
  margin-bottom: 6px;
}
.campo input, .campo textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: var(--chrome);
  color: var(--texto);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.campo input:focus, .campo textarea:focus {
  outline: none;
  border-color: var(--acento);
}

/* ---------- Área do canvas ---------- */
.canvas-area {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  justify-content: center;
}
.canvas {
  width: 100%;
  max-width: 900px;
  background: var(--papel);
  border-radius: 12px;
  min-height: 400px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  height: fit-content;
}

.vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: #b7b7c8;
  font-size: 15px;
}

/* Moldura de edição de cada bloco (não vai pro site publicado) */
.bloco { position: relative; cursor: pointer; }
.bloco + .bloco { border-top: 1px solid #ececf3; }

/* Bloco selecionado: destaque por dentro, sem empurrar layout */
.bloco.sel { box-shadow: inset 0 0 0 2px var(--acento); }

.bloco .remover {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border: none; border-radius: 8px;
  background: rgba(0,0,0,.55);
  color: #fff; cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
  z-index: 2;
}
.bloco:hover .remover { opacity: 1; }

/* =========================================================
   ESTILOS DOS BLOCOS — o visual do SITE (em classes)
   ========================================================= */
.b-hero {
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(135deg, #eef0ff, #f7f7fb);
}
.b-hero h1 { font-size: 44px; color: #1c1c28; margin-bottom: 16px; letter-spacing: -0.02em; }
.b-hero p  { font-size: 18px; color: #55556a; margin-bottom: 28px; }
.b-hero .cta {
  display: inline-block;
  padding: 14px 30px;
  background: var(--acento);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

.b-recursos { padding: 64px 40px; }
.b-recursos h2 { text-align: center; font-size: 32px; color: #1c1c28; margin-bottom: 36px; }
.b-recursos .grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.b-recursos .item {
  padding: 28px 20px;
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 14px;
  text-align: center;
}
.b-recursos .item .ic { font-size: 34px; }
.b-recursos .item h3 { color: #1c1c28; margin: 12px 0 6px; }
.b-recursos .item p  { color: #55556a; font-size: 14px; }
