/* Memória em Vida: identidade visual (tema claro, acolhedor). Uma folha só para todas as páginas do cliente.
   As páginas legais somam /css/legal.css; o painel do dono soma /css/adm.css. */

:root {
  color-scheme: light;
  --bg: #f6efe4;
  --card: #fffdf9;
  --field: #ffffff;
  --text: #2b2622;
  --muted: #6b5f55;
  --line: #e2d5c2;
  --accent: #5b3a29;
  --accent-strong: #452b1e;
  --accent-bg: #f1e4d3;
  --accent-line: #cdb69c;
  --cta: #b5472f;
  --cta-strong: #983a25;
  --gold: #b9821e;
  --red: #a8271f;
  --red-bg: #fdecea;
  --red-line: #edb5af;
  --amber: #7a5200;
  --amber-bg: #fff3d6;
  --amber-line: #e6c36b;
  --good: #2e6b3e;
  --good-bg: #e8f4eb;
  --good-line: #a9d0b3;
  /* Nomes antigos, ainda usados em legal.css e adm.css. */
  --lime: var(--accent);
  --ink: #fffdf9;
  --lime-bg: var(--accent-bg);
  --lime-line: var(--accent-line);
  --shadow: 0 10px 30px rgba(91, 58, 41, 0.1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { max-width: 100%; height: auto; display: block; }
p { overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--accent-strong); line-height: 1.15; margin: 0 0 10px; }
h1 { font-size: clamp(32px, 6vw, 48px); }
h2 { font-size: clamp(24px, 4.4vw, 32px); }
h3 { font-size: 20px; }

/* ---------- Acessibilidade ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; font-weight: 700; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input[type="range"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 58, 41, 0.15); }

/* ---------- Estrutura ---------- */
.nav, footer, .hero, section, .panel { max-width: 1040px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; color: var(--accent-strong); white-space: nowrap; }
.mark { width: 30px; height: 30px; flex: 0 0 auto; display: inline-block; background: url("/icon.svg") center / contain no-repeat; }
.nav-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 16px; }
.nav-links a:hover { color: var(--accent-strong); }
.nav-links a.on { color: var(--accent-strong); font-weight: 700; box-shadow: inset 0 -2px 0 var(--cta); padding-bottom: 4px; }
.appnav { flex-wrap: wrap; }
.appnav .credit-pill { margin-left: auto; }
.credit-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--accent-line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 15px; color: var(--muted); }
.credit-pill b { color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.panel { padding-top: 12px; padding-bottom: 40px; }
.panel.narrow { max-width: 600px; }
.section-title { margin: 36px 0 6px; }
.sub { color: var(--muted); font-size: 18px; max-width: 600px; margin: 0 0 12px; }
.fine { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.center-text { text-align: center; }
a.link, .legal a { color: var(--cta-strong); text-decoration: underline; text-underline-offset: 3px; }
.linkish { background: transparent; color: var(--cta-strong); border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.erro { color: var(--red); font-size: 15px; font-weight: 600; }
.ok { color: var(--good); font-size: 15px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; background: var(--cta); color: #fff; border: 1.5px solid var(--cta); border-radius: 999px;
  padding: 13px 22px; min-height: 50px; font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2; text-align: center; cursor: pointer;
}
.btn:hover { background: var(--cta-strong); border-color: var(--cta-strong); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost, .btn.white { background: var(--card); color: var(--accent-strong); border-color: var(--accent-line); }
.btn.ghost:hover, .btn.white:hover { background: var(--accent-bg); border-color: var(--accent); }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.slim { padding: 9px 16px; min-height: 42px; font-size: 15px; }
.btn.big { padding: 16px 28px; font-size: 19px; }
.btn.block { display: block; width: 100%; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.center-row { justify-content: center; }

/* ---------- Formulários ---------- */
label, .stack { display: block; margin: 14px 0; color: var(--text); font-size: 16px; font-weight: 600; }
input, select, textarea {
  width: 100%; margin-top: 6px; background: var(--field); border: 1.5px solid var(--accent-line); color: var(--text);
  border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 17px; font-weight: 400;
}
input::placeholder, textarea::placeholder { color: #a39686; }
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; margin: 2px 0 0; padding: 0; accent-color: var(--cta); }
input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--cta); }
fieldset { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.consent { display: grid; gap: 10px; margin: 14px 0 4px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; margin: 0; color: var(--text); font-size: 15px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.check.destaque { border: 1px solid var(--accent-line); background: var(--accent-bg); border-radius: 12px; padding: 12px; }

/* ---------- Entrar ---------- */
.auth { padding: 0 16px; }
.login { width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; margin: 32px auto 0; box-shadow: var(--shadow); }
.login h1 { margin: 16px 0 8px; font-size: 32px; }
.login .sub { font-size: 16px; }
.login .btn, .narrow .btn { width: 100%; margin-top: 8px; }
.login input[name="codigo"] { letter-spacing: 0.28em; font-size: 22px; text-align: center; }
.devhint { border: 1px dashed var(--amber-line); background: var(--amber-bg); color: var(--amber); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 12px 0; }
.devhint code { color: var(--text); font-size: 20px; letter-spacing: 0.2em; font-weight: 700; }

/* ---------- Avisos e estados ---------- */
.alert { margin: 14px 0 0; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; color: var(--text); font-size: 16px; }
.alert strong { display: block; margin-bottom: 2px; }
.alert p { margin: 4px 0 0; }
.alert.block { border-color: var(--red-line); background: var(--red-bg); }
.alert.block strong { color: var(--red); }
.alert.warn { border-color: var(--amber-line); background: var(--amber-bg); }
.alert.good { border-color: var(--good-line); background: var(--good-bg); }
.alert .btn { margin-top: 10px; }
.state { text-align: center; margin-top: 18px; padding: 36px 18px; border: 1.5px dashed var(--accent-line); border-radius: 18px; color: var(--muted); }
.state h1, .state h2 { margin: 0 0 8px; }
.state p { margin: 0 auto; max-width: 460px; }
.state .btn { margin-top: 16px; }
.state.banned { margin-top: 32px; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--accent-bg); border-top-color: var(--cta); animation: girar 0.9s linear infinite; margin: 0 auto; }
.spinner.small { width: 20px; height: 20px; border-width: 3px; }
.dot-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--cta); animation: pulsar 1.2s ease-in-out infinite; flex: 0 0 auto; }
.shimmer { background: linear-gradient(110deg, #efe3d2 30%, #f8f0e4 50%, #efe3d2 70%); background-size: 200% 100%; animation: brilho 1.4s linear infinite; }
.big-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 18px auto 6px; background: var(--good); color: #fff; font-size: 30px; font-weight: 800; }
.big-mark.no { background: var(--red-bg); color: var(--red); border: 1.5px solid var(--red-line); }
.result-view { text-align: center; }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes brilho { to { background-position: -200% 0; } }
@keyframes pulsar { 50% { opacity: 0.25; } }

/* ---------- Pacotes ---------- */
/* Páginas de quem já entrou: o miolo fica escondido até o site saber quem é a pessoa (js/app.js). */
body.aguardando main { visibility: hidden; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0 18px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 18px 18px; box-shadow: var(--shadow); }
.pack.shimmer { min-height: 220px; box-shadow: none; }
.pack.hi { border: 2px solid var(--cta); }
.pack-name { color: var(--muted); font-size: 16px; }
.pack-price { font-family: var(--serif); font-size: 38px; line-height: 1.1; color: var(--accent-strong); }
.pack-credits { font-size: 17px; }
.pack .btn { margin-top: 12px; }
.ribbon { position: absolute; top: -13px; right: 14px; background: var(--cta); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.balance { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; }
.balance b { font-family: var(--serif); font-size: 44px; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.balance span { color: var(--muted); }

/* ---------- Diálogos e Pix ---------- */
dialog.modal { width: min(480px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 24px; padding: 20px 18px; box-shadow: 0 30px 90px rgba(43, 38, 34, 0.35); }
dialog.modal::backdrop { background: rgba(43, 38, 34, 0.6); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { margin: 0; }
.x { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; background: transparent; border: 1.5px solid var(--accent-line); color: var(--accent-strong); font-size: 22px; line-height: 1; }
.x:hover { background: var(--accent-bg); }
.pix-amount { margin: 6px 0 0; color: var(--muted); }
.pix-amount b { color: var(--accent-strong); font-size: 24px; }
.qr { width: 228px; height: 228px; margin: 16px auto 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.pix-code { min-height: 78px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; color: var(--muted); resize: none; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.countdown { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; }
.mockbox { margin-top: 14px; border: 1px dashed var(--amber-line); background: var(--amber-bg); border-radius: 14px; padding: 12px; color: var(--amber); font-size: 14px; }
.mockbox .btn { margin-top: 8px; }

/* ---------- Extrato e conta ---------- */
.ledger, .kv, .link-list { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ledger-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 16px; }
.ledger-row:first-child { border-top: 0; }
.ledger-row small { grid-column: 1; color: var(--muted); font-size: 13px; }
.ledger-row .delta { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta.plus { color: var(--good); }
.ledger .state { margin: 0; border: 0; padding: 28px 16px; }
.kv { margin: 18px 0 0; }
.kv > div { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--muted); font-size: 15px; }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.link-list { list-style: none; padding: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { display: flex; justify-content: space-between; padding: 14px 16px; }
.link-list a::after { content: "›"; color: var(--muted); }
.link-list a:hover { background: var(--accent-bg); }
.danger-zone { margin-top: 32px; border: 1px solid var(--red-line); background: var(--card); border-radius: 18px; padding: 18px; }
.danger-zone h2 { margin: 0 0 6px; font-size: 24px; }
.danger-zone p { color: var(--muted); font-size: 15px; margin: 6px 0; }

/* ---------- Avisos rápidos ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--accent-strong); color: #fff; border-radius: 14px; padding: 13px 16px; font-size: 16px; font-weight: 600; box-shadow: 0 12px 40px rgba(43, 38, 34, 0.35); animation: subir 0.2s ease-out; }
.toast.is-error { background: var(--red); }
@keyframes subir { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Rodapé ---------- */
footer.site-foot { display: block; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 32px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 10px; font-size: 16px; }
.foot-links a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.site-foot .fine { margin: 0; }

/* ---------- Página inicial ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; padding-top: 20px; padding-bottom: 28px; }
.hero .sub { font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.hero-note { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.demo { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 14px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.demo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo figure { margin: 0; }
.demo img, .demo video { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 14px; background: var(--accent-bg); }
.demo figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; }
.demo .ia-badge { top: 22px; right: 22px; bottom: auto; }
section { padding-top: 34px; padding-bottom: 8px; }
.steps { list-style: none; counter-reset: passo; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { counter-increment: passo; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.steps li::before { content: counter(passo); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--accent-strong); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 16px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.card .media { border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: var(--accent-bg); }
.card .media img, .card .media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.trust { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.trust li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.trust li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--good-bg); color: var(--good); font-weight: 800; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.faq p { margin: 0 0 14px; color: var(--muted); }
.cta-final { text-align: center; padding-top: 44px; }
.cta-final .sub { margin: 0 auto 18px; }
.ia-badge { position: absolute; right: 10px; bottom: 10px; z-index: 2; pointer-events: none; background: rgba(43, 38, 34, 0.78); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }

/* ---------- Minhas fotos ---------- */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.foto-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.foto-card .thumb { aspect-ratio: 3 / 4; background: var(--accent-bg); }
.foto-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.foto-card span { display: block; padding: 10px 12px; font-size: 15px; color: var(--muted); }
.envio { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin-top: 18px; box-shadow: var(--shadow); }
.drop { display: grid; place-items: center; gap: 8px; text-align: center; border: 2px dashed var(--accent-line); border-radius: 18px; padding: 28px 16px; color: var(--muted); cursor: pointer; background: var(--bg); margin: 0; font-weight: 400; }
.drop:hover { border-color: var(--cta); }
.drop b { color: var(--accent-strong); font-size: 19px; font-family: var(--serif); font-weight: 500; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.escolhida { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; margin-top: 14px; }
.escolhida img { width: 110px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.dicas { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }

/* ---------- Recorte da foto ---------- */
.recorte-area { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; background: #1d1713; touch-action: none; cursor: grab; margin-top: 12px; }
.recorte-area img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.recorte-zoom { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 22px; }
.recorte-zoom input { margin: 0; height: 32px; }

/* ---------- Página da foto ---------- */
.etapa { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin-top: 18px; box-shadow: var(--shadow); }
.etapa > h2 { margin-bottom: 6px; }
.etapa > p { color: var(--muted); margin: 0 0 12px; }
.esperando { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 26px 12px; color: var(--muted); }
.compara { position: relative; max-width: 420px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--accent-bg); user-select: none; }
.compara canvas, .compara img { width: 100%; height: auto; }
.compara .antes { position: absolute; inset: 0; }
.compara .antes img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--p, 50%)) 0 0); }
.compara .linha { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, 0.45); pointer-events: none; }
.compara .rotulo { position: absolute; top: 10px; background: rgba(43, 38, 34, 0.78); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.compara .rotulo.e { left: 10px; }
.compara .rotulo.d { right: 10px; }
.compara-controle { max-width: 420px; margin: 10px auto 0; }
.compara-controle input { margin: 0; height: 36px; }
.movimentos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.movimento { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; }
.movimento input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.movimento span { display: block; height: 100%; border: 2px solid var(--line); border-radius: 16px; padding: 14px 12px; background: var(--bg); }
.movimento b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--accent-strong); }
.movimento small { color: var(--muted); font-size: 14px; }
.movimento input:checked + span { border-color: var(--cta); background: #fff; box-shadow: 0 0 0 3px rgba(181, 71, 47, 0.15); }
.movimento input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.videos { display: grid; gap: 16px; margin-top: 12px; }
.video-item { display: grid; gap: 10px; justify-items: center; }
.video-box { position: relative; width: min(100%, 360px); border-radius: 16px; overflow: hidden; background: #1d1713; }
.video-box video { width: 100%; height: auto; }
.video-item .row-btns { margin-top: 0; justify-content: center; }
/* Montagem do vídeo final (música, nome e datas) */
.montagem { width: 100%; max-width: 420px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.montagem h4 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--accent-strong); margin: 0; }
.montagem p { margin: 0; color: var(--muted); font-size: 15px; }
.montagem label { margin: 0; font-size: 15px; }
.montagem .musica { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.montagem .pronto { width: min(100%, 280px); margin: 0 auto; border-radius: 14px; overflow: hidden; background: #1d1713; box-shadow: var(--shadow); }
.montagem .pronto video { width: 100%; height: auto; }
.montagem .row-btns { margin-top: 0; }
.barra { height: 10px; border-radius: 999px; background: var(--accent-bg); overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: var(--cta); border-radius: 999px; transition: width 0.2s; }
.apagar-foto { margin-top: 28px; text-align: center; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .hero, .two, .packs, .steps { grid-template-columns: 1fr; }
  .hero { gap: 22px; }
  .demo { transform: none; max-width: 440px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .appnav .nav-links { width: 100%; justify-content: space-between; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
  .appnav .nav-links a { flex: 1; text-align: center; padding: 8px 0; }
  .movimentos { grid-template-columns: 1fr; }
  .nav, footer, .hero, section, .panel { padding-left: 16px; padding-right: 16px; }
  .login { margin-top: 16px; padding: 24px 18px; }
  .qr { width: 200px; height: 200px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner, .shimmer, .dot-pulse { animation-duration: 4s; }
  .toast { animation: none; }
}
