:root {
  --bg: #f1f6fa;
  --card: #ffffff;
  --ink: #14213d;
  --muted: #5d6a80;
  --line: #dde6ee;
  --ac: #0391bb;
  --azul: #02a9d2;
  --amarelo: #f9c931;
  --erro: #b4413a;
}

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

body {
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, #dcf1f8, transparent 70%),
    radial-gradient(ellipse 60% 50% at 95% 10%, #fdf2cf, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, #e2ecf8, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.5;
  padding: 0 16px 48px;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.pular { position: absolute; left: -9999px; }
.pular:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 14px; background: var(--card); border-radius: 10px; }

/* ---------- Topo e rodapé ---------- */

.topo-site {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.marca { display: flex; align-items: center; gap: 8px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 26px; line-height: 1; text-decoration: none; }
.marca img { width: 40px; height: 40px; }
.marca em { font-style: normal; color: var(--ac); }

.topo-site nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-weight: 700; font-size: 15px; }
.topo-site nav a { text-decoration: none; color: var(--muted); }
.topo-site nav a:hover, .topo-site nav a.atual { color: var(--ink); }
.topo-site nav a.botao { color: var(--ink); }

main { max-width: 1180px; margin: 0 auto; padding-top: clamp(12px, 3vw, 32px); }

.rodape-site { color: var(--muted); font-size: 13px; text-align: center; margin-top: 24px; }

/* ---------- Botões ---------- */

.botao {
  display: inline-block;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--amarelo);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--amarelo) 40%, transparent);
  transition: transform 150ms ease, background 150ms ease;
}
.botao:hover { transform: translateY(-1px); background: #f2b90f; }
.botao.grande { padding: 14px 28px; font-size: 17px; }

.link { background: none; border: 0; font: inherit; font-weight: 700; color: var(--ac); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Abertura ---------- */

.abertura { margin-bottom: 36px; }

h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 84px);
  line-height: .95;
}
h1 em { color: var(--ac); }

.sub { color: var(--muted); margin-top: 12px; font-size: 16px; max-width: 70ch; }
.abertura .botao { margin-top: 20px; }

.como-funciona, .formulario {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 48px;
  box-shadow: 0 6px 20px rgba(20, 33, 61, .06);
}

.como-funciona h2, .modal-instrucoes h2, .formulario h2, .cat h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 14px;
}

.como-funciona ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; padding-left: 20px; }

/* ---------- Categorias ---------- */

.categoria { margin-bottom: 56px; }

.cat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.cat h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 30px; }
.cat h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--cor); }
.cat p { color: var(--muted); font-size: 15px; }

