/* =========================================================
   MELT — design system
   Paleta: chocolate profundo · cacau · chocolate quente · cobre · bronze · baunilha · off-white
   Tipos:  Bodoni Moda (marca, títulos, preços) · Montserrat 300/400/500 espaçada (texto e rótulos)
   ========================================================= */
:root {
  --choc-900: #251007;  /* chocolate profundo — fundo principal */
  --choc-800: #35180B;  /* marrom cacau — superfícies */
  --choc-700: #53260F;  /* chocolate quente — elementos secundários */
  --cobre:    #93694A;  /* caramelo cobre — linhas e decoração */
  --bronze:   #B79470;  /* bronze dourado — destaque, ações */
  --creme:    #E6D6C2;  /* creme baunilha — texto principal, cartões */
  --off:      #EFE4D5;  /* off-white — texto claro de realce */

  --bg: var(--choc-900);
  --surface: var(--choc-800);
  --surface-2: var(--choc-700);
  --text: var(--creme);
  --text-muted: color-mix(in srgb, var(--creme) 66%, var(--choc-900));
  --line: color-mix(in srgb, var(--bronze) 22%, transparent);
  --line-strong: color-mix(in srgb, var(--bronze) 45%, transparent);
  --ink: var(--choc-800); /* texto sobre fundos claros */
  --erro: #e8a08c;      /* mensagens de erro (contraste AA sobre o chocolate) */

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 24px 48px -24px rgba(0, 0, 0, .7);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--text); overflow-x: hidden;
  background:
    radial-gradient(min(1100px, 150vw) 680px at 15% 0%, color-mix(in srgb, var(--choc-700) 55%, transparent) 0%, transparent 70%),
    var(--bg);
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: var(--radius-sm); }
svg { flex: none; }
::selection { background: var(--bronze); color: var(--choc-900); }

.eyebrow { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--bronze); }
.sparkle { width: 14px; height: 14px; color: var(--bronze); }
.rule { display: flex; align-items: center; gap: 14px; color: var(--bronze); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-full); font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  transition: transform .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--bronze); color: var(--choc-900); }
.btn-primary:hover { background: var(--creme); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--creme); }
.btn-ghost:hover { border-color: var(--bronze); background: color-mix(in srgb, var(--bronze) 10%, transparent); }
.btn-block { width: 100%; }
.btn[hidden] { display: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--creme); border: 1px solid var(--line); transition: transform .2s var(--ease-out), background-color .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--bronze); background: color-mix(in srgb, var(--bronze) 10%, transparent); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--header);
  background: color-mix(in srgb, var(--choc-900) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px #000; }
.topbar-in { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.topbar-brand { display: flex; align-items: center; text-decoration: none; }
.topbar-brand img { height: 40px; width: auto; }
.tabs { position: relative; display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: var(--radius-full); border: 1px solid var(--line); background: color-mix(in srgb, var(--choc-800) 60%, transparent); }
.tab {
  position: relative; z-index: 1; white-space: nowrap; text-decoration: none; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding: 9px 16px; border-radius: var(--radius-full); color: var(--text-muted); transition: color .3s var(--ease-out);
}
.tab:hover { color: var(--creme); }
.tab.active { color: var(--choc-900); }
.tab-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--radius-full); background: var(--bronze); opacity: 0;
           transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s; }
.bag-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--creme); border: 1px solid var(--line); transition: transform .2s var(--ease-out), border-color .2s; }
.bag-btn:hover { border-color: var(--bronze); }
.bag-btn svg { width: 22px; height: 22px; }
.bag-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bronze); color: var(--choc-900); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.bag-count[hidden], .backdrop[hidden], .sheet[hidden], .drawer[hidden] { display: none; }
.bump { animation: bump .45s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.15); } }

