/* Base comum: página de venda e app */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/playfair-display-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/playfair-display-latin-wght-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2");
}

:root {
  --bg: #ffffff;
  --soft: #f7f5f2;
  --ink: #131013;
  --ink-2: #2a252b;
  --muted: #6f6973;
  --ph: #aaa3ad;
  --line: #ebe8ec;
  --gold: #c9a14a;
  --gold-2: #e2c27a;
  --gold-ink: #94702a;
  --gold-soft: #faf3e3;
  --roxo: #4b1659;
  --roxo-soft: #f4edf6;
  --radius: 20px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: inherit; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.serif em, em.gold { font-style: italic; font-weight: 500; color: var(--gold-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  font: inherit; font-weight: 700; font-size: 16px;
  background: var(--ink); color: #fff;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer; text-decoration: none;
  transition: transform .1s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-small { width: auto; padding: 9px 18px; font-size: 14px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 14px; cursor: pointer; padding: 8px; }
.center { text-align: center; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  font: inherit; font-size: 16px; /* evita zoom no iPhone */
  color: var(--ink);
  background: var(--soft);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
textarea { resize: none; overflow: hidden; min-height: 50px; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); background: #fff; }
::placeholder { color: var(--ph); opacity: 1; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23131013' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px); opacity: 0;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