.grade {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.grade .cartao {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(20, 33, 61, .06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.grade a:hover, .grade a:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cor);
  box-shadow: 0 16px 34px rgba(20, 33, 61, .14);
}

.grade .em-breve { cursor: default; box-shadow: none; }
.grade .em-breve img { filter: grayscale(.85); opacity: .55; }
.grade .em-breve h3 { color: var(--muted); }
.nome small { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 12px; font-weight: 800; }

.grade img { display: block; width: 100%; aspect-ratio: 32 / 15; object-fit: cover; background: var(--line); }

.nome { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px 16px; }
.nome span { font-size: 12px; font-weight: 800; color: var(--cor); letter-spacing: .08em; }
.nome h3 { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 20px; }

/* ---------- Janela e página do modelo ---------- */

dialog {
  margin: auto;
  width: min(1040px, calc(100% - 32px), calc((100vh - 300px) * 32 / 15 + 46px));
  max-height: calc(100% - 32px);
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(20, 33, 61, .25);
}
dialog::backdrop { background: rgba(20, 33, 61, .45); backdrop-filter: blur(3px); }

.topo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.topo .numero { font-size: 13px; font-weight: 800; color: var(--cor); letter-spacing: .08em; }
dialog h2 { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 26px; }
.topo small { color: var(--muted); font-size: 14px; }

.x {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
}
.x:hover { background: #eef3f8; }

.pagina-modelo h1 { font-size: clamp(36px, 5vw, 60px); }
.pagina-modelo .sub { margin: 0 0 18px; }
.pagina-modelo { margin-bottom: 56px; }

.trilha { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.trilha a { color: var(--muted); }

.visualizador { display: grid; }

.aparelho { justify-self: end; display: flex; gap: 4px; padding: 3px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 999px; }
.aparelho button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.aparelho button:hover { color: var(--ink); }
.aparelho button:focus { outline: none; }
.aparelho button:focus-visible { outline: 2px solid var(--cor); outline-offset: 2px; }
.aparelho button.atual { background: color-mix(in srgb, var(--cor) 14%, transparent); color: var(--ink); }

.tela {
  display: block;
  width: 100%;
  aspect-ratio: 32 / 15;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}

.celular .tela {
  width: auto;
  height: min(640px, calc(100vh - 300px));
  aspect-ratio: 390 / 844;
  margin: 0 auto;
  border: 8px solid #151515;
  border-radius: 34px;
}

/* Sequência dos modelos animados */
.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.passos[hidden] { display: none; }
.passos button {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.passos b { color: var(--cor); }
.passos button.atual { border-color: var(--cor); background: color-mix(in srgb, var(--cor) 8%, transparent); color: var(--ink); }

/* Estilos extras de um modelo (ex.: foto da Capa de disco) */
.estilos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.estilos[hidden] { display: none; }
.estilos button {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.estilos button:hover { color: var(--ink); }
.estilos button.atual { border-color: var(--cor); background: color-mix(in srgb, var(--cor) 10%, transparent); color: var(--ink); }

.rodape { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 16px; }

.bolinhas { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.bolinhas button {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 64px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.bolinhas i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 4px 10px color-mix(in srgb, var(--c) 40%, transparent);
  transition: transform 180ms ease;
}
.bolinhas button:hover i { transform: scale(1.12); }
.bolinhas button:hover, .bolinhas button.atual { color: var(--ink); }
.bolinhas button.atual i { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--c); }
.bolinhas button:focus { outline: none; }
.bolinhas button:focus-visible i { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--c); }

.avisos { flex: 1 1 260px; display: grid; gap: 8px; }
.pedir { padding: 12px 14px; border-radius: 14px; background: #e8f4fa; font-size: 13.5px; line-height: 1.45; }

.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.acoes .botao { background: var(--cor); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--cor) 30%, transparent); }
.acoes .botao:hover { background: color-mix(in srgb, var(--cor) 85%, #000); }
.acoes .link { color: var(--ink); }

/* ---------- Como pedir ---------- */

.atalho-instrucoes { margin: -16px 0 28px; font-size: 15px; }

.modal-instrucoes { width: min(760px, calc(100% - 32px)); overflow-y: auto; padding: 24px 26px 22px; }
.modal-instrucoes .topo { align-items: center; margin-bottom: 12px; }
.modal-instrucoes h2 { margin: 0; }

.passos-pedido { display: grid; gap: 14px; padding-left: 22px; margin-bottom: 24px; }
.passos-pedido li > b:first-child { display: block; }

.campo-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.checklist { padding: 18px 20px; border-radius: 16px; background: #e8f4fa; }
.checklist h3 { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.checklist ul { display: grid; gap: 4px; padding-left: 20px; }
.dica { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Formulário ---------- */

.formulario form { display: grid; gap: 18px; }

.campos-duplos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

/* align-content: start evita que os campos estiquem quando um vizinho tem texto de ajuda */
.formulario label, .campo { display: grid; gap: 6px; align-content: start; }
.formulario label > span, .campo > span, .campo-topo > span { font-weight: 800; font-size: 14px; }
.formulario label i { font-style: normal; font-weight: 600; color: var(--muted); }
.formulario small { color: var(--muted); font-size: 13px; }

.formulario input[type="text"], .formulario input[type="email"], .formulario input[type="tel"], .formulario select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cfdae5;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.formulario input:focus, .formulario select:focus { outline: 2px solid var(--ac); outline-offset: 1px; }

.campo-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; }

/* Editor de texto rico (Quill) */
.ql-toolbar.ql-snow { border-color: #cfdae5; border-radius: 12px 12px 0 0; background: #f5f8fb; font-family: inherit; }
.ql-container.ql-snow { border-color: #cfdae5; border-radius: 0 0 12px 12px; background: #fff; font: inherit; font-size: 15px; }
.ql-editor { min-height: 260px; }
.ql-editor.ql-blank::before { color: #94a0b2; font-style: normal; }

.soltar-fotos {
  position: relative;
  display: grid !important;
  justify-items: center;
  gap: 4px;
  padding: 26px 16px;
  border: 2px dashed #c9d6e2;
  border-radius: 16px;
  background: #f8fbfd;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.soltar-fotos:hover, .soltar-fotos.arrastando { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 6%, #fff); }
.soltar-fotos input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.fotos-escolhidas { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.fotos-escolhidas:empty { display: none; }
.fotos-escolhidas li { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; font-size: 12px; }
.fotos-escolhidas img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); }
.fotos-escolhidas p { padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fotos-escolhidas b { color: var(--ac); }
.fotos-escolhidas button {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px;
  border: 0; border-radius: 50%;
  background: rgba(20, 33, 61, .7); color: #fff;
  cursor: pointer;
}

.aviso-fotos, .erros { color: var(--erro); font-size: 14px; }
.erros { padding: 14px 18px; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--erro) 40%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--erro) 6%, #fff); }
.erros ul { padding-left: 20px; margin: 6px 0; }

.armadilha { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.enviado { text-align: center; padding: 60px 0; display: grid; justify-items: center; gap: 20px; }

@media (max-width: 640px) {
  dialog { padding: 16px 14px 14px; }
  .passos { grid-template-columns: repeat(2, 1fr); }
  .aparelho { justify-self: start; }
  .aparelho button { padding: 6px 10px; font-size: 12px; }
  .topo-site nav { width: 100%; }
}