@media (max-width: 760px) {
  :root { --header: 112px; }
  .topbar-in { flex-wrap: wrap; row-gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .topbar-brand img { height: 34px; }
  .bag-btn { margin-left: auto; }
  .tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 1; text-align: center; padding: 9px 10px; letter-spacing: .14em; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid; gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-copy { text-align: center; display: grid; justify-items: center; }
.hero-logo { width: clamp(240px, 62vw, 420px); }
.hero .eyebrow { margin-top: 28px; }
.hero h1 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(44px, 8vw, 72px); line-height: 1; color: var(--off); margin-top: 10px; }
.hero-lead { font-size: clamp(15px, 1.6vw, 17px); color: var(--text-muted); max-width: 32em; margin-top: 16px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

.hero-visual { position: relative; width: min(100%, 480px); justify-self: center; padding: 18px; }
.ring { position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: calc(var(--radius-xl) + 18px); }
.ring::before, .ring::after { content: ""; position: absolute; width: 22px; height: 22px; background: var(--bronze);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.ring::before { top: -11px; right: 44px; }
.ring::after { bottom: -11px; left: 44px; width: 14px; height: 14px; }
.hero-photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.hero-photo img { width: 100%; height: 110%; object-fit: cover; will-change: transform; }
.hero-card {
  position: absolute; left: 0; bottom: 8%; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; text-align: left;
  background: var(--creme); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .3s var(--ease-spring);
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card:active { transform: scale(.97); }
.hero-card img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-md); }
.hero-card small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--cobre); }
.hero-card b { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.2; }
.hero-card em { font-style: normal; font-size: 13px; font-weight: 500; }

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr 1fr; min-height: calc(100svh - var(--header)); }
  .hero-copy { text-align: left; justify-items: start; }
  .hero-cta { justify-content: flex-start; }
  .hero-card { left: -30px; }
}

/* chocolate derretendo entre seções (SVG geométrico, sem filtros — gerado/animado em js/app.js: setupMelt) */
.melt-edge { position: relative; height: clamp(96px, 11vw, 150px); background: var(--melt-to); overflow: hidden; pointer-events: none; margin-bottom: -1px; }
.melt-svg { position: absolute; inset: 0; display: block; color: var(--melt-from); }

/* ---------- seções ---------- */
.band { background: var(--surface); }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(52px, 7vw, 96px) var(--gutter); }
.sec-head { max-width: 640px; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; color: var(--off); margin-top: 10px; letter-spacing: -.01em; }
.sec-head h2 em { font-style: italic; color: var(--bronze); }
.sec-head p { font-size: 16px; color: var(--text-muted); margin-top: 12px; }
.sec-head p b { color: var(--creme); font-weight: 500; }

