:root {
  --off: #edeade;
  --paper: #f5f2e9;
  --char: #3d3d3d;
  --muted: #6b6559;
  --line: rgba(61, 61, 61, .18);
  --copper: #b0512e;
  --copper-light: #c4693f;
  --white: #fffdf7;
  --shadow: 0 18px 60px rgba(61, 61, 61, .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--char);
  font: 16px/1.6 Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--copper); color: var(--white); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--copper-light); outline-offset: 3px; }

h1, h2, h3 {
  font-family: anisette-std, Montserrat, sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.05;
  text-wrap: balance;
}

.shell { min-height: 100vh; }
.top {
  background: var(--char);
  color: var(--off);
  padding: 22px clamp(18px, 4vw, 44px) clamp(44px, 7vw, 84px);
}
.nav {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav img { height: 30px; width: auto; display: block; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .85;
}
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero { max-width: 1040px; margin: clamp(36px, 6vw, 72px) auto 0; }
.eyebrow {
  margin: 0 0 14px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.hero h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 4.4rem); max-width: 16ch; }
.hero-copy { max-width: 56ch; margin: 22px 0 0; font-size: 1.05rem; opacity: .9; }
.hero-note { margin: 14px 0 0; font-size: .86rem; opacity: .7; }

.main { padding: 0 clamp(18px, 4vw, 44px) clamp(60px, 8vw, 110px); }
.card {
  position: relative;
  max-width: 1040px;
  margin: -34px auto 0;
  padding: clamp(24px, 4vw, 52px);
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.bloco { padding: clamp(26px, 4vw, 40px) 0; border-top: 1px solid var(--line); }
.bloco:first-of-type { border-top: 0; padding-top: 0; }
.bloco-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.num {
  flex: 0 0 auto;
  font-family: anisette-std, Montserrat, sans-serif;
  font-size: 1.1rem;
  color: var(--copper);
}
.bloco-head h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.bloco-head p, .dica { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.opcional { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }

.campos { display: grid; gap: 18px; }
.campos.dois { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.campo label { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 600; }
.campo input, .campo textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--char);
  transition: border-color .2s, background .2s;
}
.campo input:focus, .campo textarea:focus { border-color: var(--copper); background: var(--white); outline: none; }
.campo textarea { min-height: 150px; resize: vertical; }
.campo.erro input { border-color: var(--copper); }
.campo-erro { display: none; margin: 6px 0 0; font-size: .8rem; color: var(--copper); }
.campo.erro .campo-erro { display: block; }

.rotulo { display: block; margin: 18px 0 10px; font-size: .84rem; font-weight: 600; }
.rotulo:first-child { margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; border: 0; padding: 0; margin: 0; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--char);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip:hover { border-color: var(--copper-light); transform: translateY(-1px); }
.chip:has(input:checked) { border-color: var(--copper); background: var(--copper); color: var(--white); }
.chip:has(input:focus-visible) { outline: 3px solid var(--copper-light); outline-offset: 3px; }
.chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: .55;
  transition: background .2s, opacity .2s;
}
.chip:has(input:checked)::before { background: currentColor; opacity: 1; }

.sub { margin-top: 14px; }

/* áudio ou texto */
.modo { display: flex; gap: 8px; margin-bottom: 16px; }
.modo button {
  flex: 1 1 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--char);
  font-weight: 600;
  transition: border-color .2s, background .2s, color .2s;
}
.modo button[aria-pressed="true"] { border-color: var(--char); background: var(--char); color: var(--off); }

.gravador {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
}
.gravador .estado { margin: 0; font-size: .92rem; color: var(--muted); min-height: 1.4em; }
.gravador .tempo { font-family: anisette-std, Montserrat, sans-serif; font-size: 2rem; letter-spacing: .04em; }
.gravador .acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gravador audio { width: 100%; max-width: 420px; margin: 0 auto; }
.btn-gravar {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 0; border-radius: 999px;
  background: var(--copper); color: var(--white);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(176, 81, 46, .18);
}
.btn-gravar.gravando { background: #8f2f18; animation: pulsa 1.2s ease-in-out infinite; }
.btn-gravar svg { width: 18px; height: 18px; fill: currentColor; }
@keyframes pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(176, 81, 46, .35); } 50% { box-shadow: 0 0 0 12px rgba(176, 81, 46, 0); } }
.btn-leve {
  padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--char);
  font-weight: 600;
}
.btn-leve:hover { border-color: var(--copper-light); }

