/* =====================================================================
   Linktria — design system (inspirado em link-in-bio: cores vivas, cantos
   arredondados, botões em pílula). Classes são compartilhadas por landing,
   painel e páginas públicas; JS depende só de ids e de .msg/.chat-*.
   ===================================================================== */
:root {
  --lime: #d2e823; --lime-deep: #bccf14; --forest: #254f1a;
  --plum: #502274; --plum-deep: #3b165a; --blush: #e9c0e9; --blush-deep: #d69ad6;
  --night: #1e2330; --night-2: #2b3142; --sand: #f6f5f0; --sand-2: #ecebe4; --white: #ffffff;
  --ink: #1e2330; --muted: #5d6270; --soft: #8a8f9c;
  --rule: rgba(30, 35, 48, 0.10); --rule-strong: rgba(30, 35, 48, 0.22);
  --ok: #1f7a3a; --ok-tint: #dff5e4; --warn: #8a6100; --warn-tint: #fff1c2; --err: #b3261e; --err-tint: #fde3e1;
  --link: #502274;
  --radius: 20px; --radius-sm: 12px; --pill: 999px;
  --shadow: 0 1px 2px rgba(30, 35, 48, 0.05), 0 12px 32px rgba(30, 35, 48, 0.08);
  --shadow-lg: 0 24px 64px rgba(30, 35, 48, 0.18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--sand); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: 2rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); } .soft { color: var(--soft); } .small { font-size: .875rem; }
.mono { font-family: var(--mono); font-size: .9em; }
code { font-family: var(--mono); background: var(--sand-2); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
img { max-width: 100%; }

/* ---------- Painel: casca ---------- */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { background: var(--white); border-right: 1px solid var(--rule); padding: 1.5rem 1.1rem; display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100vh; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(210, 232, 35, .35); flex-shrink: 0; }
.nav { display: flex; flex-direction: column; gap: .15rem; }
.nav a { color: var(--muted); padding: .65rem .9rem; border-radius: var(--pill); display: flex; gap: .6rem; align-items: center; font-size: .95rem; font-weight: 600; }
.nav a:hover { background: var(--sand); text-decoration: none; color: var(--ink); }
.nav a.active { background: var(--night); color: var(--white); }
.nav-count { margin-left: auto; min-width: 1.35rem; height: 1.35rem; padding: 0 .4rem; border-radius: var(--pill); background: var(--plum); color: #fff; font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; }
.nav a.active .nav-count { background: var(--lime); color: var(--forest); }
.adm-tag { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--night); color: var(--lime); padding: .15rem .45rem; border-radius: var(--pill); }
.side-foot { margin-top: auto; font-size: .85rem; color: var(--muted); display: flex; flex-direction: column; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.side-foot .btn { background: transparent; color: var(--ink); border-color: var(--rule-strong); justify-content: center; }
.side-foot .btn:hover { background: var(--sand); }
.who { display: flex; gap: .6rem; align-items: center; color: var(--ink); font-weight: 600; }
.who .small { font-weight: 400; color: var(--muted); }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sand-2); }
.main { padding: 1.5rem 2.5rem 4rem; max-width: 1140px; width: 100%; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: .5rem 0 1.5rem; flex-wrap: wrap; }
.topbar p { margin: 0; }
.live-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--white); border: 1px solid var(--rule); border-radius: var(--pill); padding: .5rem .6rem .5rem 1.1rem; margin-bottom: 1.25rem; font-size: .92rem; }
.live-bar .url { font-weight: 600; color: var(--ink); word-break: break-all; }
.live-bar .url b { color: var(--plum); }
.live-bar .live { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.live-bar .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.live-bar .live.off::before { background: var(--err); }

/* ---------- Cards, grid ---------- */
.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.grid > .card + .card { margin-top: 0; }
.card h2 { margin-bottom: .25rem; }
.card .lead { color: var(--muted); margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 1.1rem 1.4rem; }
.stat .num { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.stat .lbl { color: var(--muted); font-size: .875rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 1rem 0; }

/* ---------- Formulários ---------- */
label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.hint { display: block; font-weight: 400; color: var(--soft); font-size: .8rem; margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--sand); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); padding: .75rem .95rem; outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
input:hover, textarea:hover, select:hover { background: var(--sand-2); }
input:focus, textarea:focus, select:focus { border-color: var(--night); background: var(--white); box-shadow: 0 0 0 4px rgba(30, 35, 48, .08); }
input:disabled { color: var(--soft); }
input.invalid { border-color: var(--err); }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 1rem; }
.field.inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.prefix-input { display: flex; align-items: stretch; background: var(--sand); border-radius: var(--radius-sm); border: 1.5px solid transparent; transition: border-color .15s, background .15s, box-shadow .15s; }
.prefix-input:focus-within { border-color: var(--night); background: var(--white); box-shadow: 0 0 0 4px rgba(30, 35, 48, .08); }
.prefix-input span { padding: .75rem 0 .75rem .95rem; color: var(--muted); font-size: .95rem; white-space: nowrap; font-weight: 600; }
.prefix-input input, .prefix-input input:focus, .prefix-input input:hover { background: transparent; border-color: transparent; box-shadow: none; padding-left: .15rem; }

/* ---------- Botões ---------- */
.btn, button { font: inherit; font-weight: 700; border: 1.5px solid transparent; border-radius: var(--pill); padding: .7rem 1.35rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--night); color: var(--white); transition: transform .08s, background .15s, color .15s, border-color .15s; text-decoration: none; line-height: 1.2; }
.btn:hover, button:hover { text-decoration: none; background: var(--night-2); }
.btn:active, button:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--plum); color: var(--white); }
.btn.primary:hover { background: var(--plum-deep); }
.btn.lime { background: var(--lime); color: var(--forest); }
.btn.lime:hover { background: var(--lime-deep); }
.btn.light { background: var(--white); color: var(--ink); }
.btn.light:hover { background: var(--sand-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { background: var(--sand-2); }
.btn.danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn.danger:hover { background: var(--err-tint); }
.btn.sm { padding: .45rem .95rem; font-size: .875rem; }
.btn.lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn:disabled, button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }

/* ---------- Badges, avisos ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .7rem; border-radius: var(--pill); font-size: .78rem; font-weight: 700; background: var(--sand-2); color: var(--muted); vertical-align: middle; }
.badge.ok { background: var(--ok-tint); color: var(--ok); }
.badge.warn { background: var(--warn-tint); color: var(--warn); }
.badge.err { background: var(--err-tint); color: var(--err); }
.badge.accent { background: var(--blush); color: var(--plum-deep); }
.flash { padding: .8rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid transparent; font-size: .95rem; font-weight: 500; }
.flash.ok { background: var(--ok-tint); color: var(--ok); }
.flash.error { background: var(--err-tint); color: var(--err); }
.flash.warn { background: var(--warn-tint); color: var(--warn); }
.notice { background: var(--sand); border-left: 4px solid var(--lime-deep); padding: .8rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .9rem; color: var(--muted); }

/* ---------- Tabelas ---------- */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); font-weight: 700; }
tbody tr:hover { background: var(--sand); }
.pager { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
button[hidden], .btn[hidden] { display: none !important; }
.acesso-map { height: 480px; border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); background: var(--sand); }
.acesso-map .leaflet-container { height: 100%; width: 100%; font-family: inherit; }
.ip-bar { height: 8px; margin-top: .35rem; background: var(--sand-2); border-radius: 99px; overflow: hidden; }
.ip-bar span { display: block; height: 100%; background: var(--plum); border-radius: 99px; }
@media (max-width: 700px) { .acesso-map { height: 320px; } }