/* ---------- cards ---------- */
.grid { display: grid; gap: clamp(14px, 2.2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-feature { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-cones { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid-cones { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-xl); padding: 10px; cursor: pointer;
  background: color-mix(in srgb, var(--choc-800) 92%, var(--bronze)); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.band .card { background: color-mix(in srgb, var(--choc-900) 88%, var(--bronze)); }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card:hover .card-photo img { transform: scale(1.05); }
.card-tag { position: absolute; top: 10px; left: 10px; font-size: 9.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
            background: var(--creme); color: var(--ink); padding: 6px 11px; border-radius: var(--radius-full); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 8px 6px; }
.card-name { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.2; color: var(--off); }
.card-desc { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.card-opt { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--cobre); margin-bottom: 2px; }
.price { font-family: var(--display); font-weight: 500; font-size: 23px; color: var(--creme); line-height: 1; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--bronze); margin-right: 4px; }
.add {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--bronze); color: var(--choc-900); transition: transform .25s var(--ease-spring), background-color .2s;
}
.add:hover { background: var(--creme); transform: rotate(90deg); }
.add:active { transform: scale(.9); }
.add svg { width: 20px; height: 20px; }

/* escolha no cartão (bombom): Morango | Uva */
.card-escolha { display: flex; gap: 6px; margin-top: 10px; }
.card-escolha .opt-sm { flex: 1; min-height: 36px; padding: 0 10px; font-size: 12px; }
.card-escolha.pedir { animation: pedir .32s var(--ease-out); } /* + sem escolher: "escolha a fruta" */
@keyframes pedir { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.add-montar { width: auto; padding: 0 16px; border-radius: var(--radius-full); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.add-montar:hover { transform: none; } /* texto, não ícone: não gira como o "+" */

.grid-cones .card-name { font-size: 18px; }
.grid-cones .card-desc { font-size: 13.5px; -webkit-line-clamp: 2; }
.grid-cones .card-photo img { object-position: 50% 30%; }
@media (max-width: 520px) {
  .grid-cones { gap: 10px; }
  .grid-cones .card { padding: 6px; border-radius: var(--radius-lg); }
  .grid-cones .card-photo { border-radius: var(--radius-md); }
  .grid-cones .card-body { padding: 10px 4px 4px; }
  .grid-cones .card-name { font-size: 16px; }
  .grid-cones .card-desc { font-size: 12.5px; }
  .grid-cones .price { font-size: 19px; }
  .grid-cones .add { width: 38px; height: 38px; }
}

@media (min-width: 900px) {
  .grid-feature { grid-template-columns: 1fr 1fr; }
  .grid-feature .card { flex-direction: row; gap: 8px; }
  .grid-feature .card-photo { width: 52%; flex: none; }
  .grid-feature .card-body { padding: 20px 16px 10px; }
  .grid-feature .card-name { font-size: 27px; }
  .grid-feature .card-desc { -webkit-line-clamp: unset; font-size: 15px; }
}

/* ---------- cartão fidelidade (chamada no cardápio): cartão creme + impressão cacau ---------- */
.fidelidade {
  position: relative; display: grid; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl);
  background: var(--creme); color: var(--ink); box-shadow: var(--shadow); overflow: hidden;
}
.fidelidade .eyebrow { color: var(--cobre); }
.fidelidade h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin-top: 8px; }
.fidelidade h2 em { font-style: italic; color: var(--choc-700); }
.fidelidade p { font-size: 15.5px; margin-top: 10px; color: color-mix(in srgb, var(--ink) 80%, var(--creme)); }
.fidelidade .btn { margin-top: 18px; border-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink); }
.fidelidade .btn:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fid-selos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: min(100%, 300px); }
.fid-selos span { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.fid-selos .on { background: var(--ink); }
.fid-selos .on::before { content: ""; width: 42%; height: 42%; background: var(--bronze); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.fid-selos .gift { border-style: dashed; font-size: 12px; font-weight: 600; color: var(--ink); }
@media (min-width: 820px) { .fidelidade { grid-template-columns: 300px 1fr; gap: 44px; } }

/* ---------- fechamento ---------- */
.closing { display: grid; gap: clamp(36px, 5vw, 60px); }
.seals { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.seal { display: grid; gap: 6px; justify-items: start; padding: 24px; border-radius: var(--radius-xl); border: 1px solid var(--line); }
.seal .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--bronze); border: 1px solid var(--line-strong); margin-bottom: 8px; }
.seal .ic svg { width: 18px; height: 18px; }
.seal b { font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--off); }
.seal span:last-child { font-size: 14.5px; color: var(--text-muted); }
.closing-cta { text-align: center; display: grid; justify-items: center; gap: 20px; }
.thanks { font-family: var(--display); font-style: italic; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; color: var(--off); }

.footer { text-align: center; padding: 48px var(--gutter) calc(112px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer img { width: 180px; margin: 0 auto; }
.footer p { font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--text-muted); margin-top: 16px; }

/* ---------- barra de pedido ---------- */
.fab {
  position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border-radius: var(--radius-full);
  background: var(--bronze); color: var(--choc-900); box-shadow: 0 18px 40px -16px #000;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: transform .45s var(--ease-spring), opacity .3s;
}
.fab[hidden] { display: flex; transform: translateY(150%); opacity: 0; pointer-events: none; }
.fab svg { width: 22px; height: 22px; }
.fab b { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: 0; text-transform: none; padding-left: 12px; border-left: 1px solid color-mix(in srgb, var(--choc-900) 30%, transparent); }
.fab-count { position: absolute; top: -5px; left: 30px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--choc-900); color: var(--creme); font-size: 11px; display: grid; place-items: center; letter-spacing: 0; }
.flyer { position: fixed; z-index: 60; left: 0; top: 0; width: 22px; height: 22px; color: var(--bronze); pointer-events: none; }