.rodape-form { display: grid; gap: 16px; padding-top: 30px; border-top: 1px solid var(--line); }
.enviar {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px;
  border: 0; border-radius: 999px;
  background: var(--copper); color: var(--white);
  font-size: 1rem; font-weight: 600;
  box-shadow: 0 10px 22px rgba(176, 81, 46, .18);
  transition: transform .25s, background .25s;
}
.enviar:hover { transform: translateY(-2px); background: #c15b34; }
.enviar[disabled] { opacity: .6; transform: none; cursor: wait; }
.lgpd { margin: 0; font-size: .8rem; color: var(--muted); max-width: 60ch; }
.form-erro { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(176, 81, 46, .1); color: var(--copper); font-size: .9rem; font-weight: 600; }

/* confirmação */
.pronto { text-align: left; }
.pronto h2 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.2rem); }
.pronto p { max-width: 58ch; }
.pronto .acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pronto .acoes a { text-decoration: none; }
.zap {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  background: #1f8f5a; color: var(--white);
  font-weight: 600;
}
.zap svg { width: 20px; height: 20px; fill: currentColor; }

.pote { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 640px) {
  .card { margin-top: -24px; border-radius: 18px; }
  .chip { padding: 10px 14px; font-size: .86rem; }
  .enviar { justify-self: stretch; justify-content: center; }
}

/* lista retrátil */
.retratil { position: relative; }
.retratil summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .2s;
}
.retratil summary::-webkit-details-marker { display: none; }
.retratil summary svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.retratil[open] summary { border-color: var(--copper); background: var(--white); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.retratil[open] summary svg { transform: rotate(180deg); }
.retratil.tem-valor summary { color: var(--char); font-weight: 600; }
.retratil .chips {
  padding: 14px;
  border: 1px solid var(--copper);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--white);
}
.retratil .retratil-pronto { position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; font-size: .84rem; }
.retratil:has(.retratil-pronto) .chips { padding-bottom: 60px; }

/* a Rock sentada na borda do cartão, balançando as pernas (vídeo Seedance recortado quadro a quadro, WebP com alfa) */
.rock-sentada { position: absolute; top: 0; right: clamp(24px, 6%, 70px); width: 316px; height: 0; pointer-events: none; }
.rock-anim { position: absolute; left: 0; top: -288px; width: 316px; height: auto; }
@media (max-width: 760px) { .rock-sentada { display: none; } }

/* busca de cidade */
.campo.cidade { margin-top: 18px; }
.busca { position: relative; }
.busca svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.busca input { padding-right: 44px; }
.sugestoes {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--copper); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(61, 61, 61, .14);
  max-height: 300px; overflow-y: auto;
}
.sugestoes li { padding: 10px 12px; border-radius: 8px; font-weight: 500; cursor: pointer; }
.sugestoes li:hover, .sugestoes li.ativo { background: var(--copper); color: var(--white); }

/* nichos escolhidos */
.escolhidos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.escolhidos:empty { display: none; }
.tagx { display: inline-flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--copper); color: var(--white); font-size: .88rem; font-weight: 600; }
.tagx button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); color: var(--white); font-size: 1rem; line-height: 1; padding: 0; }
.tagx button:hover { background: rgba(255,255,255,.4); }

/* grupos numa linha só */
.chips.linha { flex-wrap: nowrap; }
.chips.linha .chip { padding: 10px 14px; font-size: .86rem; white-space: nowrap; }
@media (max-width: 760px) { .chips.linha { flex-wrap: wrap; } }
