/* Intense Click · estilos */
@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/BodoniModa.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/BodoniModa-Italic.woff") format("woff"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Layout: editorial monocromático, como o Instagram da marca. Preto profundo,
     títulos em Bodoni (revista de moda) e rótulos espaçados como o “C L I C K” do logo. */
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1e1e21;
  --ink: #f3efe8;
  --muted: #b5afa6;
  --line: #2e2d31;
  --field: #8e8992;
  --accent: #f3efe8;
  --accent-ink: #0b0b0c;
  --focus: #e9c46a;
  --danger: #ff9180;
  --ok: #94dbaf;
  --warn: #f2ca6e;
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --font-body: "Jost", Futura, "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
#app { display: flex; flex-direction: column; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-thickness: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 7vw, 66px); letter-spacing: -0.01em; }
h1 em { font-style: italic; font-weight: 500; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); }
h3, .h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.3; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, section, [tabindex="-1"] { scroll-margin-top: 96px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Cabeçalho */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.logo { display: block; width: 156px; flex: none; }
.logo img { width: 100%; height: auto; }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  padding: 10px 12px; border-radius: var(--radius); color: var(--muted); min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }

/* Estrutura */
main { flex: 1; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 40px 20px 120px; display: flex; flex-direction: column; gap: 32px; }
.narrow-wrap { max-width: 760px; }
.eyebrow, .label {
  font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.page-head { display: flex; flex-direction: column; gap: 12px; }
.back { font-size: 15px; color: var(--muted); text-decoration: none; align-self: flex-start; padding: 8px 0; }
.back:hover { color: var(--ink); text-decoration: underline; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; margin-top: 16px; }
.row.end-items { align-items: flex-end; }
.row.end-items .field { flex: 1 1 200px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }

/* Início */
.hero { display: flex; flex-direction: column; gap: 20px; padding: 24px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 40px; }
.hero h1 { max-width: 16ch; }
.how { display: flex; flex-direction: column; gap: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps .num { font-family: var(--font-display); font-size: 28px; font-style: italic; }
.section-title { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.events-sec { display: flex; flex-direction: column; gap: 20px; }
.events-sec:focus { outline: none; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.event-card {
  display: flex; gap: 18px; padding: 20px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s ease;
}
.event-card:hover { border-color: var(--field); color: var(--ink); }
.event-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.date-block { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line); padding-right: 16px; }
.date-block .d { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.date-block .m { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-align: center; margin-top: 6px; }
.event-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.event-info h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; }

/* Peças */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel.narrow { max-width: 520px; }
.panel.danger { border-color: #5a2a24; }
.notice { border: 1px dashed var(--field); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.alert { border-left: 3px solid var(--warn); background: var(--surface); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 8px 0; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--field); color: var(--ink); white-space: nowrap; }
.chip.free { border-color: var(--ok); color: var(--ok); }
.chip.paid { border-color: var(--warn); color: var(--warn); }
.chip.draft { border-color: var(--danger); color: var(--danger); }

.btn {
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  background: transparent; color: var(--ink); border: 1px solid var(--field);
}
.btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: #fff; color: var(--accent-ink); border-color: #fff; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { color: #ffb1a5; border-color: #ffb1a5; }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, fieldset legend { font-weight: 500; font-size: 16px; }
.hint { font-size: 14px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--field); border-radius: var(--radius); padding: 11px 12px; min-height: 48px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8d8890; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: 15px; font-weight: 500; }
.check, .radio { display: flex; gap: 12px; align-items: flex-start; }
.check input, .radio input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check label, .radio label { font-size: 16px; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg-opts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 8px; }
.sub { padding-left: 34px; display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Evento */
.event-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.finder { position: sticky; top: 92px; }
.consent { border: 1px solid var(--focus); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.consent legend { padding: 0 6px; font-weight: 600; color: var(--focus); letter-spacing: 0.04em; }
.consent label { font-size: 15px; }
.selfie-row { display: flex; gap: 16px; align-items: center; }
.selfie-thumb { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); flex: none; }
.results, .gallery { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.results-empty { min-height: 220px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); padding: 24px; text-align: center; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.print { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: 2px; overflow: hidden; color: #fff; }
.print img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.print img.broken { opacity: .2; }
.print .frame { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 5px; font-size: 12px; letter-spacing: 0.12em; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.print .tick { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .55); display: grid; place-items: center; font-weight: 700; }
.print.sel { outline: 3px solid var(--accent); outline-offset: -3px; }
.print.sel .tick { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.print:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
details.maybe summary { cursor: pointer; font-weight: 500; padding: 8px 0; min-height: 44px; }
.removal { border-top: 1px solid var(--line); padding-top: 16px; }

.orderbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--field); }
.orderbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.orderbar .total { margin-right: auto; font-weight: 600; }
.order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow: auto; }
.order-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.order-total { font-weight: 600; font-size: 18px; }
.terms-sum { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.terms-sum dt { color: var(--muted); }
.terms-sum dd { margin: 0; }

/* Visualizador e diálogos */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 5, 6, .97); display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; }
.lb-title { font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0.12em; }
.lb-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; align-items: center; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 190px); margin: 0 auto; object-fit: contain; }
.lb-nav { background: transparent; border: 0; color: var(--ink); font-size: 40px; cursor: pointer; height: 100%; min-height: 60px; }
.lb-nav:disabled { opacity: .25; cursor: default; }
.lb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 12px 16px 4px; }
.lb-note { text-align: center; color: var(--muted); font-size: 14px; padding: 4px 16px 16px; max-width: 70ch; margin: 0 auto; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .7); display: grid; place-items: center; padding: 16px; overflow: auto; }
.modal-card { position: relative; background: var(--surface); border: 1px solid var(--field); border-radius: 6px; padding: 24px; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.modal-card.wide { max-width: 560px; }
.close-x { align-self: flex-end; }
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px); z-index: 70; opacity: 0; pointer-events: none;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; border-radius: var(--radius); font-weight: 500; max-width: calc(100% - 32px);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); color: #1a0806; }