/* ---------- painéis ---------- */
.backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(10, 4, 1, .6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--ease-out); }
.backdrop.open { opacity: 1; }
.sheet, .drawer { position: fixed; z-index: 50; background: var(--surface); color: var(--text); box-shadow: 0 -20px 60px -20px #000; border: 1px solid var(--line); }

.sheet {
  left: 0; right: 0; bottom: 0; max-height: 92svh; overflow-y: auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 18px;
  grid-auto-rows: max-content; /* com max-height, linha auto encolhe: a da foto (overflow: hidden) ia a 0 e o texto subia por cima */
  transform: translateY(105%); transition: transform .5s var(--ease-drawer);
}
.sheet::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); justify-self: center; }
.sheet.open { transform: none; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 1; background: var(--surface); }
.sheet-photo { aspect-ratio: 1; width: min(100%, 340px); justify-self: center; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { display: grid; gap: 10px; align-content: start; }
.sheet h3 { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.15; color: var(--off); }
.sheet-desc { font-size: 15.5px; color: var(--text-muted); }
.sheet-price { margin-top: 2px; }
.sheet-price .card-opt { display: inline; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.opts:empty { display: none; }
.opt { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; min-height: 44px; padding: 0 18px; border-radius: var(--radius-full); border: 1px solid var(--line-strong); color: var(--creme); transition: background-color .2s, color .2s, border-color .2s; }
.opt[aria-pressed="true"] { background: var(--bronze); color: var(--choc-900); border-color: var(--bronze); }
/* janela do produto: grupos e adicionais */
.sheet-grupo { width: 100%; display: flex; justify-content: space-between; margin: 6px 0 2px; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.sheet-grupo span { letter-spacing: .04em; text-transform: none; color: var(--text-muted); font-weight: 400; }
.opt-linha { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.opt small { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.opt[aria-pressed="true"] small { color: inherit; }
.opt:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.opt-linha:disabled { text-decoration: none; }
.opt-linha:disabled span { text-decoration: line-through; }
.sheet-actions { display: flex; gap: 10px; margin-top: 10px; }
.sheet-actions .btn { flex: 1; padding: 0 16px; letter-spacing: .12em; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-full); }
.stepper button { width: 44px; height: 46px; font-size: 20px; color: var(--creme); border-radius: var(--radius-full); }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 24px; text-align: center; font-weight: 500; color: var(--off); }

@media (min-width: 820px) {
  .sheet {
    left: 50%; right: auto; top: 50%; bottom: auto; width: min(860px, 92vw); border-radius: var(--radius-xl); border-bottom: 1px solid var(--line); padding: 24px;
    grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
    transform: translate(-50%, -50%) scale(.95); opacity: 0; transition: transform .35s var(--ease-out), opacity .25s var(--ease-out);
  }
  .sheet::before { display: none; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-photo { width: 100%; }
  .sheet-body { padding-right: 24px; }
}

.drawer {
  top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; border-radius: var(--radius-xl) 0 0 var(--radius-xl); border-right: 0;
  transform: translateX(105%); transition: transform .5s var(--ease-drawer);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 36px; line-height: 1.1; color: var(--off); }
.cart-list { list-style: none; flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; align-content: start; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-md); }
.cart-item .n { font-family: var(--display); font-weight: 500; color: var(--off); font-size: 16px; line-height: 1.2; }
.cart-item .s { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.cart-item .stepper button { width: 34px; height: 36px; font-size: 17px; }
.cart-editar { margin: 2px 0 0 -8px; }
.cart-empty { text-align: center; font-size: 15px; padding: 48px 0; color: var(--text-muted); }
.drawer-foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; text-transform: uppercase; letter-spacing: .24em; font-size: 11px; color: var(--text-muted); }
.total b { font-family: var(--display); font-weight: 500; font-size: 30px; color: var(--off); letter-spacing: 0; }
.hint { font-size: 12px; text-align: center; color: var(--text-muted); }
.hint:empty { display: none; }

.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); translate: -50% 0; max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: var(--radius-full); background: var(--creme); color: var(--ink); font-size: 13px; font-weight: 500; text-align: center;
  opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); pointer-events: none; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: none; }

