/* Layout: caderno de receitas em tons de confeitaria; destaque no topo, cartões coloridos para custo, preço e lucro. */
:root {
  --bg: #fdf6f7;
  --surface: #ffffff;
  --ink: #3b262d;
  --muted: #7b636b;
  --line: #f1e1e6;
  --accent: #cf2f66;
  --accent-ink: #ffffff;
  --accent-soft: #fde7ef;
  --hero: #fbe9ee;
  --tile-cost: #fdecf0;
  --tile-cost-ink: #a3284f;
  --tile-price: #fdebd3;
  --tile-price-ink: #8a4b06;
  --tile-profit: #2fb36a;
  --tile-profit-ink: #ffffff;
  --good: #1d7548;
  --good-soft: #e1f2e8;
  --warn: #8f5b00;
  --warn-soft: #fbefd6;
  --crit: #b3261e;
  --crit-soft: #fbe3e1;
  --shadow: 0 1px 2px rgba(59, 38, 45, .05), 0 6px 18px rgba(59, 38, 45, .06);
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191115; --surface: #24191e; --ink: #f8eef1; --muted: #bea9b0; --line: #3c2b32;
    --accent: #ff7aa6; --accent-ink: #2b0c18; --accent-soft: #44202f; --hero: #2c1b22;
    --tile-cost: #3d1f2a; --tile-cost-ink: #ffb3cb; --tile-price: #3a2a14; --tile-price-ink: #ffd08a;
    --tile-profit: #23854f; --tile-profit-ink: #ffffff;
    --good: #72d6a3; --good-soft: #17322a; --warn: #f2c15d; --warn-soft: #3a2c10;
    --crit: #ff8f86; --crit-soft: #3f1b19; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #191115; --surface: #24191e; --ink: #f8eef1; --muted: #bea9b0; --line: #3c2b32;
  --accent: #ff7aa6; --accent-ink: #2b0c18; --accent-soft: #44202f; --hero: #2c1b22;
  --tile-cost: #3d1f2a; --tile-cost-ink: #ffb3cb; --tile-price: #3a2a14; --tile-price-ink: #ffd08a;
  --tile-profit: #23854f; --tile-profit-ink: #ffffff;
  --good: #72d6a3; --good-soft: #17322a; --warn: #f2c15d; --warn-soft: #3a2c10;
  --crit: #ff8f86; --crit-soft: #3f1b19; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
[hidden] { display: none !important; }
.wrap {
  max-width: 760px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; }
.num { font-variant-numeric: tabular-nums; }

/* Cabeçalho */
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; flex-direction: column; gap: 10px; padding-block: 14px 0; }
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.brand h1 span { color: var(--accent); }
.brand .biz { color: var(--muted); font-size: 13px; }
nav.tabs { display: flex; gap: 4px; overflow-x: auto; }
nav.tabs button {
  appearance: none; border: 0; background: none; color: var(--muted);
  font: 600 14px var(--font-body); padding: 10px 12px; cursor: pointer;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
nav.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

main { padding-block: 20px 64px; display: flex; flex-direction: column; gap: 18px; }

/* Botões e campos */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 14px var(--font-body); padding: 10px 14px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--crit); }
.btn.danger.armed { background: var(--crit); color: var(--surface); border-color: var(--crit); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: none; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
label.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
label.field > span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
input, select, textarea {
  font: 500 15px var(--font-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.suffix { position: relative; }
.suffix input { padding-right: 38px; }
.suffix em {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  font-style: normal; color: var(--muted); font-size: 13px; pointer-events: none;
}
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.section-title { font-size: 18px; font-weight: 600; }

/* Aviso de exemplo */
.notice {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--accent-soft); border-radius: var(--radius); padding: 12px 14px; font-size: 14px;
}

.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.crit { background: var(--crit-soft); color: var(--crit); }
.chip.neutral { background: var(--accent-soft); color: var(--muted); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* Editor de produto */
.items { display: flex; flex-direction: column; gap: 8px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 120px 84px 36px; gap: 8px; align-items: center; }
.item .cost { text-align: right; font-size: 14px; color: var(--muted); }
.iconbtn {
  appearance: none; border: 1px solid transparent; background: none; color: var(--muted);
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1;
}
.iconbtn:hover { color: var(--crit); border-color: var(--line); }
@media (max-width: 520px) {
  .item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .item select { grid-column: 1 / -1; }
}

.breakdown { width: 100%; border-collapse: collapse; font-size: 14px; }
.breakdown td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown tr.total td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--ink); }
.verdict { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.verdict.good { background: var(--good-soft); color: var(--good); }
.verdict.warn { background: var(--warn-soft); color: var(--warn); }
.verdict.crit { background: var(--crit-soft); color: var(--crit); }
.verdict strong { font-size: 15px; }

/* Ingredientes */
.ings { display: flex; flex-direction: column; gap: 10px; }
.ing { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 76px 36px; gap: 8px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ing .unitcost { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: -4px; }
.ing-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 76px 36px; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 520px) {
  .ing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 72px 36px; }
  .ing .name { grid-column: 1 / -1; }
  .ing-head { display: none; }
}
textarea.backup { min-height: 120px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
footer.foot { color: var(--muted); font-size: 12px; text-align: center; padding-block: 0 24px; }
@media (prefers-reduced-motion: no-preference) {
}

/* ---------- Cabeçalho: conta e status de salvamento ---------- */
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.top-actions a, .top-actions button.linklike {
  color: var(--muted); font: 600 13px var(--font-body); text-decoration: none;
  background: none; border: 0; padding: 6px 4px; cursor: pointer;
}
.top-actions a:hover, .top-actions button.linklike:hover { color: var(--accent); }
.top-actions form { margin: 0; }
.save-status { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.save-status[data-state="ok"]::before { background: var(--good); }
.save-status[data-state="pendente"]::before { background: var(--warn); }
.save-status[data-state="erro"] { color: var(--crit); }
.save-status[data-state="erro"]::before { background: var(--crit); }
.demo-bar { background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.demo-bar .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 10px; }
.demo-bar a { color: var(--accent-ink); font-weight: 700; }
.demo-bar .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); text-decoration: none; }

/* ---------- Telas de acesso ---------- */
.auth { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding-block: 40px; }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.auth-card .brand h1 { font-size: 28px; }
.auth-card h2 { font-size: 20px; font-weight: 600; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card .btn.primary { justify-content: center; padding-block: 12px; font-size: 15px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.auth-links a, .hint a { color: var(--accent); }
.flash { border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.flash.ok { background: var(--good-soft); color: var(--good); }
.flash.erro { background: var(--crit-soft); color: var(--crit); }
.flashes { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Painel admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.users { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.users th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.users td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.users tr:last-child td { border-bottom: 0; }
table.users .actions { display: flex; gap: 6px; flex-wrap: wrap; }
table.users form { margin: 0; }
.wrap.wide { max-width: 1040px; }

/* ---------- Cardápio (área logada) ---------- */
.slug-row { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.slug-row:focus-within { border-color: var(--accent); }
.slug-base { padding: 9px 0 9px 11px; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.slug-row input { border: 0; padding-left: 2px; }
.slug-row input:focus-visible { outline: none; }
.share { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.share-url { font-weight: 700; word-break: break-all; color: var(--accent); }
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr { background: #ffffff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); line-height: 0; }
.qr img, .qr canvas { display: block; }
.qr-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex: 1; min-width: 180px; }
.menu-items { display: flex; flex-direction: column; }
.menu-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.mi-photo { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.mi-empty { background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.mi-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mi-price { font-weight: 700; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* ---------- Marca ---------- */
.brand h1 { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* ---------- Destaque (hero) ---------- */
.hero {
  background: var(--hero); border-radius: 24px; padding: 22px; display: grid; gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; overflow: hidden;
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hero h2 { font-size: clamp(26px, 6vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.hero p { margin: 10px 0 0; color: var(--muted); max-width: 46ch; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.hero-stat { background: var(--surface); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.hero-stat b { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.25; }
.hero-stat.attn b { color: var(--warn); }
.hero-art { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-svg { width: 100%; height: 100%; display: block; background: linear-gradient(160deg, #fff4f7, #fde3ec); }
@media (max-width: 620px) {
  .hero { grid-template-columns: 1fr; padding: 18px; }
  .hero-art { order: -1; aspect-ratio: 16 / 9; }
}

/* ---------- Lista de produtos ---------- */
.products { display: grid; gap: 10px; }
.product {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer; text-align: left; color: inherit; font: inherit; width: 100%;
  transition: border-color .15s, transform .15s;
}
.product:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .product:hover { transform: translateY(-1px); } }
.p-thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.p-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-name { font-weight: 700; font-size: 16px; }
.p-meta { color: var(--muted); font-size: 13px; }
.p-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.p-price strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 460px) {
  .product { grid-template-columns: 48px minmax(0, 1fr); }
  .p-thumb { width: 48px; height: 48px; }
  .p-price { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}

/* ---------- Resultado em cartões ---------- */
.result { display: flex; flex-direction: column; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.tile-label svg { width: 16px; height: 16px; flex: none; }
.tile b { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 5.4vw, 30px); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-cost { background: var(--tile-cost); color: var(--tile-cost-ink); }
.tile-price { background: var(--tile-price); color: var(--tile-price-ink); }
.tile-profit { background: var(--tile-profit); color: var(--tile-profit-ink); }
.result-sub { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 460px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-price { grid-column: 1 / -1; order: -1; }
  .tile-price b { font-size: 40px; }
}

/* ---------- Telas de acesso em duas colunas ---------- */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; max-width: 1040px; margin: 0 auto; }
.auth-promo { display: flex; flex-direction: column; gap: 16px; }
.auth-promo h2 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.auth-promo .hero-art { aspect-ratio: 16 / 10; }
.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; }
.benefits li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--good-soft); color: var(--good); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; gap: 24px; }
  .auth-promo .hero-art, .auth-promo .benefits { display: none; }
  .auth-promo h2 { font-size: 26px; }
}

/* ---------- Rodapé Liviz Software (arte original) ---------- */
.liviz { border-top: 1px solid var(--line); background: var(--surface); margin-top: 8px; }
:root:not([data-theme="dark"]) .liviz { background: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .liviz { background: var(--surface); } }
.liviz-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
.liviz-banner { display: block; width: 100%; max-width: 600px; line-height: 0; }
.liviz-banner img { width: 100%; height: auto; display: block; }
/* versão de letras escuras no tema claro; versão transparente de letras brancas no tema escuro */
.liviz-img-dark { display: none !important; }
.liviz-contact-line { display: none; font-size: 13px; }
.liviz-contact-line a { color: var(--ink); text-decoration: none; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .liviz-img-light { display: none !important; }
  :root:not([data-theme="light"]) .liviz-img-dark { display: block !important; }
  :root:not([data-theme="light"]) .liviz-contact-line { display: block; }
}
:root[data-theme="dark"] .liviz-img-light { display: none !important; }
:root[data-theme="dark"] .liviz-img-dark { display: block !important; }
:root[data-theme="dark"] .liviz-contact-line { display: block; }
.liviz-legal { font-size: 12px; color: var(--muted); }
.liviz-legal a { color: var(--muted); }
/* ---------- Páginas legais ---------- */
.legal { max-width: 720px; padding-block: 32px 48px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(28px, 6vw, 38px); font-weight: 800; }
.legal h2 { font-size: 19px; font-weight: 600; margin-top: 12px; }
.legal p, .legal li { color: var(--ink); max-width: 68ch; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal .updated { color: var(--muted); font-size: 13px; }

/* ---------- Chave de tema claro/escuro ---------- */
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.theme-switch { appearance: none; border: 0; background: none; padding: 4px; cursor: pointer; line-height: 0; flex: none; }
.ts-track { position: relative; display: block; width: 52px; height: 28px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--line); transition: background .2s; }
.ts-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; }
.ts-thumb svg { width: 13px; height: 13px; }
.ts-moon { display: none; }
.theme-switch[aria-checked="true"] .ts-thumb { transform: translateX(24px); }
.theme-switch[aria-checked="true"] .ts-sun { display: none; }
.theme-switch[aria-checked="true"] .ts-moon { display: block; }
@media (prefers-reduced-motion: no-preference) { .ts-thumb { transition: transform .2s ease; } }
.theme-switch[aria-checked="true"] .ts-track { background: var(--accent); border-color: var(--accent); }

/* ---------- Página de vendas ---------- */
.lp { display: block; }
.lp-top .lp-top-cta { color: var(--accent-ink); padding: 8px 14px; }
.lp-band { background: var(--hero); }
.lp-section { padding-block: 56px; display: flex; flex-direction: column; gap: 22px; }
.lp-h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; letter-spacing: -0.02em; max-width: 22ch; }
.lp-lead { margin: 0; color: var(--muted); font-size: 17px; max-width: 62ch; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px 56px; }
.lp-hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lp-hero h2 { font-size: clamp(34px, 6.4vw, 58px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin-top: 10px; }
.lp-hero h2 em { font-style: normal; color: var(--accent); }
.lp-hero p { color: var(--muted); font-size: 17px; margin: 16px 0 0; max-width: 54ch; }
.lp-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.lp-ctas.center { justify-content: center; }
.btn.lp-big { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn.lp-block { width: 100%; justify-content: center; }
.lp-trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.lp-trust li::before { content: "✓ "; color: var(--good); font-weight: 800; }
.lp-hero-art { position: relative; border-radius: 28px; overflow: visible; }
.lp-hero-art img { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 100%; object-fit: cover; border-radius: 28px; display: block; box-shadow: var(--shadow); }
.lp-price-card { position: absolute; left: -18px; bottom: 28px; background: var(--surface); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; color: var(--tile-price-ink); }
.lp-price-card b { font-family: var(--font-display); font-size: 36px; font-weight: 800; line-height: 1.05; }
.lp-price-card small { color: var(--good); font-weight: 700; font-size: 13px; }
.lp-cards { display: grid; gap: 14px; }
.lp-cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.lp-card h3 { font-size: 18px; font-weight: 600; }
.lp-card p { margin: 0; color: var(--muted); }
.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.lp-steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.lp-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.lp-steps b { font-size: 18px; }
.lp-steps span { color: var(--muted); }
.lp-example { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.lp-menu-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; align-items: center; }
.lp-phone { background: var(--surface); border: 8px solid var(--ink); border-radius: 36px; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); max-width: 340px; width: 100%; justify-self: center; }
.lp-phone-head { font-family: var(--font-display); font-weight: 800; font-size: 22px; padding: 4px 4px 6px; }
.lp-dish { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.lp-dish img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.lp-dish span { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.lp-dish small { font-weight: 800; font-size: 14px; }
.lp-dish i { font-style: normal; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--accent); }
.lp-phone-cta { background: #1f8a4c; color: #fff; border-radius: 12px; text-align: center; padding: 12px; font-weight: 700; margin-top: 4px; }
.lp-pricing { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: center; }
.lp-plan { background: var(--surface); border: 2px solid var(--accent); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.lp-plan .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lp-plan-price { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); }
.lp-plan-price small { font-size: 22px; font-weight: 800; }
.lp-plan-price b { font-size: 60px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.lp-plan-price span { color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.lp-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-check li { display: flex; gap: 10px; }
.lp-check li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--good-soft); color: var(--good); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lp-guarantee { display: flex; flex-direction: column; gap: 10px; }
.lp-guarantee h3 { font-size: 24px; font-weight: 800; }
.lp-guarantee p { margin: 0; color: var(--muted); font-size: 16px; max-width: 52ch; }
.lp-guarantee a { color: var(--accent); font-weight: 600; }
.lp-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.lp-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.lp-faq p { margin: 10px 0 0; color: var(--muted); }
.lp-final .lp-section { align-items: center; text-align: center; }
.lp-final .lp-h2 { max-width: 26ch; }
.lp-final .hint a { color: var(--accent); }
@media (max-width: 820px) {
  .lp-hero, .lp-menu-show, .lp-pricing { grid-template-columns: 1fr; gap: 28px; }
  .lp-hero-art { max-width: 460px; }
  .lp-price-card { left: 12px; bottom: 12px; }
  .lp-section { padding-block: 40px; }
}
.lp-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .lp-cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-cards.three { grid-template-columns: 1fr; } }
.lp-menu-show > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.lp-menu-show .lp-trust { margin-top: 4px; }
