/* Página "Crie seu site": visual próprio, de prancheta técnica, escrito a partir do celular.
   Usa as mesmas fontes locais do site (licença OFL, ver fonts/LICENCAS.txt). */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-400-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-400-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --azul: #1537C8;
  --tinta: #0E1B4D;
  --tinta-2: #33407A;
  --papel: #FFFFFF;
  --campo: #F2F4FD;
  --erro: #B3261E;
  --grade: rgba(255, 255, 255, .09);
  --texto: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--papel);
  font-family: var(--texto);
  background-color: var(--azul);
  background-image: linear-gradient(var(--grade) 1px, transparent 1px), linear-gradient(90deg, var(--grade) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: inherit; }
:focus-visible { outline: 3px solid #FFD84D; outline-offset: 2px; }
.ficha :focus-visible { outline-color: var(--azul); }

.prancheta {
  max-width: 1280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carimbo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: 1;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.mesa { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; flex: 1 1 auto; align-items: stretch; }

/* ---------- rascunho do site ---------- */
.rascunho { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.janela { flex: 1 1 auto; display: flex; flex-direction: column; border: 2px dashed var(--papel); }
.rascunho.completo .janela { border-style: solid; }
.rascunho.completo .janela-barra { border-bottom-style: solid; }
.janela-barra {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 2px dashed var(--papel);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
}
#previa-endereco { min-width: 0; overflow-wrap: anywhere; }
.janela-pontos { flex: none; display: flex; gap: 5px; }
.janela-pontos span { width: 9px; height: 9px; border: 1.5px solid var(--papel); border-radius: 50%; }
.janela-corpo { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 16px; }
.cota { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.cota--botao { align-items: center; }
.cota-tag { font-family: var(--mono); font-weight: 500; font-size: 12px; }
.previa-titulo { font-size: clamp(24px, 3.4vw, 42px); line-height: 1.06; font-weight: 700; font-stretch: 110%; overflow-wrap: anywhere; }
.previa-texto { font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.previa-botao { justify-self: start; padding: 9px 14px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; border: 2px dashed var(--papel); }
.previa-botao.pronto { color: var(--azul); background: var(--papel); border-style: solid; }
.medida { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 500; font-size: 12px; }
.medida::before, .medida::after { content: ""; flex: 1 1 auto; border-top: 1.5px solid var(--papel); }

/* ---------- ficha do projeto ---------- */
.ficha { min-width: 0; padding: 20px; color: var(--tinta); background: var(--papel); display: flex; flex-direction: column; }
#crie-form { display: flex; flex-direction: column; gap: 14px; }
.ficha-topo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--tinta-2); }
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo label { font-size: 15px; font-weight: 600; }
.campo input, .campo textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-size: 17px;
  color: var(--tinta);
  background: var(--campo);
  border: 0;
  border-bottom: 2px solid var(--azul);
  border-radius: 0;
}
.campo textarea { min-height: 72px; resize: vertical; }
.campo [aria-invalid="true"] { border-bottom-color: var(--erro); }
.erro { margin: 0; font-size: 14px; color: var(--erro); }
.erro:empty { display: none; }
/* Isca para robôs: fora da vista e do teclado, sem aumentar a página. */
.isca { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.enviar {
  min-height: 52px;
  padding: 12px 20px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  font-stretch: 110%;
  color: var(--papel);
  background: var(--azul);
  border: 0;
  cursor: pointer;
  transition: background-color .15s;
}
.enviar:hover { background: var(--tinta); }
.enviar:disabled { opacity: .65; cursor: progress; }
.status { margin: 0; font-size: 15px; line-height: 1.4; color: var(--tinta-2); }
.status:empty { display: none; }
.status--erro { color: var(--erro); }
.aviso { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--tinta-2); }
.aviso a { color: var(--azul); }

.recebido { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.recebido:focus { outline: none; }
.recebido-tag { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--tinta-2); }
.recebido-titulo { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; font-weight: 800; font-stretch: 112%; overflow-wrap: anywhere; }
.recebido-texto { margin: 0; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }

.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; line-height: 1.4; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.rodape a { display: inline-block; padding-block: 6px; }

/* ---------- telas maiores ---------- */
@media (min-width: 820px) {
  .prancheta { padding-inline: clamp(36px, 4.4vw, 56px); padding-block: clamp(28px, 3.4vw, 44px); gap: clamp(22px, 2.4vw, 30px); }
  .mesa { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 44px); }
  .janela-corpo { padding: clamp(20px, 2.6vw, 32px); }
  .ficha { padding: clamp(24px, 2.6vw, 32px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