/* ---------- campos de formulário (site, pedido e painel) ---------- */
.field { display: grid; gap: 6px; text-align: left; min-width: 0; }
.field > span { font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--bg);
  font-family: var(--sans); font-size: 16px; color: var(--off); caret-color: var(--bronze); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 0; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--creme) 38%, transparent); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bronze) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--erro); box-shadow: 0 0 0 3px color-mix(in srgb, var(--erro) 18%, transparent); }
.field input[type="date"] { color-scheme: dark; }
.field-par { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.form-erro { font-size: 13px; color: var(--erro); min-height: 1em; }
.form-erro:empty { display: none; }
.link-btn { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); padding: 8px; border-radius: var(--radius-sm); }
.link-btn:hover { background: color-mix(in srgb, var(--bronze) 10%, transparent); }
.btn-ghost:disabled { opacity: .35; cursor: not-allowed; }
/* botão ocupado: spinner no lugar do texto (o tamanho não muda) */
.btn.carregando { position: relative; color: transparent; pointer-events: none; }
.btn.carregando svg { opacity: 0; }
.btn.carregando::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--choc-900); border-right-color: transparent; animation: girar .7s linear infinite;
}
.btn-ghost.carregando::after { border-color: var(--creme); border-right-color: transparent; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- situação da loja (abertura) ---------- */
.status-loja { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 7px 15px; border-radius: var(--radius-full); border: 1px solid var(--line); font-size: 12.5px; color: var(--creme); }
.status-loja::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); flex: none; }
.status-loja.fechado { color: var(--text-muted); }
.status-loja.fechado::before { background: transparent; border: 1.5px solid var(--cobre); }
.status-loja[hidden], .hero-card[hidden] { display: none; }
.hero-card b { max-width: 15ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- produto esgotado / ainda sem foto ---------- */
.card.esgotado .card-photo img { filter: grayscale(.5) brightness(.62); }
.card.esgotado .price { color: var(--text-muted); }
.card-tag.tag-esgotado { background: var(--choc-900); color: var(--creme); border: 1px solid var(--line-strong); }
.sem-foto img, img.sem-foto { object-fit: contain !important; padding: 22%; opacity: .5; background: var(--surface-2); }
img.sem-foto { padding: 10px; }

/* ---------- sacola em 2 passos ---------- */
.drawer-head { align-items: center; gap: 12px; padding: 18px 20px 14px; }
.drawer-head h3 { flex: 1; font-size: 32px; }
.passo { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.passo[hidden] { display: none; }
.ck-corpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px; display: grid; gap: 28px; align-content: start; }
.ck-bloco { border: 0; min-width: 0; display: grid; gap: 12px; }
.ck-bloco legend { padding: 0; margin-bottom: 12px; font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.2; color: var(--off); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-op { position: relative; display: grid; }
.seg-op input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.seg-op span {
  display: grid; gap: 1px; align-content: center; min-height: 58px; padding: 10px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--line-strong); background: var(--bg); transition: border-color .2s, background-color .2s, transform .16s var(--ease-out);
}
.seg-op b { font-weight: 500; font-size: 15px; color: var(--off); }
.seg-op small { font-size: 12px; color: var(--text-muted); }
.seg-op input:checked + span { border-color: var(--bronze); background: color-mix(in srgb, var(--bronze) 15%, var(--bg)); box-shadow: inset 0 0 0 1px var(--bronze); }
.seg-op input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 3px; }
.seg-op:active input:not(:disabled) + span { transform: scale(.98); }
.seg-op input:disabled { cursor: not-allowed; }
.seg-op input:disabled + span { opacity: .4; }
.seg-sm span { min-height: 52px; }

