/* Cartão Vem Ver — mini site público (paleta cobre e prata) */
:root {
  --bg: #0b0c0f;
  --bg-2: #111318;
  --surface: #15171c;
  --surface-2: #1b1e24;
  --surface-3: #22262d;
  --line: rgba(220, 226, 234, 0.09);
  --line-2: rgba(220, 226, 234, 0.16);
  --text: #eef0f3;
  --muted: #9ba1aa;
  --dim: #6c727b;

  --copper-1: #5b2f17;
  --copper-2: #9c5a2d;
  --copper-3: #c98352;
  --copper-4: #efbb92;
  --silver-1: #626870;
  --silver-2: #aab0b8;
  --silver-3: #e4e7eb;

  --copper: linear-gradient(135deg, #6a3719 0%, #b06a37 24%, #eab48a 46%, #c07a46 64%, #7a4220 100%);
  --silver: linear-gradient(135deg, #5c6269 0%, #c9ced4 30%, #f7f8f9 46%, #a7adb5 66%, #5f656d 100%);
  --band: linear-gradient(90deg, #6a3719 0%, #c07a46 18%, #f0c39c 32%, #e8ebee 50%, #9aa1a9 66%, #c07a46 84%, #6a3719 100%);
  --open: #6fd7a0;
  --closed: #e88a6c;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --font-h: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.copper-text { background: var(--copper); -webkit-background-clip: text; background-clip: text; color: transparent; }
.silver-text { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botões genéricos ---------- */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2);
  cursor: pointer; text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(239, 187, 146, .45); }
.btn-ghost.sm { padding: 7px 12px; font-size: 12.5px; }
.btn-copper {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 15px 18px; border: 0; border-radius: var(--r-md); cursor: pointer; text-decoration: none;
  background: var(--copper); background-size: 180% 180%; background-position: 0% 50%;
  color: #1d1007; font-family: var(--font-h); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  box-shadow: 0 10px 30px rgba(176, 106, 55, .28), inset 0 1px 0 rgba(255,255,255,.35);
  transition: background-position .6s var(--ease), transform .15s;
}
.btn-copper:hover { background-position: 100% 50%; }
.btn-copper:active { transform: scale(.985); }
.btn-silver { background: var(--silver); color: #14171b; box-shadow: 0 10px 26px rgba(170,176,184,.16), inset 0 1px 0 rgba(255,255,255,.5); }
input[type="text"], input[type="tel"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); outline: none; color-scheme: dark;
}
input:focus, select:focus, textarea:focus { border-color: var(--copper-3); box-shadow: 0 0 0 3px rgba(201,131,82,.18); }
textarea { resize: vertical; min-height: 88px; }
:focus-visible { outline: 2px solid var(--copper-4); outline-offset: 2px; }

/* ============ MINI SITE ============ */
.site { max-width: 480px; margin: 0 auto; padding: 0 16px 28px; }

/* Capa (imagem) */
.cover { position: relative; margin: 0 -16px; height: 210px; overflow: hidden; background: #0f1013; }
.cover-default {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(234,180,138,.30), transparent 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(201,206,212,.16), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #1f1a17, #0d0e11 70%);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.72); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,15,.15) 0%, rgba(11,12,15,0) 35%, rgba(11,12,15,.95) 100%); pointer-events: none; }
@media (min-width: 960px) { .cover { height: 230px; } }

/* Cartão: proporção real ISO/IEC 7810 ID-1 (85,60 × 53,98 mm, cantos de 3,18 mm).
   Medidas internas em cqw para escalar como um cartão de verdade. */
.card-wrap { position: relative; z-index: 3; margin-top: -132px; perspective: 1000px; }
.id-card {
  position: relative; width: 100%; aspect-ratio: 85.6 / 53.98; border-radius: 3.715% / 5.891%;
  overflow: hidden; container-type: inline-size;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201,131,82,.20), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(201,206,212,.09), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #1d2025 0%, #101215 58%, #0a0b0d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06),
    0 30px 50px -10px rgba(0,0,0,.7), 0 10px 18px rgba(0,0,0,.35);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
}
.id-card.tilting { transition: transform .08s linear; }
.id-band { position: absolute; left: 0; right: 0; top: 0; height: 4.2cqw; background: var(--band); box-shadow: 0 .3cqw .6cqw rgba(0,0,0,.45); }
.id-shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(112deg, transparent 32%, rgba(255,255,255,.09) 44%, rgba(255,240,228,.16) 48%, rgba(255,255,255,.03) 53%, transparent 64%);
  background-size: 260% 100%; background-position: var(--sx, 85%) 0;
  animation: shine 7s var(--ease) infinite;
}
.id-card.tilting .id-shine { animation: none; }
@keyframes shine { 0%, 55% { background-position: 110% 0; } 100% { background-position: -10% 0; } }
.id-nfc { position: absolute; top: 9cqw; left: 6.5cqw; display: flex; align-items: center; gap: 1.6cqw; color: var(--silver-2); font-family: var(--font-h); font-weight: 700; font-size: 2.6cqw; letter-spacing: .3em; }
.id-nfc svg { width: 5.6cqw; height: 5.6cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.id-text { position: absolute; left: 6.5cqw; right: 44cqw; bottom: 7.5cqw; }
.id-name { margin: 0; font-family: var(--font-h); font-weight: 800; font-size: 6.4cqw; line-height: 1.12; letter-spacing: .05em; text-transform: uppercase; color: var(--silver-3); text-shadow: 0 .3cqw .5cqw rgba(0,0,0,.6); }
.id-company { margin: 2cqw 0 0; font-family: var(--font-h); font-weight: 700; font-size: 2.8cqw; letter-spacing: .3em; text-transform: uppercase; }
.id-role { margin: 1.8cqw 0 0; font-size: 3cqw; color: var(--muted); line-height: 1.3; }
.id-mark { position: absolute; right: 6.5cqw; bottom: 4.6cqw; font-family: var(--font-h); font-size: 2.1cqw; letter-spacing: .32em; color: var(--dim); font-weight: 700; }

/* Foto com anel de status (estilo stories): verde = aberto, vermelho = fechado */
.avatar {
  position: absolute; right: 6.5cqw; top: calc(50% + 1.6cqw); transform: translateY(-50%);
  width: 32cqw; aspect-ratio: 1; border-radius: 50%; padding: 1.15cqw; isolation: isolate;
}
.avatar::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 200deg, #ffb4a6, #f04438, #b42318, #f97066, #ffb4a6);
}
.avatar.closed { box-shadow: 0 0 5cqw rgba(240,68,56,.28); }
.avatar.open { box-shadow: 0 0 5cqw rgba(74,222,128,.32); }
.avatar.open::before { background: conic-gradient(from 200deg, #e3fcec, #86efac, #22c55e, #4ade80, #e3fcec); animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-in { width: 100%; height: 100%; border-radius: 50%; padding: .9cqw; background: #0b0c0f; }
.avatar-in img, .avatar-in span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #111317; font-family: var(--font-h); font-weight: 800; font-size: 7cqw; color: var(--copper-4); }

/* Status abaixo do cartão */
.card-status { display: flex; justify-content: center; margin-top: 16px; }
.status {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #f04438; box-shadow: 0 0 0 3px rgba(240,68,56,.18); }
.status.open i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); animation: pulse 2.2s infinite; }
.status small { color: var(--muted); font-weight: 500; font-size: 12px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.22); } 50% { box-shadow: 0 0 0 6px rgba(74,222,128,.05); } }

.bio { color: var(--muted); margin: 14px 2px 16px; font-size: 14.5px; text-align: center; }

/* Contagem de links */
.link .sub { display: block; font-size: 11.5px; color: var(--dim); font-weight: 400; margin-top: 1px; }

/* Captura de contatos */
.capture { display: grid; gap: 12px; }
.capture .chips { flex-wrap: wrap; overflow: visible; }
.capture-ok { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 8px 4px; }
.capture-ok .ico { width: 34px; height: 34px; color: #4ade80; }
.capture-ok b { font-family: var(--font-h); }
.capture-ok span { color: var(--muted); font-size: 13px; }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px !important; font-size: 11.5px !important; color: var(--dim) !important; }
.consent input { margin-top: 2px; accent-color: var(--copper-3); }

/* Ações principais */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.icon-btn {
  display: grid; place-items: center; gap: 6px; padding: 14px 4px 10px; border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  text-decoration: none; cursor: pointer; color: var(--silver-3); font-size: 11px; font-weight: 500;
  transition: border-color .2s, transform .15s;
}
.icon-btn:hover { border-color: rgba(239,187,146,.4); }
.icon-btn:active { transform: scale(.97); }
.icon-btn .ico { width: 22px; height: 22px; color: var(--copper-4); }

/* Seções */
.sec { margin-top: 26px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.sec-h h2 { font-family: var(--font-h); font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; margin: 0; font-weight: 700; color: var(--silver-2); }
.sec-h span { font-size: 12px; color: var(--dim); }

/* Lista de links */
.links { display: grid; gap: 10px; }
.link {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 14.5px; transition: border-color .2s, background .2s;
}
.link:hover { border-color: rgba(239,187,146,.4); background: var(--surface-2); }
.link .ico { width: 18px; height: 18px; color: var(--silver-2); flex: none; }
.link .lbl { flex: 1; min-width: 0; }
.link .arr { width: 15px; height: 15px; color: var(--copper-4); flex: none; }
.link.google { background: linear-gradient(180deg, rgba(201,131,82,.12), rgba(201,131,82,.04)); border-color: rgba(239,187,146,.28); }
.link.google .ico { color: var(--copper-4); }
.stars { color: var(--copper-4); letter-spacing: 1px; font-size: 12px; }

/* Bloqueado (Pro) */
.locked {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-md);
  border: 1px dashed rgba(170,176,184,.28); background: repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 8px, transparent 8px 16px);
  color: var(--muted); font-size: 13px;
}
.locked .ico-wrap { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.locked .ico { width: 16px; height: 16px; color: var(--silver-2); }
.locked b { color: var(--text); font-weight: 600; display: block; font-size: 13.5px; }
.locked .tag { margin-left: auto; flex: none; font-size: 10px; font-weight: 700; letter-spacing: .14em; padding: 4px 8px; border-radius: 999px; background: var(--copper); color: #1d1007; font-family: var(--font-h); }
.more-note { font-size: 12px; color: var(--dim); margin: 8px 2px 0; display: flex; align-items: center; gap: 6px; }
.more-note .ico { width: 13px; height: 13px; }

/* Serviços */
.services { display: grid; gap: 8px; }
.service { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.service i { width: 6px; border-radius: 3px; background: var(--copper); flex: none; }
.service b { display: block; font-size: 14px; font-weight: 600; }
.service span { font-size: 12.5px; color: var(--muted); }

/* Catálogo */
.catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.product-img { aspect-ratio: 1 / 1; background: linear-gradient(160deg, #23262c, #111317); position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-body b { font-size: 12.5px; line-height: 1.3; font-weight: 600; }
.product-body p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.35; flex: 1; }
.price { font-family: var(--font-h); font-weight: 700; font-size: 15px; margin-top: 4px; }
.product .btn-ghost { margin-top: 6px; padding: 8px 6px; font-size: 12px; }
.product .btn-ghost .ico { width: 14px; height: 14px; color: var(--copper-4); }

/* Cartões de bloco (form, agenda, mapa) */
.block { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.block p.hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer;
  font-size: 12.5px; text-align: center; line-height: 1.25;
}
.chip small { display: block; color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.chip[aria-pressed="true"] { background: var(--copper); color: #1d1007; border-color: transparent; font-weight: 600; }
.chip[aria-pressed="true"] small { color: #3a1f0d; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slots .chip { padding: 8px 4px; }
.empty { font-size: 12.5px; color: var(--dim); padding: 6px 2px; }

.map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); height: 180px; background: #16181c; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.9); }
.map-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.map-row span { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.map-row .ico { width: 15px; height: 15px; color: var(--copper-4); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: grid; gap: 8px; padding: 16px 14px; border-radius: var(--r-lg); cursor: pointer; text-align: left;
  background: linear-gradient(170deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.tile:hover { border-color: rgba(239,187,146,.4); }
.tile .ico { width: 24px; height: 24px; color: var(--copper-4); }
.tile b { font-family: var(--font-h); font-size: 14px; }
.tile span { font-size: 12px; color: var(--muted); }

/* Horários */
.hours { padding: 6px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hours-row:last-child { border-bottom: 0; }
.hours-row span:last-child { color: var(--muted); text-align: right; }
.hours-row.today span { color: var(--text); font-weight: 600; }
.hours-row.today span:first-child::after { content: "hoje"; margin-left: 8px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; background: var(--copper); color: #1d1007; }

/* Rodapé */
.site-foot { margin-top: 30px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.url-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--silver-3); }
.url-pill .ico { width: 13px; height: 13px; color: var(--copper-4); }
.url-pill em { font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.made { font-size: 11.5px; color: var(--dim); letter-spacing: .04em; }
.made b { font-family: var(--font-h); letter-spacing: .14em; }

/* Ícones */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Folha (sheet) e toast ---------- */
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; pointer-events: auto;
  background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s var(--ease);
  max-width: 520px; margin: 0 auto;
}
.sheet.in { transform: none; }
.backdrop.in { opacity: 1; }
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-h h3 { margin: 0; font-family: var(--font-h); font-size: 17px; }
.sheet-x { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.sheet-x .ico { width: 16px; height: 16px; }
.qr-box { display: grid; place-items: center; padding: 14px; border-radius: var(--r-md); background: #f4f5f6; width: 220px; height: 220px; margin: 4px auto 14px; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
.qr-box .qr-fail { color: #333; font-size: 12px; text-align: center; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; word-break: break-all; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; max-height: 84px; overflow: auto; }
.sheet-list { display: grid; gap: 8px; }
.sheet .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.kv { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; }
.kv small { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.toast {
  position: absolute; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; transition: all .25s var(--ease);
  background: var(--silver); color: #14171b; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); white-space: nowrap; pointer-events: none;
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }

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

.sec-locked + .sec-locked { margin-top: 10px; }

/* ---------- Página pública ---------- */
.layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.eyebrow { font-family: var(--font-h); font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--copper-4); margin: 0 0 10px; font-weight: 700; }
.avatar.neutral::before { background: conic-gradient(from 200deg, #f3c9a6, #c98352, #7a4220, #e7a977, #f3c9a6); }
.actions[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
.actions[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.actions[data-n="1"] { grid-template-columns: 1fr; }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.site-foot a { color: inherit; text-decoration: none; }
@media (min-width: 720px) {
  body.publico { background: radial-gradient(1100px 700px at 50% -10%, #1d1713 0%, var(--bg) 60%) fixed; }
  body.publico .site { padding-bottom: 48px; }
  body.publico .cover { margin: 0 -16px; border-radius: 0 0 28px 28px; }
}
