/* ============================================================
   MX Studio Web · direção de arte (ver PACOTE-DE-DESIGN.md)
   ============================================================ */
:root {
  color-scheme: light;
  --bg: #F3F5EE;
  --surface: #FBFCF8;
  --surface-2: #ECEFE5;
  --line: #DCE0D3;
  --line-strong: #858C7B;
  --ink: #0C0E0A;
  --ink-2: #3E4438;
  --ink-3: #62695B;
  --lime: #94E421;
  --lime-ink: #0C0E0A;
  --accent: #2F6B0C;
  --accent-ink: #FBFCF8;
  --accent-soft: #E6F5CF;
  --focus: #2F6B0C;
  --ok: #1B7A43; --ok-soft: #E1F2E6;
  --warn: #8A5A00; --warn-soft: #FAEFD6;
  --bad: #B3261E; --bad-soft: #FBE5E3;
  --info: #1C5CAB; --info-soft: #E3EDFA;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(12,14,10,.05), 0 10px 30px -12px rgba(12,14,10,.14);
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 520ms;
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* noite: sistema escuro, e as faixas .noite em qualquer tema */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0D0A; --surface: #14170F; --surface-2: #1C2016; --line: #2A2F23; --line-strong: #636B58;
    --ink: #F2F4EC; --ink-2: #C4CAB8; --ink-3: #8E957F;
    --accent: #A8EE45; --accent-ink: #0C0E0A; --accent-soft: #1F2E0E; --focus: #A8EE45;
    --ok: #5CC98A; --ok-soft: #16301F; --warn: #E7B04A; --warn-soft: #3A2D12; --bad: #F08A82; --bad-soft: #3D1C1A; --info: #86B6EF; --info-soft: #1A2A40;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
    --shadow: 0 1px 2px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"], .noite {
  color-scheme: dark;
  --bg: #0B0D0A; --surface: #14170F; --surface-2: #1C2016; --line: #2A2F23; --line-strong: #636B58;
  --ink: #F2F4EC; --ink-2: #C4CAB8; --ink-3: #8E957F;
  --accent: #A8EE45; --accent-ink: #0C0E0A; --accent-soft: #1F2E0E; --focus: #A8EE45;
  --ok: #5CC98A; --ok-soft: #16301F; --warn: #E7B04A; --warn-soft: #3A2D12; --bad: #F08A82; --bad-soft: #3D1C1A; --info: #86B6EF; --info-soft: #1A2A40;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
  --shadow: 0 1px 2px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; animation: entra-pagina .45s var(--ease) both; }