.ck-nota { font-size: 13.5px; color: var(--text-muted); }
.ck-nota b { color: var(--creme); font-weight: 500; }
.ck-grupo { display: grid; gap: 12px; }
.ck-nota[hidden], .ck-grupo[hidden], .ck-aviso[hidden], .ck-frete[hidden] { display: none; }
.ck-faixas { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ck-faixas li { font-size: 12px; padding: 5px 11px; border-radius: var(--radius-full); border: 1px solid var(--line); color: var(--text-muted); }
.ck-faixas b { color: var(--creme); font-weight: 500; }

.ck-frete { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.ck-frete svg { width: 20px; height: 20px; color: var(--bronze); margin-top: 1px; }
.ck-frete div { display: grid; gap: 2px; min-width: 0; }
.ck-frete b { font-weight: 500; color: var(--off); }
.ck-frete span { color: var(--text-muted); }
.ck-frete strong { font-weight: 600; color: var(--off); }
.ck-frete.ok { border-color: color-mix(in srgb, var(--bronze) 60%, transparent); }
.ck-frete.fora { border-color: color-mix(in srgb, var(--erro) 60%, transparent); }
.ck-frete.fora svg { color: var(--erro); }
.ck-frete.erro { color: var(--erro); }
.ck-frete.carregando { color: var(--text-muted); }
.ck-frete .link-btn { justify-self: start; margin: 4px 0 0 -8px; }

/* aviso da manhã: cartão creme (mesma linguagem do cartão fidelidade) — precisa ser lido */
.ck-aviso { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px; border-radius: var(--radius-lg); background: var(--creme); color: var(--ink); }
.ck-aviso > svg { width: 24px; height: 24px; color: var(--choc-700); }
.ck-aviso p { font-size: 14px; line-height: 1.5; }
.ck-aviso p + p { margin-top: 4px; color: color-mix(in srgb, var(--ink) 78%, var(--creme)); }
.ck-aviso b { font-weight: 600; }
.ck-aviso:has([aria-invalid="true"]) { box-shadow: 0 0 0 3px var(--erro); }
.check { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--choc-800); cursor: pointer; }

.ck-lgpd { font-size: 12px; color: var(--text-muted); }
.resumo { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.resumo div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.resumo dt { color: var(--text-muted); }
.resumo dd { color: var(--creme); font-weight: 500; font-variant-numeric: tabular-nums; }
#checkout .drawer-foot { gap: 10px; }
#checkout .hint { margin-top: -4px; }

/* ---------- compartilhados: botão pequeno e carimbos do cartão fidelidade ---------- */
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 10.5px; }
.btn-sm svg { width: 16px; height: 16px; }
.selo {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent);
  font-size: 12px; font-weight: 500; color: color-mix(in srgb, var(--ink) 50%, transparent);
}
.selo.on { border-style: solid; border-color: var(--ink); background: var(--ink); color: var(--bronze); }
.selo svg { width: 44%; height: 44%; }
.selo.pop { animation: stamp .55s var(--ease-spring) both; animation-delay: var(--d, 0ms); }
@keyframes stamp { 0% { transform: scale(1.8) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }

/* ---------- página do pedido (/pedido) ---------- */
.pd-topo { max-width: 592px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.pd-topo img { height: 36px; width: auto; }
.pd { width: min(592px, 100%); margin: 0 auto; padding: 4px 16px calc(40px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.pd-carregando { text-align: center; color: var(--text-muted); padding: 96px 0; }

.pd-cabeca { display: grid; justify-items: center; gap: 10px; padding: 30px 20px 24px; text-align: center; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.pd-icone { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bronze); color: var(--choc-900); }
.pd-icone svg { width: 30px; height: 30px; }
.pd-espera .pd-icone { background: transparent; color: var(--bronze); border: 1.5px solid var(--bronze); }
.pd-cancelado .pd-icone { background: transparent; color: var(--text-muted); border: 1.5px solid var(--line-strong); }
.pd-icone.carimbo { animation: stamp .55s var(--ease-spring) both; } /* pagamento confirmado agora: carimbo, uma vez */
.pd-cabeca h1 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(32px, 8vw, 42px); line-height: 1.08; color: var(--off); text-wrap: balance; }
.pd-sub { font-size: 13px; color: var(--text-muted); }
.pd-sub b { color: var(--creme); font-weight: 600; letter-spacing: .06em; }
.pd-texto { font-size: 15px; color: var(--text-muted); max-width: 36ch; text-wrap: pretty; }
.pd-cabeca .btn { margin-top: 8px; }

.pd-etapas { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 0 2px; }
.pd-etapas li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.pd-etapas li::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.pd-etapas li:first-child::before { display: none; }
.pd-etapas span { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--bg); }
.pd-etapas li.feito span, .pd-etapas li.agora span { background: var(--bronze); border-color: var(--bronze); }
.pd-etapas li.feito::before, .pd-etapas li.agora::before { background: var(--bronze); }
.pd-etapas li.agora { color: var(--off); }
.pd-etapas li.agora span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bronze) 28%, transparent); }
.pd-etapas small { margin-top: -4px; font-size: 11px; font-weight: 400; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ao vivo: a página consulta o pedido sozinha; o anel pulsa enquanto acompanha e para quando a conexão cai */
.pd-aovivo { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px 0 -6px; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.pd-aovivo > span:first-child { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); }
.pd-aovivo > span:first-child::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: pd-pulso 2s var(--ease-out) infinite; }
.pd-aovivo[data-estado="reconectando"] > span:first-child { background: var(--text-muted); }
.pd-aovivo[data-estado="reconectando"] > span:first-child::after { animation: none; opacity: 0; }