/* ---------- Adm: contato do cadastro (WhatsApp Web e Instagram) ---------- */
.adm-fone { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.adm-fone + .adm-fone, .adm-ig { margin-top: .4rem; }
.btn.wa { background: #25d366; color: #0b3d2e; padding: .3rem .75rem; font-size: .8rem; white-space: nowrap; }
.btn.wa:hover { background: #1ebe5b; }
.btn.wa svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.adm-ig { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.adm-ig-ico { width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%); }
.adm-ig-ico svg { width: .8rem; height: .8rem; display: block; }

/* ---------- Adm: abas e gráfico de utilização ---------- */
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin: -.5rem 0 1.35rem; }
.tabs a { color: var(--muted); padding: .5rem 1rem; border-radius: var(--pill); font-weight: 700; font-size: .9rem; }
.tabs a:hover { background: var(--sand); text-decoration: none; color: var(--ink); }
.tabs a.active { background: var(--night); color: var(--white); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding: .75rem .25rem .25rem; background:
  repeating-linear-gradient(to top, rgba(30, 35, 48, .06) 0 1px, transparent 1px 40px);
  border-radius: var(--radius-sm, 10px); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; height: 100%; }
.bar-col .bar { width: 100%; max-width: 28px; background: linear-gradient(180deg, #6a4d9a 0%, var(--plum) 100%);
  border-radius: 8px 8px 4px 4px; min-height: 4px; box-shadow: 0 2px 6px rgba(80, 34, 116, .18); }
.bar-col .bar-n { font-size: .7rem; font-weight: 700; color: var(--muted); min-height: 1em; margin-bottom: .25rem; }
.bar-col .bar-lbl { font-size: .65rem; color: var(--soft); margin-top: .4rem; white-space: nowrap; }

/* ---------- Adm charts (Chart.js) ---------- */
.chart-wrap { position: relative; width: 100%; height: 280px; margin-top: .5rem; }
.chart-wrap-lg { height: 320px; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }
.chart-empty { margin: 2.5rem 0; text-align: center; font-size: .95rem; }
.grid.chat-split { grid-template-columns: 1.6fr 1fr; }

/* ---------- Autenticação (layout dividido) ---------- */
.auth-split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); }
.auth-pane { display: flex; flex-direction: column; padding: 1.5rem clamp(1.25rem, 5vw, 4rem); }
.auth-pane .brand { align-self: flex-start; }
.auth-card { width: 100%; max-width: 440px; margin: auto; padding: 2rem 0; }
.auth-card h1 { font-size: 2.2rem; margin-bottom: .35rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.5rem; }
.auth-art { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; padding: 2.5rem clamp(1.5rem, 5vw, 4rem); background: var(--lime); color: var(--forest); }
.auth-art.plum { background: var(--plum); color: var(--white); }
.auth-art.blush { background: var(--blush); color: var(--plum-deep); }
.auth-art.night { background: var(--night); color: var(--white); }
.auth-art .phone { width: auto; height: min(62vh, 640px); flex-shrink: 0; }
.auth-art .phone.tilt { transform: rotate(-3deg); }
.auth-art .art-copy { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; max-width: 520px; width: 100%; }
.auth-art .art-copy small { display: block; font-size: .95rem; font-weight: 500; margin-top: .6rem; opacity: .85; letter-spacing: 0; }
.social { display: flex; flex-direction: column; gap: .6rem; margin: 0 0 .25rem; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--rule-strong); border-radius: var(--pill); background: var(--white); color: var(--ink); font-weight: 700; font-size: .95rem; transition: background .15s, border-color .15s; }
.social-btn:hover { background: var(--sand); border-color: var(--ink); text-decoration: none; }
.social-btn .ico, .method .ico { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-btn .ico svg, .method .ico svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 1.2rem 0 1rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.method-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.method { display: grid; grid-template-columns: 32px 1fr auto; gap: .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.method:last-child { border-bottom: 0; }
.method .ico.key { font-size: 1.15rem; color: var(--muted); }

/* ---------- Perguntas ---------- */
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.q-item { display: grid; grid-template-columns: 30px 1fr auto; gap: .6rem; align-items: center; background: var(--sand); border-radius: var(--radius-sm); padding: .45rem .55rem; }
.q-item .n { width: 30px; height: 30px; border-radius: 50%; background: var(--night); color: var(--lime); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.q-item input { background: transparent; padding: .5rem .55rem; }
.q-item input:focus { background: var(--white); }
.q-item .acts { display: flex; gap: .15rem; }
.q-item .acts button { background: transparent; color: var(--muted); padding: .3rem .5rem; border-radius: 8px; }
.q-item .acts button:hover { background: var(--sand-2); color: var(--ink); }

/* ---------- Chat (painel/testar, público e mockups) ---------- */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { max-width: 78%; padding: .7rem 1rem; border-radius: 18px; font-size: .97rem; white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; }
.msg.user { align-self: flex-end; background: var(--night); color: var(--white); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--sand); color: var(--ink); border-bottom-left-radius: 6px; }
.msg.sys { align-self: center; background: transparent; color: var(--soft); font-size: .8rem; }
.msg.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--soft); margin: 0 1px; animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--rule); background: var(--white); }
.chat-form input { flex: 1; border-radius: var(--pill); padding: .75rem 1.1rem; }
.chat-form button { border-radius: var(--pill); padding: .75rem 1.3rem; background: var(--plum); }
.chat-form button:hover { background: var(--plum-deep); }

/* ---------- Tickets de suporte ---------- */
.thread { display: flex; flex-direction: column; gap: .7rem; }
.thread .msg { max-width: 82%; }
.thread .msg.mine { align-self: flex-end; background: var(--plum); color: #fff; border-bottom-right-radius: 6px; }
.thread .msg.theirs { align-self: flex-start; background: var(--sand); color: var(--ink); border-bottom-left-radius: 6px; }
.thread .who { font-size: .75rem; font-weight: 800; margin-bottom: .2rem; opacity: .8; }
.thread .when { font-size: .72rem; margin-top: .4rem; opacity: .65; }
.thread-form { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--rule); }

