/* Monstrada: paginas do site (suporte, termos, privacidade). Mesmas cores da pagina inicial; leve para o celular. */
:root {
  color-scheme: dark;
  --bg1: #2b2470;
  --bg2: #120f33;
  --gold: #ffd23f;
  --ink: #1a1238;
  --red: #e8413c;
  --text: #e9e6ff;
  --muted: #b3acdf;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
  --field: #1b1650;
  --field-line: #4a41a3;
  --good: #3ddc84;
  --warn: #ffb547;
  --radius: 16px;
  --title: 'Lilita One', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  padding: 16px 16px 40px;
  background: radial-gradient(ellipse at 50% 0%, var(--bg1), var(--bg2) 75%) fixed;
  background-color: var(--bg2);
  color: var(--text);
  font: 600 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--gold);
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* --- Topo ------------------------------------------------------------------------------------------------------- */

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 4px 0 18px;
  text-align: center;
}

.logo {
  font-family: var(--title);
  font-weight: 400;
  font-size: clamp(36px, 11vw, 56px);
  letter-spacing: 1.5px;
  line-height: 1.05;
  color: var(--gold);
  text-decoration: none;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}

.ribbon {
  display: inline-block;
  padding: 3px 18px 6px;
  transform: rotate(-2deg);
  background: linear-gradient(#ff6a5c, var(--red));
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--title);
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

/* --- Cartoes e texto -------------------------------------------------------------------------------------------- */

.card {
  margin: 0 0 14px;
  padding: 16px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

h1,
h2 {
  margin: 0 0 8px;
  font-family: var(--title);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #fff;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 21px;
}

p {
  margin: 0 0 10px;
}

p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
  font-weight: 500;
}

.small {
  font-size: 14px;
}

.banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--warn);
  background: rgba(255, 181, 71, 0.12);
}

ol.steps {
  margin: 0;
  padding-left: 22px;
}

ol.steps li {
  margin: 0 0 6px;
}

[hidden] {
  display: none !important;
}

/* --- Formulario ------------------------------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}

.label {
  font-weight: 800;
  color: #fff;
}

.hint {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--field);
  border: 2px solid var(--field-line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8c85c2;
  font-weight: 500;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.25);
}

input[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--red);
}

fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
  margin: 0 0 8px;
}

.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 520px) {
  .choices {
    grid-template-columns: 1fr 1fr;
  }
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--field-line);
  border-radius: 12px;
  background: var(--field);
  cursor: pointer;
}

.choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--gold);
}

.choice:has(input:checked) {
  border-color: var(--gold);
  background: #2a2170;
}

.choice:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.35);
}

.counter {
  align-self: flex-end;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Isca para robo: fora da tela (pessoas nunca veem nem chegam pelo teclado). */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 10px 20px 12px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: linear-gradient(#ffe176, var(--gold));
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--title);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--ink);
  cursor: pointer;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-ghost {
  min-height: 48px;
  background: transparent;
  border: 2px solid var(--line);
  box-shadow: none;
  color: var(--text);
  font: 800 16px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--red);
  background: rgba(232, 65, 60, 0.14);
}

.captcha {
  margin: 0 0 16px;
  min-height: 65px;
}

/* --- Recebido e "seus pedidos" -------------------------------------------------------------------------------- */

.protocol {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--ink);
  border: 2px solid var(--gold);
  font: 800 26px/1.2 ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  letter-spacing: 2px;
  color: var(--gold);
}

.ticket {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ticket:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mono {
  font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
}

.pill {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid var(--line);
}

.pill-open {
  border-color: var(--warn);
}

.pill-in_progress {
  border-color: #7fb2f0;
}

.pill-resolved {
  border-color: var(--good);
}

.pill-new {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.reply {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 210, 63, 0.1);
  border: 2px solid rgba(255, 210, 63, 0.35);
}

.reply-text {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --- Textos legais ---------------------------------------------------------------------------------------------- */

/* Titulos das secoes vem da API (minusculas e acentos): fonte do sistema. */
.legal h2 {
  margin-top: 18px;
  font: 800 19px/1.3 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0;
}

.legal p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-weight: 500;
}

/* --- Rodape ----------------------------------------------------------------------------------------------------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 14px;
}