/* previsão: "Fica pronto por volta das 14h40" */
.pd-previsao { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 9px 16px; border-radius: var(--radius-full); background: color-mix(in srgb, var(--bronze) 14%, transparent); font-size: 14px; color: var(--creme); text-wrap: balance; }
.pd-previsao svg { flex: none; width: 16px; height: 16px; color: var(--bronze); }
.pd-previsao b { font-weight: 600; color: var(--off); font-variant-numeric: tabular-nums; }
.pd-previsao.troca { animation: pd-surgir .2s var(--ease-out) both; }

/* a etapa mudou com a página aberta (nunca na primeira carga): o cabeçalho troca e a etapa nova acende */
.pd-cabeca.mudou > :not(.carimbo) { animation: pd-surgir .28s var(--ease-out) both; }
.pd-cabeca.mudou > :nth-child(2) { animation-delay: 40ms; }
.pd-cabeca.mudou > :nth-child(3) { animation-delay: 80ms; }
.pd-cabeca.mudou > :nth-child(n+4) { animation-delay: 120ms; }
.pd-etapas li.chegou::before { transform-origin: left center; animation: pd-preencher .4s var(--ease-out) both; }
.pd-etapas li.chegou span::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--bronze); animation: pd-acender .6s var(--ease-out) .25s both; }
@keyframes pd-surgir { from { opacity: 0; transform: translateY(6px); } }
@keyframes pd-preencher { from { transform: scaleX(0); } }
@keyframes pd-acender { from { transform: scale(1); opacity: .55; } to { transform: scale(2.4); opacity: 0; } }
@keyframes pd-pulso { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.pd-bloco { display: grid; gap: 10px; padding: 20px; border-radius: var(--radius-xl); border: 1px solid var(--line); }
.pd-bloco h2 { font-family: var(--display); font-weight: 500; font-size: 21px; color: var(--off); }
.pd-bloco p { font-size: 15px; line-height: 1.5; }
.pd-bloco p.pd-quando { display: flex; align-items: center; gap: 8px; color: var(--bronze); font-weight: 500; }
.pd-quando svg { width: 18px; height: 18px; }
.pd-bloco p.pd-obs { font-size: 14px; color: var(--text-muted); }
.pd-bloco .link-btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-left: -8px; }
.pd-bloco .link-btn svg { width: 16px; height: 16px; }
.pd-itens { list-style: none; display: grid; gap: 8px; }
.pd-itens li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pd-itens small { font-size: 13px; color: var(--text-muted); }
.pd-itens b { font-weight: 500; color: var(--creme); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-total dt, .pd-total dd { font-size: 16px; font-weight: 600; }
.resumo .pd-total dt, .resumo .pd-total dd { color: var(--off); }

.pd-cartao { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius-xl); background: var(--creme); color: var(--ink); }
.pd-cartao .selo { width: 56px; }
.pd-cartao b { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.2; }
.pd-cartao p { font-size: 13.5px; margin: 4px 0 12px; color: color-mix(in srgb, var(--ink) 78%, var(--creme)); }
.pd-cartao .btn { border-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink); }
.pd-cartao .btn:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* ---------- movimento de entrada ---------- */
.js .intro { opacity: 0; transform: translateY(18px); }
.js.ready .intro { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s); }
.js .hero-logo.intro { transform: translateY(10px) scale(.98); filter: blur(6px); }
.js.ready .hero-logo.intro { transform: none; filter: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); }
.js .ring { opacity: 0; transform: scale(.97); }
.js.ready .ring { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) .4s, transform 1.2s var(--ease-out) .4s; }
.js .hero-card { opacity: 0; translate: 0 16px; }
.js.ready .hero-card { opacity: 1; translate: 0 0; transition: opacity .6s var(--ease-out) .9s, translate .7s var(--ease-spring) .9s, transform .3s var(--ease-spring); }