@keyframes entra-pagina { from { opacity: 0 } }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; font-family: var(--display); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 5.4vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.3rem; } h3 { font-size: 1.06rem; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--ink-3); }
.mono, .kicker { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.kicker { font-size: .74rem; text-transform: uppercase; color: var(--accent); display: inline-block; margin-bottom: .9em; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }

/* ---------- marca ---------- */
.marca { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 1.06rem; display: flex; align-items: center; gap: .55em; color: var(--ink); text-decoration: none; }
.marca img { height: 26px; width: auto; }
.marca i { display: none; }
.marca .so-escuro { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marca .so-claro { display: none; } :root:not([data-theme="light"]) .marca .so-escuro { display: block; } }
.noite .marca .so-claro { display: none; } .noite .marca .so-escuro { display: block; }

/* ---------- botões e campos ---------- */
.btn { appearance: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; padding: .7em 1.15em; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .45em; text-decoration: none; min-height: 44px; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.primario { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 700; position: relative; overflow: hidden; }
.btn.primario::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn.primario:hover::after { transform: translateX(120%); }
.btn.primario:hover { border-color: var(--lime); }
.btn.escuro { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.whats { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.btn.perigo { color: var(--bad); }
.btn.pequeno { min-height: 34px; padding: .35em .8em; font-size: .85rem; border-radius: 9px; }
.btn.bloco { width: 100%; }
.btn.fantasma { background: transparent; border-color: transparent; }
.btn.fantasma:hover { background: var(--surface-2); }
@media (pointer: coarse) { .btn.pequeno { min-height: 44px; } }

label { display: block; font-weight: 600; margin-bottom: .35em; }
.campo { margin-bottom: 1.1rem; }
.campo .ajuda { font-weight: 400; color: var(--ink-3); font-size: .88rem; margin: -.15em 0 .6em; }
input[type=text], input[type=tel], input[type=email], input[type=url], input[type=number], input[type=date], input[type=password], input[type=month], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: .72em .85em; min-height: 48px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.obrig::after { content: ' *'; color: var(--bad); }
.erro-msg { color: var(--bad); font-size: .88rem; margin-top: .45em; font-weight: 600; }
.tem-erro input, .tem-erro select, .tem-erro textarea { border-color: var(--bad); }
.tem-erro .opcoes { outline: 1.5px solid var(--bad); outline-offset: 5px; border-radius: 12px; }
.linha2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 560px) { .linha2 { grid-template-columns: 1fr 1fr; } .linha2.cidade { grid-template-columns: 1fr 110px; } }
.linha2.cidade { grid-template-columns: 1fr 96px; }

/* opções tipo cartão */
.opcoes { display: grid; gap: 8px; }
.opcoes.duas { grid-template-columns: 1fr 1fr; }
.opcao { position: relative; }
.opcao input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opcao span { display: flex; align-items: center; gap: .65em; padding: .75em .9em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 500; min-height: 48px; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.opcao span::before { content: ''; flex: none; width: 20px; height: 20px; border: 2px solid var(--line-strong); border-radius: 50%; transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.opcao input[type=checkbox] + span::before { border-radius: 6px; }
.opcao:hover span { border-color: var(--line-strong); }
.opcao input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.opcao input:checked + span::before { border-color: var(--ink); background: var(--lime); box-shadow: inset 0 0 0 3px var(--surface); }
.opcao input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- cartões e chips ---------- */
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; box-shadow: var(--shadow); }
.cartao + .cartao { margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: .35em; font-size: .76rem; font-weight: 700; padding: .22em .7em; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.acc { background: var(--accent-soft); color: var(--accent); }

/* ---------- avisos ---------- */
#toasts { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: .8em 1.05em; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); transition: opacity .3s var(--ease), transform .3s var(--ease); animation: sobe-toast .35s var(--ease) both; }
@keyframes sobe-toast { from { opacity: 0; transform: translateY(10px); } }
.toast.erro { background: var(--bad); color: #fff; }
.toast.sai { opacity: 0; transform: translateY(8px); }
.faixa { padding: .6em 1em; font-size: .86rem; text-align: center; background: var(--warn-soft); color: var(--warn); font-weight: 600; }

/* ============================================================
   ASSINATURA: a linha do M que sobe
   ============================================================ */
.linha-mx { display: block; width: 100%; height: auto; overflow: visible; }
.linha-mx .trilho { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.linha-mx .traco { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset .7s var(--ease); }
.linha-mx .ponta { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s var(--ease); }
.linha-mx.completa .ponta { opacity: 1; }
.linha-mx .bola { fill: var(--lime); stroke: var(--ink); stroke-width: 2; transition: transform .7s var(--ease); }
:root:not(.noite) .cliente-topo .linha-mx .traco { stroke: var(--accent); }
:root:not(.noite) .cliente-topo .linha-mx .ponta { stroke: var(--accent); }

/* faixa escura com brilhos e grão */
.noite-faixa { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); color: var(--ink); }
.noite-faixa::before, .noite-faixa::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.noite-faixa::before { width: 70vmax; height: 70vmax; left: -30vmax; bottom: -40vmax; background: radial-gradient(closest-side, rgba(148,228,33,.22), transparent 70%); animation: deriva-a 80s var(--ease) infinite alternate; animation-delay: -20s; }
.noite-faixa::after { width: 60vmax; height: 60vmax; right: -28vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(242,244,236,.08), transparent 70%); animation: deriva-b 90s var(--ease) infinite alternate; animation-delay: -35s; }
.noite-faixa .grao { position: absolute; inset: 0; z-index: -1; background-image: var(--grao); opacity: .06; mix-blend-mode: overlay; pointer-events: none; }
@keyframes deriva-a { to { transform: translate(12vmax, -8vmax) scale(1.08); } }
@keyframes deriva-b { to { transform: translate(-10vmax, 10vmax) scale(.94); } }

/* revelação de título por linha, com folga para o rabo da letra */
.revela-linhas .l { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.revela-linhas .l > span { display: block; transform: translateY(105%); transition: transform .8s var(--ease); }
.revela-linhas.in .l > span { transform: none; }
.revela-linhas.in .l:nth-child(2) > span { transition-delay: .09s; }
.revela-linhas.in .l:nth-child(3) > span { transition-delay: .18s; }
.revela-linhas.in.feito .l > span { transition-delay: 0s; }

/* entrada em sequência */
.entra { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.entra.in { opacity: 1; transform: none; }

/* ============================================================
   PÁGINAS DO CLIENTE
   ============================================================ */
.cliente-topo { background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.cliente-topo .dentro { max-width: 640px; margin: 0 auto; padding: 12px 16px 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cliente-topo .progresso-mx { max-width: 640px; margin: 0 auto; padding: 0 16px 8px; }
.cliente-topo .progresso-mx svg { height: 18px; }
.progresso { display: none; }
.passo-rotulo { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); font-weight: 500; letter-spacing: .04em; }
.cliente-main { max-width: 640px; margin: 0 auto; padding: 22px 16px 130px; }
.etapa h1 { font-size: clamp(1.55rem, 6vw, 2rem); }
.etapa .intro { color: var(--ink-2); font-size: 1.02rem; }
.pergunta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem; margin-bottom: 12px; box-shadow: var(--shadow); }
.pergunta > .titulo { font-weight: 700; margin-bottom: .35em; display: block; font-size: 1.02rem; }
.pergunta > .titulo .n { font-family: var(--mono); font-weight: 500; font-size: .78rem; color: var(--accent); margin-right: .5em; letter-spacing: .04em; }
.pergunta .sub { font-size: .84rem; font-weight: 700; color: var(--ink-2); margin: .9em 0 .45em; }
.barra-acoes { position: fixed; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 20; }
.barra-acoes .dentro { max-width: 640px; margin: 0 auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.barra-acoes .btn { flex: 1; min-height: 50px; font-size: 1rem; }
.barra-acoes .btn.voltar { flex: 0 0 auto; }

/* abertura escura do formulário */
.abertura { margin: -22px -16px 0; padding: 34px 20px 30px; border-radius: 0 0 28px 28px; }
.abertura .logo-grande { width: 84px; height: auto; margin-bottom: 22px; }
.abertura h1 { font-size: clamp(2.05rem, 9vw, 3rem); line-height: 1.02; margin-bottom: .35em; max-width: 14ch; }
.abertura .intro { color: var(--ink-2); max-width: 36ch; font-size: 1.05rem; }
.abertura .linha-mx { margin: 22px 0 6px; height: 64px; }
.abertura .linha-mx .trilho { stroke: rgba(242,244,236,.12); }
.abertura ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.abertura li { display: flex; gap: .7em; align-items: baseline; color: var(--ink-2); }
.abertura li b { color: var(--ink); }
.abertura li .num { font-family: var(--mono); font-size: .76rem; color: var(--lime); background: none; width: auto; height: auto; }
.ja-respondeu { margin: 18px 4px 0; color: var(--ink-3); font-size: .92rem; text-align: center; }
.num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--ink-2); }

.presenca-item { border: 1px solid var(--line); border-radius: 12px; padding: .1em; margin-bottom: 8px; background: var(--surface); }
.presenca-item .opcao span { border: 0; }
.presenca-item input[type=text] { margin: 0 .6em .6em; width: calc(100% - 1.2em); }

/* upload */
.upload { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 16px; text-align: center; background: var(--bg); }
.miniaturas { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 10px; }
.mini { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini .pdf { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 700; color: var(--ink-2); font-size: .8rem; text-align: center; padding: 4px; word-break: break-word; }
.mini .tirar { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(12,14,10,.72); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.mini .barra { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.25); }
.mini .barra > div { height: 100%; background: var(--lime); width: 0; }
.mini.falhou { outline: 2px solid var(--bad); }
.mini .falha { position: absolute; inset: auto 0 0 0; background: var(--bad); color: #fff; font-size: .68rem; padding: 3px; text-align: center; }

/* planos */
.planos { display: grid; gap: 12px; }
.plano { position: relative; border: 1.5px solid var(--line); border-radius: 18px; padding: 1.15rem; background: var(--surface); cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); box-shadow: var(--shadow); }
.plano input { position: absolute; opacity: 0; pointer-events: none; }
.plano:hover { border-color: var(--line-strong); }
.plano.escolhido { border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime), var(--shadow); }
.plano .topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.plano h3 { font-size: 1.25rem; margin: 0; }
.plano .preco { margin: .5em 0 .15em; }
.plano .preco b { font-family: var(--display); font-size: 2rem; letter-spacing: -.03em; }
.plano .preco span { color: var(--ink-3); }
.plano .site { font-size: .9rem; color: var(--ink-2); }
.plano ul { margin: .9em 0 0; padding: .9em 0 0; list-style: none; display: grid; gap: 7px; font-size: .92rem; border-top: 1px solid var(--line); }
.plano li { display: flex; gap: .55em; }
.plano li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: .2em; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232F6B0C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plano .marcador { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.plano.escolhido .marcador { border-color: var(--ink); background: var(--lime); box-shadow: inset 0 0 0 4px var(--surface); }
.recomendado { display: inline-block; background: var(--ink); color: var(--lime); font-family: var(--mono); font-size: .68rem; font-weight: 500; padding: .35em .75em; border-radius: 99px; margin-bottom: .7em; text-transform: uppercase; letter-spacing: .06em; }
.letras-miudas { font-size: .82rem; color: var(--ink-3); margin-top: 14px; }

.resumo dt { font-weight: 700; font-size: .82rem; color: var(--ink-3); margin-top: .9em; }
.resumo dd { margin: .1em 0 0; white-space: pre-line; }

.final { text-align: center; padding: 40px 8px; }
.final .icone { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-size: 34px; margin: 0 auto 16px; font-weight: 800; }
.final .acoes { display: grid; gap: 10px; max-width: 360px; margin: 20px auto 0; }

.sobreposicao { position: fixed; inset: 0; background: rgba(8,10,7,.62); backdrop-filter: blur(4px); z-index: 50; display: grid; place-items: center; padding: 16px; }
.sobreposicao .caixa { background: var(--surface); border-radius: 18px; padding: 1.3rem; width: min(420px, 100%); box-shadow: var(--shadow); }
.lista-envio { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: .9rem; }
.lista-envio li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.lista-envio .barra { grid-column: 1 / -1; height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.lista-envio .barra > div { height: 100%; background: var(--lime); width: 0; transition: width .2s var(--ease); }

/* portal */
.medidor { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: .5em 0; }
.medidor > div { height: 100%; background: var(--lime); border-radius: 99px; }
.medidor.cheio > div { background: var(--warn); }
.lista-chamados { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lista-chamados li { border: 1px solid var(--line); border-radius: 14px; padding: .85em .95em; background: var(--surface); }
.lista-chamados .cab { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }

/* rodapé com a marca gigante */
.rodape-marca { margin-top: 48px; padding: 38px 16px calc(120px + env(safe-area-inset-bottom)); text-align: center; }
.rodape-marca .gigante { font-family: var(--display); font-weight: 800; font-size: clamp(5.5rem, 36vw, 13rem); line-height: .9; letter-spacing: -.05em; color: var(--ink); white-space: nowrap; }
.rodape-marca .marca-rodape img { width: clamp(170px, 52vw, 280px); height: auto; margin: 0 auto; }
.rodape-marca .marca-rodape .so-escuro { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rodape-marca .marca-rodape .so-claro { display: none; } :root:not([data-theme="light"]) .rodape-marca .marca-rodape .so-escuro { display: block; } }
.rodape-marca p { color: var(--ink-3); font-size: .85rem; margin: 14px 0 0; }

.armadilha { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* idioma e telefone internacional */
.seletor-idioma { width: auto; min-height: 36px; padding: .3em 1.9em .3em .7em; font-size: .82rem; font-weight: 600; border-radius: 99px; background-color: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.abertura-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.abertura-topo .logo-grande { margin-bottom: 22px; }
.tel-grupo { display: flex; align-items: stretch; }
.tel-grupo .ddi { display: inline-flex; align-items: center; padding: 0 .8em; font-family: var(--mono); font-size: .9rem; background: var(--surface-2); border: 1px solid var(--line-strong); border-right: 0; border-radius: 12px 0 0 12px; color: var(--ink-2); }
.tel-grupo input { border-radius: 0 12px 12px 0; }
@media (pointer: coarse) { .seletor-idioma { min-height: 44px; } }

body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; }
  .entra { opacity: 1; transform: none; }
  .revela-linhas .l > span { transform: none; }
  .btn.primario::after { display: none; }
}
.entra { transition-delay: var(--d, 0ms); }
.entra.feito { transition-delay: 0s; }

[tabindex="-1"]:focus { outline: none; }

/* ---------- formas de pagamento (rodapé) ---------- */
.pagamentos { display: grid; justify-items: center; gap: 10px; margin: 26px auto 0; }
.pagamentos-rot { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pagamentos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagamentos li { width: 64px; height: 38px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.pagamentos li svg { width: 60px; height: 30px; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- mega promoção ---------- */
.promo-faixa { position: relative; overflow: hidden; isolation: isolate; background: var(--lime); color: var(--lime-ink); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0 0; }
.promo-faixa .promo-kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.promo-faixa .promo-nome { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.05; margin: .25em 0 .2em; }
.promo-faixa p { margin: 0; font-size: .93rem; color: var(--lime-ink); }
.promo-faixa::after { content: ''; position: absolute; z-index: -1; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgba(12,14,10,.07); }
.nao-inclui { list-style: none; padding: 0; margin: .6em 0 0; display: grid; gap: 7px; color: var(--ink-3); font-size: .93rem; }
.nao-inclui li { display: flex; gap: .6em; }
.nao-inclui li::before { content: '×'; flex: none; width: 18px; text-align: center; font-weight: 700; }

/* ---------- chave liga/desliga ---------- */
.chave { display: inline-flex; align-items: center; gap: .7em; cursor: pointer; font-weight: 700; }
.chave input { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 99px; background: var(--line-strong); position: relative; margin: 0; cursor: pointer; transition: background-color .25s var(--ease); flex: none; }
.chave input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.chave input:checked { background: var(--ok); }
.chave input:checked::after { transform: translateX(22px); }

/* ---------- estúdio de prévia (painel) ---------- */
.estudio-fundo { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: grid; grid-template-rows: auto 1fr; }
.estudio-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.estudio-topo h2 { margin: 0 auto 0 0; font-size: 1.05rem; }
.estudio { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; min-height: 0; }
.estudio-form { overflow-y: auto; padding: 14px; border-right: 1px solid var(--line); }
.estudio-form details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.estudio-form summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style-position: inside; }
.estudio-form details > div { padding: 0 14px 12px; }
.estudio-form .campo { margin-bottom: 10px; }
.estudio-vista { display: grid; grid-template-rows: auto 1fr; min-height: 0; background: var(--surface-2); }
.estudio-vista .barra-vista { display: flex; gap: 6px; justify-content: center; padding: 8px; }
.estudio-vista .moldura { min-height: 0; display: grid; place-items: center; padding: 0 10px 10px; }
.estudio-vista iframe { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.estudio-vista.celular iframe { width: 390px; max-width: 100%; }
.fotos-ordem { display: grid; gap: 6px; }
.fotos-ordem .f { display: grid; grid-template-columns: auto 56px 1fr auto auto; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 6px; }
.fotos-ordem img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
@media (max-width: 860px) {
  .estudio { grid-template-columns: 1fr; grid-template-rows: 55vh auto; }
  .estudio-vista { order: -1; }
  .estudio-form { border-right: 0; }
}