/* Painel */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table tbody th { font-weight: 500; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.req { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.req.done { opacity: .7; }
.req select { width: auto; min-width: 170px; }
.req .msg { white-space: pre-wrap; background: var(--bg); padding: 10px; border-radius: var(--radius); }
.drop { border: 2px dashed var(--field); border-radius: var(--radius); padding: 28px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.drop.over { border-color: var(--focus); background: var(--surface-2); }
.job { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
progress { width: 100%; height: 10px; accent-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.stats div { background: var(--bg); padding: 10px; border-radius: var(--radius); }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: 24px; font-variant-numeric: tabular-nums; }
.log { margin: 0; padding-left: 18px; max-height: 140px; overflow: auto; font-size: 14px; color: var(--muted); }
.found-thumb { width: 220px; border-radius: 2px; }

/* Páginas legais */
.legal { max-width: 820px; }
.legal section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.legal section:focus { outline: none; }
.legal h2 { font-size: 26px; padding-top: 8px; }
.legal h3 { margin-top: 6px; }
.legal p, .legal li { max-width: 70ch; }
.legal ul, .legal ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.summary { border: 1px solid var(--field); border-radius: var(--radius); padding: 20px 24px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.toc ol { columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }

/* Rodapé */
.foot { border-top: 1px solid var(--line); margin-top: auto; }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 32px 20px 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; font-size: 15px; }
.foot-id { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.foot-id strong { color: var(--ink); font-weight: 600; }
.foot-id .contacts a { white-space: nowrap; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.a11y-icon { width: 22px; height: 22px; flex: none; }
.foot-copy { grid-column: 1 / -1; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 900px) {
  .event-body, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .finder { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-inner { padding: 8px 16px; gap: 8px; flex-wrap: wrap; }
  .logo { width: 124px; }
  .nav { margin-left: 0; width: 100%; justify-content: space-between; }
  .nav a { padding: 8px 6px; letter-spacing: 0.12em; font-size: 12px; }
  .wrap { padding: 28px 16px 120px; gap: 24px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .sheet { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-stage { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .toc ol { columns: 1; }
  .foot-links { grid-template-columns: minmax(0, 1fr); }
  .event-card { padding: 16px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .chip, .panel, .print { border: 1px solid CanvasText; }
}