.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out) var(--stagger, 0ms), transform .6s var(--ease-out) var(--stagger, 0ms); }
.js .card[data-reveal].in:hover { transform: translateY(-4px); transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .intro, .js [data-reveal], .js .ring, .js .hero-card, .js .hero-logo.intro { opacity: 1; transform: none; translate: none; filter: none; }
}

/* ---------- logo 3D da abertura (animada por JS: setupLogo3D em js/app.js) ---------- */
.logo3d { width: clamp(260px, 72vw, 480px); perspective: 900px; }
.logo3d-tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.logo3d-img { width: 100%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); }
/* brilho metálico: só aparece dentro das letras (máscara = a própria logo) */
.logo3d-shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  -webkit-mask: url("../img/melt-logo-3d.png") center / 100% 100% no-repeat; mask: url("../img/melt-logo-3d.png") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 238, 214, .55) 47%, rgba(255, 250, 240, .9) 50%, rgba(255, 238, 214, .55) 53%, transparent 62%);
  background-size: 300% 100%; background-position: 130% 0;
}
/* cintilar das estrelinhas da logo */
.twinkle { position: absolute; translate: -50% -50%; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(circle, #fff8ee 0 18%, rgba(255, 236, 210, .5) 32%, transparent 65%); border-radius: 50%; }
.twinkle::before { content: ""; position: absolute; inset: -60%; background: #fff6ea;
  clip-path: polygon(50% 0, 53% 47%, 100% 50%, 53% 53%, 50% 100%, 47% 53%, 0 50%, 47% 47%); }
.twinkle.t1 { left: 88.5%; top: 7.2%; width: 6%; aspect-ratio: 1; }
.twinkle.t2 { left: 93.5%; top: 16.8%; width: 3.6%; aspect-ratio: 1; }
/* gota que nasce na ponta e cai */
.droplet {
  position: absolute; left: 80%; top: 92.4%; width: 2.6%; aspect-ratio: .78; pointer-events: none; opacity: 0;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform-origin: 50% 0;
  background: radial-gradient(circle at 35% 65%, #ffe9d2 0 12%, #d9a173 30%, #9a5a30 62%, #5e2e14 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}
@media (min-width: 960px) { .logo3d { width: clamp(360px, 36vw, 500px); margin-left: -14px; } }

/* ---------- tela "Instalar app" (js/instalar.js) ---------- */
.sheet-instalar { gap: 16px; }
.instalar-topo { display: flex; align-items: center; gap: 14px; padding-right: 48px; }
.instalar-topo img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); flex: none; }
.instalar-topo h3 { font-size: 24px; margin-top: 2px; }
.passos { list-style: none; display: grid; gap: 10px; }
.passos li { display: grid; grid-template-columns: 28px 30px 1fr; gap: 10px; align-items: center; padding: 12px 14px;
             border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.passos .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bronze); color: var(--choc-900); font-weight: 600; font-size: 13px; }
.passos svg { width: 26px; height: 26px; fill: none; stroke: var(--bronze); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.passos svg circle[r="1.2"] { fill: var(--bronze); }
.passos b { font-weight: 600; color: var(--off); }
@media (min-width: 820px) {
  .sheet.sheet-instalar { grid-template-columns: 1fr; width: min(500px, 92vw); }
  .sheet.sheet-instalar .sheet-body { padding: 0; }
}