/* ---------- Página pública do negócio (/slug) ---------- */
.pub { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 1.25rem 1rem 1.5rem; background: radial-gradient(120% 60% at 50% 0%, var(--pub-accent, var(--lime)) 0%, var(--pub-sand, var(--sand)) 62%); }
.pub.bio { padding: 2.4rem 1.15rem 2.5rem; background: var(--pub-sand, #f7f4ef); }
.pub-wrap { width: 100%; max-width: 680px; display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 1rem; }
.pub.bio .pub-wrap { max-width: 760px; gap: 2rem; }
.pub-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.25rem 0 .25rem; }
.pub.bio .pub-head { padding: .4rem 0 0; }
.pub-logo { width: 108px; height: 108px; border-radius: 50%; background: #fff; border: 1px solid rgba(30, 35, 48, .08); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(30, 35, 48, .06); }
.pub-logo .avatar { width: 88px; height: 88px; border-width: 0; box-shadow: none; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--night); color: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 2rem; flex-shrink: 0; box-shadow: 0 8px 24px rgba(30, 35, 48, .18); border: 4px solid var(--white); }
img.avatar { object-fit: cover; padding: 0; background: var(--white); }
.pub-head .title { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; margin-top: .8rem; color: var(--ink); }
.pub.bio .pub-head .title { font-size: clamp(1.85rem, 4.4vw, 2.55rem); margin: 1.15rem 0 .55rem; }
.pub-head .handle { color: var(--muted); font-size: .95rem; font-weight: 500; }
.lede-pub { margin: 0 auto; max-width: 34rem; color: var(--muted); font-size: 1.02rem; line-height: 1.55; font-weight: 500; }
.pub-head .sub { font-size: .8rem; color: var(--ok); display: inline-flex; align-items: center; gap: .35rem; margin-top: .65rem; background: var(--white); padding: .25rem .75rem; border-radius: var(--pill); font-weight: 700; }
.pub-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin: .9rem 0 0; }
.pub.bio .pub-socials { margin-top: 1.2rem; gap: .7rem; }
.pub-social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 4px 14px rgba(30, 35, 48, .14); transition: transform .15s, box-shadow .15s; }
.pub-social:hover { transform: translateY(-2px) scale(1.07); text-decoration: none; box-shadow: 0 8px 20px rgba(30, 35, 48, .2); }
.pub-social svg { width: 20px; height: 20px; display: block; }
.pub-social.instagram { background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%); }
.pub-social.tiktok { background: #111; }
.pub-social.youtube { background: #ff0000; }
.pub-social.facebook { background: #1877f2; }
.pub-social.whatsapp { background: #25d366; }
.pub-social.linkedin { background: #0a66c2; }
.pub-social.twitter { background: #111; }
.pub-social.threads { background: #111; }
.pub-social.telegram { background: #26a5e4; }
.pub-social.kwai { background: #ff4906; }
.pub-social.website { background: var(--plum); }
.pub-head .sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.pub-body { flex: 1; display: flex; justify-content: center; min-height: 0; }
.pub-chat { width: 100%; display: flex; flex-direction: column; min-height: 420px; height: min(62dvh, 640px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.pub.bio .pub-chat { min-height: 0; height: auto; background: #f4f1ec; border-radius: 28px; box-shadow: none; padding: 1.1rem 1.1rem 1rem; }
.pub.bio .chat-log { min-height: 0; max-height: min(72dvh, 680px); padding: .15rem .2rem .1rem; gap: .75rem; }
.pub.bio .chat-log > :first-child { margin-top: auto; }
.msg-row { display: flex; align-items: flex-end; gap: .55rem; align-self: flex-start; max-width: 92%; }
.msg-row .msg { max-width: 100%; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(30, 35, 48, .06); }
.pub.bio .msg.bot { background: #fff; border-radius: 18px; border-bottom-left-radius: 18px; }
.pub.bio .msg.user { border-radius: 18px; border-bottom-right-radius: 18px; }
.chat-contato { display: none; flex-direction: column; gap: .5rem; min-width: 0; }
.chat-form.pede-contato { flex-wrap: wrap; align-items: flex-end; }
.chat-form.pede-contato .chat-contato { display: flex; flex: 1 1 calc(100% - 58px); }
.chat-form.pede-contato #msg { display: none; }
.pub.bio .chat-form { border: 0; background: transparent; padding: .35rem 0 0; gap: .65rem; }
.pub.bio .chat-form input { background: #fff; border-radius: var(--pill); padding: .95rem 1.2rem; }
.pub.bio .chat-form button { width: 46px; height: 46px; padding: 0; border-radius: 50%; background: var(--night); color: #fff; flex-shrink: 0; }
.pub.bio .chat-form button:hover { background: var(--night-2); }
.pub-wa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.75rem; padding-top: .4rem; }
.wa-kicker { margin: 0 0 .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.wa-card .wa-kicker { display: inline-flex; align-items: center; gap: .5rem; }
.wa-logo { width: 22px; height: 22px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(37, 211, 102, .35); letter-spacing: 0; }
.wa-logo svg { width: 13px; height: 13px; display: block; }
.wa-top { margin-bottom: 1.1rem; }
.wa-card h2 { font-size: 1.2rem; margin: 0 0 .25rem; }
.wa-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.wa-btn { display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; background: var(--pub-cta, #8f8174); color: #fff; border-radius: var(--pill); padding: .85rem 1.1rem; font-weight: 700; }
.wa-btn:hover { text-decoration: none; filter: brightness(1.05); color: #fff; }
.pub-ig { padding-top: .2rem; }
.ig-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.2rem; }
.ig-head h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0; }
.ig-follow { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.ig-follow:hover { color: var(--ink); text-decoration: none; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.ig-card { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #1c1916; color: #fff; display: block; }
.ig-card:hover { text-decoration: none; color: #fff; }
.ig-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-card.plain { background: linear-gradient(160deg, #2a2622 0%, #151311 100%); }
.ig-cap { position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.1rem 2.4rem; font-weight: 700; font-size: clamp(.92rem, 1.7vw, 1.12rem); line-height: 1.25; letter-spacing: -0.02em; background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .72) 55%); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ig-badge { position: absolute; left: .9rem; bottom: .75rem; width: 22px; height: 22px; color: #fff; }
.ig-badge svg { width: 18px; height: 18px; display: block; }
.pub-foot { text-align: center; padding: .5rem 0 0; font-size: .85rem; color: var(--muted); display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.pub.bio .pub-foot { padding-top: .2rem; }
.pub.bio .pub-foot a { color: var(--soft); font-weight: 500; }
.pub-foot .btn { background: var(--white); color: var(--ink); border-color: var(--rule-strong); }
.pub-foot .btn:hover { background: var(--sand-2); }
.center-card { max-width: 480px; margin: 10vh auto; text-align: center; padding: 2.5rem 2rem; }
.center-card .brand { justify-content: center; margin-bottom: 1rem; }
.center-card .avatar { margin: 0 auto 1rem; }

/* ---------- Landing ---------- */
.site { background: var(--white); color: var(--ink); overflow-x: hidden; }
.site-nav { position: sticky; top: 0; z-index: 20; padding: 1rem clamp(1rem, 3vw, 2.5rem) 0; pointer-events: none; }
.nav-pill { pointer-events: auto; max-width: 1240px; margin: 0 auto; background: var(--white); border-radius: var(--pill); box-shadow: 0 6px 24px rgba(30, 35, 48, .10); padding: .55rem .6rem .55rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.nav-pill .links { display: flex; gap: .25rem; margin-left: .5rem; }
.nav-pill .links a { color: var(--muted); font-weight: 600; padding: .5rem .8rem; border-radius: var(--pill); font-size: .95rem; }
.nav-pill .links a:hover { background: var(--sand); color: var(--ink); text-decoration: none; }
.nav-pill .actions { margin-left: auto; display: flex; gap: .4rem; align-items: center; }
.section { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem); }
.section .inner { max-width: 1240px; margin: 0 auto; }
.section.lime { background: var(--lime); color: var(--forest); }
.section.plum { background: var(--plum); color: var(--white); }
.section.blush { background: var(--blush); color: var(--plum-deep); }
.section.night { background: var(--night); color: var(--white); }
.section.sand { background: var(--sand); }
.display { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 1.25rem; }
.display.md { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; max-width: 560px; margin: 0 0 1.75rem; font-weight: 500; opacity: .92; }
.hero { padding-top: clamp(3rem, 7vw, 6rem); min-height: 88vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.claim { display: flex; gap: .6rem; align-items: stretch; max-width: 560px; flex-wrap: wrap; }
.claim .prefix-input { flex: 1 1 260px; background: var(--white); border-radius: var(--pill); padding: 0 .35rem 0 .35rem; }
.claim .prefix-input:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(37, 79, 26, .15); }
.claim .prefix-input span { color: var(--soft); padding-left: 1.15rem; }
.claim .prefix-input input { font-weight: 700; color: var(--ink); }
.claim .btn { flex: 0 0 auto; padding: .95rem 1.5rem; }
.claim-note { font-size: .9rem; opacity: .8; margin-top: .9rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.eyebrow { display: inline-block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; opacity: .75; margin-bottom: 1rem; }
.section.plum .btn.primary { background: var(--lime); color: var(--forest); }
.section.plum .btn.primary:hover { background: var(--lime-deep); }
.section.blush .btn.primary { background: var(--plum); color: var(--white); }
.section.night .btn.primary { background: var(--lime); color: var(--forest); }
.section.night .btn.primary:hover { background: var(--lime-deep); }

/* Mockup de celular */
.phone { width: min(320px, 100%); margin: 0 auto; aspect-ratio: 9 / 19; background: var(--night); border-radius: 44px; padding: 12px; box-shadow: var(--shadow-lg); position: relative; }
.phone.tilt { transform: rotate(-4deg); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: var(--night); border-radius: var(--pill); z-index: 2; }
.screen { background: var(--sand); border-radius: 34px; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.screen-head { padding: 3.2rem 1rem .9rem; text-align: center; background: radial-gradient(120% 90% at 50% 0%, var(--lime) 0%, var(--sand) 90%); }
.screen-head .avatar { width: 56px; height: 56px; font-size: 1.3rem; border-width: 3px; margin: 0 auto; }
.screen-head .t { font-weight: 800; margin-top: .5rem; font-size: 1rem; letter-spacing: -0.02em; color: var(--ink); }
.screen-head .s { font-size: .72rem; color: var(--ok); font-weight: 700; }
.screen .chat-log { padding: .8rem .8rem 0; gap: .5rem; }
.screen .msg { font-size: .82rem; padding: .55rem .75rem; max-width: 86%; border-radius: 16px; }
.screen .msg.bot { background: var(--white); }
.screen .chat-form { padding: .6rem .7rem .9rem; border-top: 0; background: transparent; }
.screen .chat-form .fake { flex: 1; background: var(--white); border-radius: var(--pill); padding: .6rem 1rem; font-size: .8rem; color: var(--soft); }
.screen .chat-form .send { width: 36px; height: 36px; border-radius: 50%; background: var(--plum); display: grid; place-items: center; color: var(--white); font-size: .9rem; }

/* Mockups de painel */
.mock-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-lg); }
.mock-card .mc-title { font-weight: 800; font-size: 1.05rem; margin-bottom: .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mock-field { margin-bottom: .8rem; }
.mock-field .lbl { font-size: .72rem; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.mock-field .val { background: var(--sand); border-radius: var(--radius-sm); padding: .65rem .85rem; font-size: .9rem; color: var(--ink); line-height: 1.4; }
.mock-field .val.multi { min-height: 78px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: var(--white); color: var(--ink); border-radius: var(--pill); padding: .4rem .85rem; font-size: .85rem; font-weight: 700; box-shadow: 0 2px 8px rgba(30, 35, 48, .08); display: inline-flex; gap: .4rem; align-items: center; }
.chip b { color: var(--plum); }
.chip.on { background: var(--night); color: var(--lime); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.mock-stat { background: var(--night-2); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.mock-stat .n { font-size: 1.6rem; font-weight: 800; color: var(--lime); letter-spacing: -0.03em; }
.mock-stat .l { font-size: .75rem; color: rgba(255, 255, 255, .7); }
.mock-table { width: 100%; font-size: .85rem; border-radius: var(--radius-sm); overflow: hidden; background: var(--night-2); }
.mock-table th, .mock-table td { border-color: rgba(255, 255, 255, .08); color: var(--white); }
.mock-table th { color: rgba(255, 255, 255, .55); }
.mock-table tbody tr:hover { background: transparent; }
.mock-table .badge { background: rgba(210, 232, 35, .15); color: var(--lime); }

/* Passos, preço, FAQ, CTA, rodapé */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { background: var(--white); border-radius: var(--radius); padding: 1.75rem 1.6rem; box-shadow: var(--shadow); }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; }
.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pricing-intro { max-width: 760px; margin: 0 auto 2.4rem; text-align: center; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.price-card { background: var(--white); color: var(--ink); border-radius: 28px; padding: 2.25rem 2.25rem 2rem; box-shadow: var(--shadow-lg); position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--plum); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-card .selo { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--lime); color: var(--forest); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .75rem; border-radius: 999px; white-space: nowrap; }
.price-card .plan { font-weight: 800; color: var(--plum); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.price-card .tagline { font-weight: 600; margin: .35rem 0 .15rem; }
.price-card .cycle { color: var(--muted); font-size: .92rem; margin: 0 0 .4rem; }
.plan-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1.4rem; }
.plan-option, button.plan-option { text-align: left; align-items: flex-start; justify-content: flex-start; background: var(--white); color: var(--ink); border: 2px solid var(--rule); border-radius: 20px; padding: 1.1rem 1rem 1rem; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: .2rem; font: inherit; font-weight: 500; width: 100%; }
.plan-option:hover, button.plan-option:hover { background: var(--sand); color: var(--ink); border-color: var(--plum); }
.plan-option.selected, button.plan-option.selected { border-color: var(--plum); background: #faf6ff; color: var(--ink); box-shadow: var(--shadow); }
.plan-option.featured { padding-top: 1.35rem; }
.plan-option .selo { position: absolute; top: -10px; left: 12px; background: var(--lime); color: var(--forest); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; }
.plan-option .plan { font-weight: 800; color: var(--plum); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.plan-option .price { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.plan-option .price small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.plan-option .tagline { font-weight: 600; font-size: .92rem; }
.plan-option .cycle { color: var(--muted); font-size: .82rem; }
.price { font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: .5rem 0 .25rem; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.checks li::before { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: .1rem; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule); padding: .35rem 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--plum); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; max-width: 700px; }
.cta-final { text-align: center; }
.cta-final .display { margin-left: auto; margin-right: auto; max-width: 900px; }
.site-footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 3rem clamp(1.25rem, 5vw, 4rem) 2.5rem; }
.site-footer .inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; font-size: .9rem; }
.site-footer .brand { color: var(--white); }
.site-footer a { color: rgba(255, 255, 255, .85); font-weight: 600; margin-left: 1.25rem; }
.legal { max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin: 0 0 1rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.legal p, .legal li { color: var(--muted); line-height: 1.6; }
.legal ol, .legal ul { padding-left: 1.2rem; }
.legal ul { margin: 0 0 1rem; }
.legal a { color: var(--plum); font-weight: 700; }
.legal-meta { font-size: .9rem; font-weight: 700; color: var(--soft); margin: 0 0 1.25rem; }
.landing { max-width: 960px; margin: 0 auto; padding: 4rem 1.5rem; }

/* ---------- Cartão (assinatura) ---------- */
.card-form { max-width: 620px; }
.billing-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 1.5rem; align-items: start; }
.billing-grid > .pay-aside { position: sticky; top: 1rem; }
.pay-trust-strip { display: flex; flex-wrap: wrap; gap: .55rem .9rem; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: var(--pill); padding: .55rem 1rem; margin: -0.4rem 0 1.25rem; box-shadow: var(--shadow); }
.pay-trust-item { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.pay-trust-item + .pay-trust-item::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--lime-deep); margin-right: .9rem; }
.pay-trust-item svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }
.pay-saved-card { display: inline-flex; align-items: center; gap: .65rem; margin-top: .7rem; background: var(--sand); border-radius: var(--radius-sm); padding: .45rem .7rem; font-size: .9rem; }
.pay-saved-brand { height: 26px; width: auto; border-radius: 5px; box-shadow: 0 1px 3px rgba(30, 35, 48, .12); }
.pay-brands { margin-bottom: 1rem; }
.pay-brands-bar { background: var(--sand); border: 1px solid var(--rule); border-radius: var(--radius); padding: .85rem 1rem .95rem; margin: 0 0 1.35rem; }
.pay-brands-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .55rem; }
.pay-brands-row { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.pay-brand { width: 64px; height: 40px; background: var(--white); border: 1.5px solid var(--rule); border-radius: 8px; display: grid; place-items: center; padding: 3px; box-shadow: 0 1px 2px rgba(30, 35, 48, .04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pay-brand img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pay-brand.is-on { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(80, 34, 116, .12); transform: translateY(-1px); }
.pay-card-fs { background: linear-gradient(180deg, #fbfaf6 0%, var(--white) 48px); }
.card-preview { background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 55%, var(--plum) 130%); color: var(--white); border-radius: 22px; padding: 1.35rem 1.6rem; height: 196px; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 1.25rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.card-preview::after { content: ""; position: absolute; right: -50px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(210, 232, 35, .18); }
.card-preview .chip-emv { position: absolute; left: 1.6rem; top: 3.35rem; width: 36px; height: 28px; border-radius: 5px; background: linear-gradient(135deg, #f3e2a8, #c9a227); box-shadow: inset 0 0 0 1px rgba(138, 109, 22, .35); z-index: 1; }
.card-preview .chip-emv::after { content: ""; position: absolute; inset: 5px 4px; border: 1px solid rgba(138, 109, 22, .35); border-radius: 2px; }
.card-preview .num { font-family: var(--mono); font-size: clamp(.95rem, 1.5vw, 1.3rem); letter-spacing: .08em; white-space: nowrap; position: relative; z-index: 1; margin-top: .35rem; }
.card-preview .meta { display: flex; justify-content: space-between; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; opacity: .9; position: relative; z-index: 1; }
.card-preview .brand-logo { height: 30px; min-width: 48px; display: flex; align-items: center; justify-content: flex-end; position: relative; z-index: 1; }
.card-preview .brand-logo img { height: 30px; width: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.card-number-wrap { position: relative; }
.card-number-wrap .brand-inline { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); height: 24px; display: flex; align-items: center; }
.card-number-wrap .brand-inline img { height: 22px; }
.card-number-wrap input { padding-right: 64px; font-family: var(--mono); letter-spacing: .08em; }
.pay-submit svg { width: 16px; height: 16px; }
.pay-legal { margin-top: .75rem; }
.pay-accept { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin: 0 0 1rem; padding: .9rem 1rem; background: var(--sand); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.pay-accept-check { display: flex; align-items: flex-start; gap: .65rem; margin: 0; font-weight: 600; font-size: .9rem; cursor: pointer; }
.pay-accept-check input { width: 18px; height: 18px; margin-top: .15rem; flex-shrink: 0; accent-color: var(--plum); }
.pay-accept .btn { flex-shrink: 0; }
.terms-dialog { width: min(720px, calc(100vw - 2rem)); max-height: min(86vh, 820px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--white); }
.terms-dialog::backdrop { background: rgba(30, 35, 48, .45); }
.terms-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--white); }
.terms-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.terms-dialog-body { padding: 1.1rem 1.4rem 1.6rem; overflow: auto; max-height: calc(min(86vh, 820px) - 68px); }
.terms-dialog-body.legal { max-width: none; }
.terms-dialog-body h1 { display: none; }
.pay-cert { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .65rem; margin-top: 1rem; padding: 1.15rem 1.1rem 1.2rem; border: 1.5px solid var(--rule); border-radius: var(--radius); background: linear-gradient(180deg, #1e2330 0%, #2b3142 100%); color: var(--white); box-shadow: var(--shadow); }
.pay-cert-seal { width: 88px; height: 88px; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28)); }
.pay-cert h3 { font-size: .95rem; margin: 0; letter-spacing: 0; color: var(--white); }
.pay-cert ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .32rem; width: 100%; }
.pay-cert li { font-size: .78rem; color: rgba(255, 255, 255, .78); font-weight: 600; padding-left: 1.15rem; position: relative; text-align: left; }
.pay-cert li::before { content: ""; position: absolute; left: 0; top: .42em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 2px var(--forest); }
.field.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.identity-grid { display: grid; grid-template-columns: 200px 1fr; gap: 1.6rem; align-items: start; }
.logo-picker { text-align: center; }
.logo-picker input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.logo-preview { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto .9rem; overflow: hidden; background: var(--night); color: var(--lime); display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; border: 4px solid var(--white); box-shadow: var(--shadow); }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wa-config { margin-top: 1.6rem; padding-top: 1.45rem; border-top: 1px solid var(--rule); }
.wa-config h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.wa-config .lead { margin: 0; }
.wa-list { display: flex; flex-direction: column; gap: .85rem; margin: 1rem 0 .85rem; }
.wa-item { background: var(--sand); border-radius: 16px; padding: 1rem 1.05rem .7rem; }
.wa-item-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .55rem; }
.wa-item-head .n { width: 28px; height: 28px; border-radius: 50%; background: var(--night); color: var(--lime); display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.wa-item .field { margin-bottom: .75rem; }
.wa-item textarea { min-height: 78px; background: var(--white); }
.wa-item input { background: var(--white); }
.logo-remove { display: inline-flex; align-items: center; gap: .4rem; margin-top: .65rem; font-size: .82rem; color: var(--muted); font-weight: 600; cursor: pointer; }
.logo-remove input { width: auto; accent-color: var(--err); }
.profile-preview { margin-top: 1.4rem; background: radial-gradient(120% 90% at 50% 0%, var(--pub-accent, var(--lime)) 0%, var(--pub-sand, var(--sand)) 78%); border-radius: var(--radius); padding: 1.4rem 1rem 1.2rem; text-align: center; }
.profile-preview-inner { display: flex; flex-direction: column; align-items: center; }
.profile-preview .preview-avatar { width: 72px; height: 72px; font-size: 1.6rem; border-width: 3px; }
.profile-preview .title { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; margin-top: .65rem; }
.profile-preview .lede-pub { margin: .45rem 0 0; max-width: 26rem; font-size: .92rem; }
.profile-preview .handle { color: var(--muted); font-size: .9rem; font-weight: 500; }
.lede-field { margin-top: 1.35rem; }
.lede-field textarea { min-height: 92px; }
.profile-preview .pub-socials { margin-top: .7rem; }
.profile-preview .pub-social { width: 36px; height: 36px; }
.profile-preview .pub-social svg { width: 16px; height: 16px; }
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.social-field { display: grid; grid-template-columns: 44px 1fr; gap: .8rem; align-items: start; background: var(--sand); border-radius: 16px; padding: .85rem .95rem .75rem; }
.social-field input { background: var(--white); }
.social-field-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: 0 4px 10px rgba(30, 35, 48, .12); }
.social-field-ico svg { width: 20px; height: 20px; }
.social-field-ico.instagram { background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%); }
.social-field-ico.tiktok { background: #111; }
.social-field-ico.youtube { background: #ff0000; }
.social-field-ico.facebook { background: #1877f2; }
.social-field-ico.whatsapp { background: #25d366; }
.social-field-ico.linkedin { background: #0a66c2; }
.social-field-ico.twitter { background: #111; }
.social-field-ico.threads { background: #111; }
.social-field-ico.telegram { background: #26a5e4; }
.social-field-ico.kwai { background: #ff4906; }
.social-field-ico.website { background: var(--plum); }
fieldset.fs { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem .25rem; margin: 0 0 1.1rem; min-width: 0; }
fieldset.fs legend { font-weight: 800; font-size: .95rem; padding: 0 .45rem; }
.summary { border: 1.5px dashed var(--rule-strong); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--sand); font-size: .92rem; }
.summary strong { font-size: 1.1rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .split, .pricing, .plan-grid, .plan-picker { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .split.reverse > :first-child { order: 0; }
  .hero { min-height: 0; }
  .phone.tilt { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .nav-pill .links { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .9rem 1rem; gap: .75rem; border-right: 0; border-bottom: 1px solid var(--rule); }
  .side .nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; width: 100%; order: 3; padding-bottom: .25rem; }
  .side .nav a { white-space: nowrap; padding: .5rem .85rem; font-size: .875rem; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; border: 0; padding: 0; gap: .75rem; }
  .side-foot .who div { display: none; }
  .main { padding: 1.1rem 1rem 3rem; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .billing-grid { grid-template-columns: 1fr; }
  .billing-grid > div, .billing-grid > .pay-aside { position: static; }
  .pay-trust-strip { border-radius: var(--radius); }
  .pay-cert { margin-top: 1.15rem; }
  .pay-accept { flex-direction: column; align-items: stretch; }
  .pay-accept .btn { width: 100%; }
  .field.inline, .field.trio, .identity-grid, .social-grid { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .live-bar { border-radius: var(--radius); }
  .bars { height: 120px; gap: 3px; }
  .bar-col .bar-lbl { font-size: .58rem; }
  .grid.chat-split { grid-template-columns: 1fr; }
  .pub-wa { grid-template-columns: 1fr; }
  .ig-head { flex-direction: column; align-items: flex-start; }
  .ig-grid { gap: .55rem; }
  .ig-card { border-radius: 14px; }
  .ig-cap { padding: .75rem .7rem 2rem; font-size: .82rem; }
  .pub.bio { padding-top: 1.6rem; }
}

/* Landing: seção "Tudo o que importa" */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem 1.6rem; box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-demo { max-width: 640px; margin-left: auto; margin-right: auto; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: .35rem 0; justify-content: center; }
.site-footer .footer-links a { margin-left: 1rem; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
}


/* Landing: phone_live (página oficial no mock) */
.phone-live .screen-live {
  padding: 0;
  background: #f7f4ef;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-live .live-chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: 2.6rem .7rem .35rem;
  background: var(--night);
  color: rgba(255,255,255,.85);
  font-size: .65rem;
  font-weight: 600;
  z-index: 1;
}
.phone-live .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3ddc97; flex-shrink: 0;
}
.phone-live .live-url {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phone-live .live-frame {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  background: #f7f4ef;
}
.phone-live .live-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  user-select: none;
}

/* Página pública em modo embed (preview no mock da landing) */
.pub.bio.embed {
  padding: 1rem .75rem 1.2rem;
  min-height: auto;
}
.pub.bio.embed .pub-wrap {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  width: 100%;
}
.pub.bio.embed .pub-head { order: 1; }
.pub.bio.embed .pub-ig { order: 2; }
.pub.bio.embed .pub-chat { order: 3; }
.pub.bio.embed .pub-wa { order: 4; }
.pub.bio.embed .pub-foot { order: 5; }
.pub.bio.embed .pub-logo { width: 78px; height: 78px; }
.pub.bio.embed .chat-log {
  min-height: 88px !important;
  max-height: 110px !important;
}
.pub.bio.embed .pub-chat { padding: .65rem .65rem .55rem; }
.pub.bio.embed .ig-grid { gap: .4rem; }
.pub.bio.embed .ig-head h2 { font-size: 1rem; }
.pub.bio.embed .wa-card { padding: .7rem; }
.pub.bio.embed .pub-wa { gap: .55rem; }

/* Painel: QR code do link público */
.qr-card .qr-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.qr-box {
  margin: 0;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(30,35,48,.08);
  border-radius: 18px;
  padding: 1rem 1rem .75rem;
  box-shadow: var(--shadow);
}
.qr-box img {
  display: block;
  width: 180px;
  height: 180px;
  image-rendering: pixelated;
}
.qr-box figcaption { margin-top: .55rem; }
@media (max-width: 700px) {
  .qr-card .qr-layout { justify-content: center; }
  .qr-card .qr-layout > div { text-align: center; }
  .qr-card .row { justify-content: center; }
}

/* adm layout */
.adm-shell > .main {
  max-width: none;
  width: 100%;
  padding: 1.25rem 1.5rem 3rem;
}
.adm-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.adm-nav-toggle {
  border: 1px solid var(--rule);
  background: var(--sand);
  color: var(--ink);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}
.adm-nav-toggle:hover { background: var(--sand-2); }
html.adm-nav-collapsed .adm-shell {
  grid-template-columns: 72px 1fr;
}
html.adm-nav-collapsed .adm-shell > .side {
  padding: 1rem .55rem;
  align-items: stretch;
}
html.adm-nav-collapsed .adm-shell .adm-brand-text,
html.adm-nav-collapsed .adm-shell .adm-tag,
html.adm-nav-collapsed .adm-shell .nav a {
  font-size: 0;
  padding: .65rem;
  justify-content: center;
}
html.adm-nav-collapsed .adm-shell .nav a::before {
  content: attr(data-icon);
  font-size: .95rem;
  font-weight: 800;
}
html.adm-nav-collapsed .adm-shell .nav a {
  position: relative;
}
html.adm-nav-collapsed .adm-shell .nav a[href*="painel"]::after,
html.adm-nav-collapsed .adm-shell .side-foot .who div,
html.adm-nav-collapsed .adm-shell .side-foot .btn {
  /* keep buttons usable */
}
html.adm-nav-collapsed .adm-shell .side-foot .who div { display: none; }
html.adm-nav-collapsed .adm-shell .side-foot .btn {
  font-size: .7rem;
  padding: .4rem .35rem;
}
html.adm-nav-collapsed .adm-shell .nav a {
  /* icon rail: show first letter via CSS */
}
html.adm-nav-collapsed .adm-shell .nav a {
  font-size: 0;
  letter-spacing: 0;
}
html.adm-nav-collapsed .adm-shell .nav a::first-letter {
  font-size: .95rem;
  font-weight: 800;
}
/* Use title tooltip; first-letter of link text as icon */
html.adm-nav-collapsed .adm-shell .brand .adm-brand-text,
html.adm-nav-collapsed .adm-shell .brand .adm-tag { display: none; }
html.adm-nav-collapsed .adm-shell .adm-side-head { justify-content: center; flex-direction: column; gap: .5rem; }
html.adm-nav-collapsed .adm-shell .brand { justify-content: center; }
@media (max-width: 900px) {
  html.adm-nav-collapsed .adm-shell { grid-template-columns: 1fr; }
  html.adm-nav-collapsed .adm-shell > .side { display: none; }
  html.adm-nav-collapsed .adm-shell > .main { padding-top: 3.25rem; }
  .adm-nav-toggle { position: relative; z-index: 5; }
  html.adm-nav-collapsed body::before {
    /* floating reopen handled by toggle moved — keep toggle visible via sticky header */
  }
}

html.adm-nav-collapsed .adm-shell .nav a .adm-nav-label { display: none; }
html.adm-nav-collapsed .adm-shell .nav a::before {
  content: attr(data-short);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  text-align: center;
  line-height: 1.15;
}


/* ---------- Mostrar/ocultar senha (2026-10-05) ---------- */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3.2rem; }
.pw-wrap input::-ms-reveal, .pw-wrap input::-ms-clear { display: none; }
.pw-wrap .pw-toggle, .pw-wrap .pw-toggle:active { position: absolute; top: 50%; right: .35rem; margin-top: -1.3rem; width: 2.6rem; height: 2.6rem; padding: 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transform: none; line-height: 1; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pw-wrap .pw-toggle:hover { background: rgba(80, 34, 116, .08); color: var(--plum); }
.pw-wrap .pw-toggle:focus-visible { outline: 2px solid var(--plum); outline-offset: 1px; color: var(--plum); }
.pw-wrap .pw-toggle svg { width: 20px; height: 20px; display: block; }
.pw-wrap .pw-toggle .ico-hide { display: none; }
.pw-wrap.is-visible .pw-toggle { color: var(--plum); }
.pw-wrap.is-visible .pw-toggle .ico-show { display: none; }
.pw-wrap.is-visible .pw-toggle .ico-hide { display: block; }

/* ===== Landing 2026-10-19: captura de lead no hero + carrossel de exemplos ===== */
.hero-points { list-style: none; margin: -.5rem 0 1.6rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start; background: var(--forest); color: var(--lime); border-radius: var(--pill); padding: .5rem 1rem .5rem .55rem; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.hero-points li:nth-child(2) { background: rgba(37, 79, 26, .1); color: var(--forest); }
.hero-points li b { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }
.hero-points li:nth-child(2) b { background: var(--forest); color: var(--lime); }
.hero-points strong { color: #fff; }
.feature-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .feature-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .feature-grid.four { grid-template-columns: 1fr; } }

.phone-lead .chat-log { flex: 1; overflow: hidden; }
.phone-lead .lead-form { margin: 0 .7rem .9rem; background: var(--white); border-radius: 20px; padding: .7rem; display: flex; flex-direction: column; gap: .45rem; box-shadow: 0 6px 18px rgba(30, 35, 48, .1); }
.lead-field { background: var(--sand); border-radius: 12px; padding: .35rem .75rem .4rem; display: flex; flex-direction: column; border: 1.5px solid transparent; }
.lead-field:nth-child(2) { border-color: var(--plum); background: #fff; }
.lead-field .lbl { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.lead-field .val { font-size: .85rem; font-weight: 600; color: var(--ink); }
.lead-field .caret { display: inline-block; width: 1.5px; height: .95em; background: var(--plum); margin-left: 2px; vertical-align: -2px; animation: blink 1s infinite; }
.lead-go { background: var(--plum); color: #fff; border-radius: var(--pill); text-align: center; font-weight: 700; font-size: .85rem; padding: .55rem; }
.lead-toast { position: absolute; right: -18px; bottom: 26%; background: var(--night); color: #fff; font-size: .8rem; font-weight: 700; padding: .55rem .9rem; border-radius: var(--pill); box-shadow: var(--shadow-lg); white-space: nowrap; transform: rotate(4deg); }
.lead-toast b { color: var(--lime); margin-right: .25rem; }
@media (max-width: 1024px) { .lead-toast { right: 0; transform: none; } }

.lp-carousel { position: relative; width: min(320px, 100%); margin: 0 auto; padding-bottom: 3.6rem; }
.lp-phone { width: 100%; }
.lp-phone .screen { position: relative; }
.lp-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.22, .8, .3, 1); touch-action: pan-y; }
.lp-slide { flex: 0 0 100%; height: 100%; display: flex; flex-direction: column; min-width: 0; }
.lp-slide .chat-log { flex: 1; overflow: hidden; justify-content: flex-start; }
.lp-slide .screen-head .s { color: var(--muted); font-weight: 600; }
.lp-demo-tag { position: absolute; top: 56px; right: 22px; z-index: 3; background: var(--night); color: var(--lime); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: var(--pill); }
.lp-nav { position: absolute; top: calc(50% - 1.8rem); transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--white); color: var(--plum); font-size: 1.7rem; line-height: 1; box-shadow: var(--shadow); z-index: 4; border: 0; }
.lp-nav:hover { background: var(--plum); color: #fff; }
.lp-nav:focus-visible, .lp-dot:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.lp-prev { left: -62px; } .lp-next { right: -62px; }
.lp-dots { position: absolute; left: 0; right: 0; bottom: 1.4rem; display: flex; justify-content: center; gap: .45rem; }
.lp-dot { width: 10px; height: 10px; padding: 0; border-radius: var(--pill); background: rgba(80, 34, 116, .3); border: 0; transition: width .25s, background .25s; }
.lp-dot:hover { background: rgba(80, 34, 116, .55); }
.lp-dot[aria-selected="true"] { width: 28px; background: var(--plum); }
.lp-caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-size: .82rem; font-weight: 700; color: var(--plum-deep); }
@media (max-width: 1180px) { .lp-prev { left: -50px; } .lp-next { right: -50px; } }
@media (max-width: 480px) { .lp-carousel { width: min(300px, calc(100% - 96px)); } .lp-prev { left: -48px; } .lp-next { right: -48px; } .lp-nav { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .lp-track { transition: none; } }
.split > * { min-width: 0; }
.lp-track { width: 100%; }
.lp-carousel { max-width: 100%; }
@media (max-width: 480px) { .lp-slide .screen-head { padding: 2.7rem .8rem .6rem; } .lp-slide .screen-head .avatar { width: 46px; height: 46px; font-size: 1.1rem; } .lp-slide .msg { font-size: .74rem; padding: .45rem .65rem; } .lp-slide .chat-log { gap: .4rem; } }
@media (max-width: 480px) { .lp-demo-tag { top: 50px; right: 14px; font-size: .52rem; padding: .15rem .4rem; } }
@media (max-width: 480px) { .lp-carousel { width: min(300px, calc(100% - 40px)); } .lp-prev { left: -22px; } .lp-next { right: -22px; } .lp-slide .screen-head .t { font-size: .88rem; } .lp-slide .chat-form .fake { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* ===== Landing 2026-11-16 (análise do Clarity): menu fixo, campo do link, demonstração ao vivo ===== */

/* overflow-x:hidden fazia de .site uma área de rolagem e anulava o position:sticky do menu:
   depois da primeira tela o "Criar grátis" saía de vista. clip corta igual sem criar rolagem;
   navegador que não conhece clip ignora esta linha e fica com o hidden de antes. */
.site { overflow-x: clip; }
.nav-pill .actions .btn { min-height: 40px; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
.nav-pill .actions .btn.ghost { border-color: transparent; }
.nav-pill .actions .btn.primary { padding-left: 1.2rem; padding-right: 1.2rem; }
@media (max-width: 1024px) {
  .nav-pill { gap: .5rem; padding-left: 1rem; }
  .nav-pill .actions { gap: .15rem; }
  .nav-pill .actions .btn { min-height: 44px; }
  .nav-pill .actions .btn.ghost { padding-left: .7rem; padding-right: .7rem; }
}
.section[id], .feature-demo[id] { scroll-margin-top: 5.5rem; }

/* Campo "escolha o nome do seu link" (hero) e o mesmo campo no cadastro. */
.claim { display: block; }
.claim-label { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 .55rem; color: inherit; }
.claim-row { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.claim .prefix-input { min-width: 0; cursor: text; border-width: 2px; }
.claim .prefix-input span, .auth-card .prefix-input span { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.claim .prefix-input span { font-size: 1rem; }
.claim .prefix-input input { min-width: 0; font-size: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.claim .prefix-input.is-ok, .auth-card .prefix-input.is-ok { border-color: var(--ok); }
.claim .prefix-input.is-err, .auth-card .prefix-input.is-err { border-color: var(--err); }
.claim-status { flex: 1 1 100%; margin: 0; font-size: .92rem; font-weight: 600; line-height: 1.35; min-height: 1.35em; opacity: .85; }
.claim-status.ok, .claim-status.err { opacity: 1; font-weight: 700; }
.claim-status.err { color: var(--err); }
.hint.ok { color: var(--ok); font-weight: 700; }
.hint.err { color: var(--err); font-weight: 700; }
.claim-note { margin-top: .55rem; }
.claim-note a { font-weight: 700; text-decoration: underline; color: inherit; white-space: nowrap; }
@media (max-width: 600px) {
  /* No celular o aviso fica colado no campo, antes do botão. */
  .claim .prefix-input { flex: 1 1 100%; order: 1; }
  .claim-status { order: 2; }
  .claim .btn { flex: 1 1 100%; order: 3; padding: 1.05rem 1.5rem; font-size: 1.08rem; }
}

/* Demonstração ao vivo (macro phone_demo): a página oficial funcionando dentro do celular. */
.demo-intro { text-align: center; max-width: 560px; margin: 0 auto 1.6rem; }
.demo-intro .eyebrow { color: var(--plum); opacity: 1; margin-bottom: .6rem; }
.demo-title { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -0.03em; margin: 0 0 .5rem; }
.demo-sub { color: var(--muted); margin: 0; font-size: 1.02rem; }
.demo-note { text-align: center; color: var(--soft); font-size: .82rem; max-width: 420px; margin: 1rem auto 0; }
.demo-cta { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin-top: 1.25rem; text-align: center; }
.demo-cta .demo-depois { display: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; margin: 0; }
.demo-usada .demo-cta .demo-depois { display: block; }
.demo-usada .demo-cta .btn.primary { box-shadow: 0 0 0 6px rgba(80, 34, 116, .16); }
.demo-cta .demo-link { font-weight: 700; font-size: .92rem; color: var(--muted); text-decoration: underline; }

.phone-demo { width: min(350px, 100%); }
.phone-demo .live-badge { margin-left: auto; flex-shrink: 0; background: rgba(61, 220, 151, .16); color: #3ddc97; font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .12rem .45rem; border-radius: var(--pill); }
.phone-demo .live-frame.ld { display: flex; flex-direction: column; gap: .55rem; padding: .7rem .6rem .8rem; background: var(--pub-sand, #f7f4ef); }
.ld-head { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ld-logo { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 1px solid rgba(30, 35, 48, .08); display: grid; place-items: center; }
.ld-logo .avatar { width: 44px; height: 44px; border: 0; box-shadow: none; font-size: 1.1rem; }
.ld-title { margin: .4rem 0 .1rem; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.03em; color: var(--ink); }
.ld-lede { margin: 0; max-width: 17rem; font-size: .74rem; line-height: 1.4; font-weight: 500; color: var(--muted); }
.ld-head .pub-socials { margin-top: .5rem; gap: .45rem; }
.ld-head .pub-social { width: 32px; height: 32px; box-shadow: none; }
.ld-head .pub-social svg { width: 15px; height: 15px; }
.ld-chat { flex: 1 1 0; height: auto; min-height: 0; background: #efebe4; border-radius: 20px; padding: .5rem .5rem .55rem; }
.phone-demo .chat-log { padding: .1rem .1rem .2rem; gap: .45rem; min-height: 0; }
.phone-demo .chat-log > :first-child { margin-top: auto; }
.phone-demo .msg-row { gap: .4rem; max-width: 96%; }
.phone-demo .msg-avatar { width: 22px; height: 22px; font-size: .62rem; }
.phone-demo .msg.sys { font-size: .74rem; color: var(--err); font-weight: 600; padding: .1rem .4rem; }
.phone-demo .chat-form { padding: .45rem 0 0; gap: .4rem; border: 0; background: transparent; align-items: center; }
/* 16px: abaixo disso o iPhone dá zoom na página ao focar o campo. */
.phone-demo .chat-form input { background: #fff; border-radius: var(--pill); padding: .6rem .95rem; font-size: 16px; min-width: 0; }
.phone-demo .chat-form button { width: 42px; height: 42px; padding: 0; border-radius: 50%; background: var(--night); color: #fff; flex-shrink: 0; }
.phone-demo .chat-form button:hover { background: var(--night-2); }
.phone-demo .chat-form.pede-contato .chat-contato { flex: 1 1 100%; gap: .4rem; }
.phone-demo .chat-form.pede-contato button { flex: 1 1 100%; width: auto; height: 44px; border-radius: var(--pill); background: var(--plum); gap: .4rem; font-size: .9rem; }
.phone-demo .chat-form.pede-contato button:hover { background: var(--plum-deep); }
.ld-go { display: none; }
.phone-demo .chat-form.pede-contato .ld-go { display: inline; }
.ld-links { flex: 0 0 auto; display: flex; flex-direction: column; gap: .4rem; }
.ld-link { display: flex; align-items: center; gap: .55rem; min-height: 44px; background: #fff; border-radius: 14px; padding: .45rem .65rem; color: var(--ink); box-shadow: 0 1px 2px rgba(30, 35, 48, .05); }
.ld-link:hover { text-decoration: none; background: #fbfaf7; }
.ld-link-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ld-link-t b { font-size: .8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-link-t small { font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-link-go { color: var(--soft); font-weight: 800; }
.phone-demo a:focus-visible, .phone-demo button:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }

.steps-cta { display: flex; justify-content: center; margin-top: 2rem; }
.phone-jump { display: block; width: min(320px, 100%); margin: 0 auto; color: inherit; border-radius: 44px; }
.phone-jump:hover { text-decoration: none; }
.phone-jump:focus-visible { outline: 3px solid var(--plum); outline-offset: 6px; }
