:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --ink: #1d2422;
  --muted: #66706c;
  --line: #e4ded2;
  --brand: #1f3a34;
  --accent: #c8743a;
  --ok: #2f7a55;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}
.top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-inner { max-width: 640px; margin: 0 auto; padding: 14px 18px; }
.brand { font-weight: 600; letter-spacing: .2px; font-size: 15px; opacity: .95; }
.wrap { max-width: 640px; margin: 0 auto; padding: 18px 14px; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.loading { text-align: center; color: var(--muted); }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.3px; }
h2 { font-size: 18px; margin: 0; line-height: 1.3; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.hero { background: var(--brand); color: #fff; border: 0; }
.hero .muted { color: rgba(255,255,255,.75); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.date { background: rgba(255,255,255,.09); border-radius: 12px; padding: 10px 12px; }
.date b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; opacity: .7; font-weight: 600; }
.date span { font-size: 15px; }

.banner {
  background: #fff7ec; border: 1px solid #f0d9b9; color: #6b4a22;
  border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px;
}

.step { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #eef3f1; color: var(--brand); display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
}
.icon { font-size: 20px; margin-right: 2px; }
.card ul { padding-left: 20px; margin: 0 0 10px; }
.card li { margin-bottom: 6px; }
strong { font-weight: 650; }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef3f1; color: var(--brand); text-decoration: none; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; font-size: 14px;
}
.btn-link::before { content: "↗"; font-size: 13px; }

.secret {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; font-size: 20px; letter-spacing: 1px;
  background: #1f3a34; color: #fff; padding: 2px 10px; border-radius: 8px; cursor: pointer;
}
.secret.copy::after { content: "copiar"; font: 600 10px/1 -apple-system, sans-serif; letter-spacing: .4px; text-transform: uppercase; margin-left: 8px; opacity: .6; vertical-align: middle; }
.locked {
  display: inline-block; background: #f3efe6; color: var(--muted); font-size: 14px;
  padding: 3px 10px; border-radius: 8px; border: 1px dashed #d8cfbe;
}

.media { margin-top: 12px; display: grid; gap: 10px; }
.media video, .media img { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; display: block; }
.media img { background: transparent; height: auto; max-height: none; }

/* formulário */
label.q { display: block; font-weight: 600; margin: 18px 0 8px; }
.seg { display: grid; gap: 8px; }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg.four { grid-template-columns: repeat(4, 1fr); }
.seg button {
  font: inherit; font-weight: 600; padding: 14px 8px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.seg button.on { border-color: var(--brand); background: var(--brand); color: #fff; }
input.text {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
}
input.text:focus { outline: none; border-color: var(--brand); }
input.code {
  width: 100%; font: 700 28px/1 ui-monospace, Menlo, monospace; letter-spacing: 12px; text-align: center;
  padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin: 8px 0 4px;
}
input.code:focus { outline: none; border-color: var(--brand); }
.primary {
  width: 100%; font: inherit; font-weight: 700; padding: 15px; margin-top: 18px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; cursor: pointer;
}
.primary:disabled { opacity: .45; cursor: default; }
.err { color: #b3261e; font-size: 14px; min-height: 20px; margin-top: 6px; }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
.answers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; }
.pill { background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 99px; }

.wa {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none;
  font-weight: 700; padding: 13px 20px; border-radius: 99px; box-shadow: 0 6px 20px rgba(0,0,0,.18); z-index: 10; white-space: nowrap;
}
.hidden { display: none !important; }
.toast {
  position: fixed; left: 50%; top: 70px; transform: translateX(-50%) translateY(-10px); opacity: 0;
  background: #1d2422; color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 14px; transition: .2s; pointer-events: none; z-index: 20;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.adminbar { background: #fff3cd; border: 1px solid #ecd889; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
