/* Papelaria de festa: cartão branco sobre fundo off-white, filetes e botões em dourado (cores da decoração). */
:root {
  --bg: #f6f1e7;
  --bg-deep: #ece3d2;
  --paper: #fffdf8;
  --paper-2: #f8f3e9;
  --ink: #3a3024;
  --ink-soft: #76684f;
  --gold: #94702f;          /* dourado para texto: legível sobre branco */
  --gold-light: #d9bf88;
  --foil: linear-gradient(135deg, #c9a45c 0%, #ecd7a4 45%, #c29a50 70%, #dcc07f 100%);
  --foil-hover: linear-gradient(135deg, #bf9850 0%, #e4cc92 45%, #b88f45 70%, #d2b36f 100%);
  --rule: rgba(168, 130, 63, .45);
  --ok: #2f6b4f;
  --ok-bg: #e2eee6;
  --no: #8a4b3c;
  --no-bg: #f3e6e1;
  --wait: #7a6a3a;
  --wait-bg: #f1ecdb;
  --font-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --font-caps: "Marcellus SC", "Trajan Pro", Georgia, serif;
  --font-body: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
}
[hidden] { display: none !important; }
img { max-width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  font-family: var(--font-caps);
  font-size: 13px;
  letter-spacing: .09em;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform .15s, background-color .2s, color .2s, opacity .2s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-ouro {
  background: var(--foil);
  color: var(--ink);
  border-color: #b8914a;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 2px 6px rgba(148,112,47,.25);
}
.btn-ouro:hover { background: var(--foil-hover); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--gold-light); }
.btn-line:hover { background: var(--paper-2); border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }

.text-btn {
  margin-top: 12px;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 8px;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.text-btn:hover { color: var(--ink); }

input, select, textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 12px;
  min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

.erro {
  color: var(--no);
  font-size: 14px;
  margin: 12px 0 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 10;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Assinatura padrão dos projetos JCA Inova Tech (mesmo texto do Smart Chronos). */
.rodape-jca {
  text-align: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  max-width: 60ch;
  margin: 0 auto;
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .toast { transition: none; }
}
