/* ===== PAGINA DE VENDAS (planos.html) =====
   Direcao: o mundo da lanchonete, nao de uma "landing page".
   - o produto de verdade funcionando dentro do celular
   - o chat baguncado de sexta a noite contra o pedido pronto
   - precos impressos como comanda de papel, com anotacao a caneta
   Anton so no titulo principal; o resto em Archivo, em letra normal.
   Movimento so onde explica algo: o chat enchendo, a seta, a comanda saindo. */
:root { --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); --ease-quart: cubic-bezier(0.25, 1, 0.5, 1); --ff-pen: 'Caveat', 'Segoe Print', cursive; }

.sl-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sl-nav, .sl-foot nav { position: static; background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: auto; }
.sl-nav { display: flex; align-items: center; gap: 18px; }
.sl-nav a:not(.adm-btn) { color: var(--text2); font-weight: 600; font-size: 14px; text-decoration: none; }
.sl-nav a:not(.adm-btn):hover { color: var(--text); }
.sl-nav .adm-btn { text-decoration: none; }
@media (max-width: 560px) { .sl-nav a:not(.adm-btn) { display: none; } }

.sl-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.sl-ctas .btn { min-height: 50px; padding: 0 22px; font-size: 15px; text-decoration: none; justify-content: center; transition: transform 0.15s var(--ease-quart); }
.sl-ctas .btn:active, .sl-receipt .btn:active { transform: scale(0.97); }
.sl-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* ---------- topo ---------- */
.sl-hero { padding: 48px 0 56px; border-bottom: 1px solid var(--border); }
.sl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.sl-title {
  font-family: var(--ff-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(42px, 7vw, 82px); line-height: 0.95; color: var(--text); text-wrap: balance;
}
.sl-lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--text2); max-width: 50ch; }

/* o celular com o cardapio de exemplo de verdade dentro */
.sl-demo { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.sl-phone {
  border: 10px solid var(--text); border-radius: 38px; overflow: hidden; background: var(--bg);
  box-shadow: 0 30px 70px var(--shadow2); height: 640px;
}
.sl-phone iframe { display: block; width: 100%; height: 100%; border: 0; }
.sl-hint {
  position: absolute; left: -210px; bottom: 90px; width: 190px;
  font-family: var(--ff-pen); font-size: 22px; line-height: 1.15; color: var(--text); transform: rotate(-3deg);
}
.sl-arrow { position: absolute; right: -96px; top: -34px; width: 110px; color: var(--text); }
@media (max-width: 1180px) { .sl-hint { position: static; width: auto; margin-top: 14px; text-align: center; transform: rotate(-1.5deg); } .sl-arrow { display: none; } }

/* ---------- secoes ---------- */
.sl-section { padding: 72px 0; }
.sl-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sl-section h2, .sl-final h2, .sl-section .pricing-faq h2 {
  font-family: var(--ff-body); text-transform: none;
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); max-width: 22ch; text-wrap: balance;
}
.sl-sub { font-size: 17px; line-height: 1.6; color: var(--text2); margin: 12px 0 32px; max-width: 58ch; }

/* sexta a noite: o chat baguncado contra o pedido pronto */
.sl-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.sl-chat-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 18px; padding: 18px; margin: 0; }
.sl-alt .sl-chat-card { background: var(--bg); }
.sl-chat-card figcaption { font-weight: 700; color: var(--text); margin-bottom: 14px; font-size: 15px; }
.sl-chat-card.is-clean { border-color: var(--text); }
.sl-thread { display: flex; flex-direction: column; gap: 6px; }
.sl-thread > p {
  align-self: flex-start; max-width: 80%; background: var(--surface); color: var(--text);
  padding: 7px 44px 7px 11px; border-radius: 4px 12px 12px 12px; font-size: 14px; position: relative; line-height: 1.35;
}
.sl-thread time { position: absolute; right: 8px; bottom: 5px; font-size: 10.5px; color: var(--muted); }
.sl-audio { display: flex; align-items: center; gap: 8px; }
.sl-audio span { width: 70px; height: 3px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 6px); }
.sl-order {
  position: relative; background: var(--surface); border-radius: 4px 12px 12px 12px; padding: 12px 14px 22px;
  display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; color: var(--text2);
}
.sl-order b { color: var(--text); }
.sl-order i { height: 8px; }
.sl-caption { margin-top: 14px; font-family: var(--ff-pen); font-size: 22px; color: var(--text); transform: rotate(-1deg); }

/* um dia de exemplo: sequencia de verdade, com horario */
.sl-day { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--text); }
.sl-day li { padding: 18px 20px 4px 0; border-right: 1px dashed var(--border); margin-right: 20px; }
.sl-day li:last-child { border-right: 0; margin-right: 0; }
.sl-day time { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.sl-day p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text2); }

/* o que vem junto: lista simples, como anotacao */
.sl-included { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.sl-included ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.sl-included li { padding: 14px 0; border-bottom: 1px dashed var(--border); font-size: 15.5px; line-height: 1.45; color: var(--text); }
.sl-included small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* precos: comandas de papel sobre a mesa */
.sl-receipts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.sl-billing { max-width: 360px; margin: 0 0 28px; }
.sl-annual-note { font-size: 13px; margin-top: 6px; text-align: right; opacity: .75; }
.sl-receipt:nth-child(4) .sl-paper { transform: rotate(0.9deg); }
@media (max-width: 1180px) and (min-width: 901px) { .sl-receipts { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; } }
.sl-receipt { display: flex; flex-direction: column; gap: 14px; }
.sl-receipt:nth-child(1) .sl-paper { transform: rotate(-1.2deg); }
.sl-receipt:nth-child(2) .sl-paper { transform: rotate(0.6deg) translateY(-8px); }
.sl-receipt:nth-child(3) .sl-paper { transform: rotate(-0.4deg); }
.sl-paper {
  position: relative; background: #FFFFFF; color: #151515; padding: 22px 20px 26px;
  box-shadow: 0 14px 30px var(--shadow); transition: transform 0.35s var(--ease-quart);
}
.sl-receipt:hover .sl-paper { transform: rotate(0) translateY(-4px); }
/* serrilha de papel de comanda em cima e embaixo */
.sl-paper::before, .sl-paper::after {
  content: ''; position: absolute; left: 0; right: 0; height: 8px;
  background: radial-gradient(circle at 8px 0, transparent 7.5px, #FFFFFF 8px) 0 0 / 16px 8px repeat-x;
}
.sl-paper::before { top: -8px; transform: scaleY(-1); }
.sl-paper::after { bottom: -8px; }
.sl-paper header { text-align: center; padding-bottom: 14px; border-bottom: 1px dashed #BDBDBD; }
.sl-paper header span { font-size: 12.5px; color: #5E5E5E; }
.sl-paper h3 { font-size: 22px; font-weight: 800; margin: 4px 0 2px; letter-spacing: -0.01em; }
.sl-paper header small { font-size: 12px; color: #7A7A7A; font-variant-numeric: tabular-nums; }
.sl-paper dl { padding: 12px 0; border-bottom: 1px dashed #BDBDBD; display: flex; flex-direction: column; gap: 7px; }
.sl-paper dl div { display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.sl-paper dt { color: #3A3A3A; }
.sl-paper dl div::after { content: ''; order: 1; flex: 1; border-bottom: 1.5px dotted #C4C4C4; transform: translateY(-4px); }
.sl-paper dd { order: 2; font-weight: 700; color: #151515; white-space: nowrap; }
.sl-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.sl-total span { font-weight: 700; font-size: 14px; }
.sl-total strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* anotacao a caneta escrita na propria comanda */
.sl-pen { margin-top: 12px; font-family: var(--ff-pen); font-size: 21px; line-height: 1.1; color: #2B2B2B; transform: rotate(-2.5deg); text-align: center; }
.sl-receipt .btn { min-height: 48px; justify-content: center; text-decoration: none; }

/* perguntas */
.sl-section .pricing-faq { max-width: 760px; }
.pricing-faq h2 { margin-bottom: 18px; }
.pricing-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pricing-faq summary::-webkit-details-marker { display: none; }
.pricing-faq summary::after { content: '+'; font-size: 22px; font-weight: 400; line-height: 1; transition: transform 0.3s var(--ease-quart); }
.pricing-faq details[open] summary::after { transform: rotate(45deg); }

/* fechamento: alinhado a esquerda, sem cara de banner */
.sl-final { padding: 72px 0 80px; border-top: 1px solid var(--border); }
.sl-final p { font-size: 17px; line-height: 1.6; color: var(--text2); margin-top: 12px; max-width: 54ch; }

.sl-foot { border-top: 1px solid var(--border); padding: 24px 0 32px; font-size: 14px; color: var(--muted); }
.sl-foot .sl-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sl-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.sl-foot a { color: var(--text2); text-decoration: none; font-weight: 600; }
.sl-foot a:hover { color: var(--text); }
.sl-foot .sl-company { display: block; margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* ---------- movimento com proposito (ativado por js/vendas-anim.js) ---------- */
/* topo: texto entra suave */
.sl-anim .sl-hero-text > * { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo); }
.sl-anim .sl-hero-text > *:nth-child(2) { transition-delay: 0.08s; }
.sl-anim .sl-hero-text > *:nth-child(3) { transition-delay: 0.16s; }
.sl-anim .sl-hero-text > *:nth-child(4) { transition-delay: 0.24s; }
.sl-anim.sl-ready .sl-hero-text > * { opacity: 1; transform: none; }
/* a seta a caneta se desenha */
.sl-anim .sl-arrow path { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 0.9s var(--ease-quart) 0.9s; }
.sl-anim.sl-ready .sl-arrow path { stroke-dashoffset: 0; }
/* sexta a noite: as mensagens vao chegando uma atras da outra, depois o pedido pronto */
.sl-anim .sl-thread > p, .sl-anim .sl-order { opacity: 0; transform: translateY(10px) scale(0.98); transform-origin: 0 100%; transition: opacity 0.3s var(--ease-quart), transform 0.35s var(--ease-expo); }
.sl-anim .sl-thread > p.is-on, .sl-anim .sl-order.is-on { opacity: 1; transform: none; }
.sl-anim .sl-caption { opacity: 0; transition: opacity 0.6s var(--ease-quart); }
.sl-anim .sl-caption.is-on { opacity: 1; }
/* entradas ao rolar */
.sl-anim .sl-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo); transition-delay: calc(var(--i, 0) * 90ms); }
.sl-anim .sl-reveal.is-in { opacity: 1; transform: none; }
/* comandas saindo da impressora: surgem de cima para baixo */
.sl-anim .sl-receipt.sl-reveal .sl-paper { clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease-expo), transform 0.35s var(--ease-quart); transition-delay: calc(var(--i, 0) * 140ms); }
.sl-anim .sl-receipt.sl-reveal.is-in .sl-paper { clip-path: inset(-12px -12px -60px -12px); }

/* ---------- celular e tablet ---------- */
@media (max-width: 900px) {
  .sl-hero-grid, .sl-compare, .sl-included, .sl-receipts { grid-template-columns: 1fr; }
  .sl-hero-grid { gap: 36px; }
  .sl-phone { height: 580px; }
  .sl-day { grid-template-columns: 1fr 1fr; }
  .sl-day li:nth-child(2) { border-right: 0; margin-right: 0; }
  .sl-receipts { gap: 56px; max-width: 420px; }
  .sl-section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .sl-wrap { padding: 0 16px; }
  .sl-lead { font-size: 16px; }
  .sl-ctas .btn { width: 100%; }
  .sl-day, .sl-included ul { grid-template-columns: 1fr; }
  .sl-day li { border-right: 0; margin-right: 0; border-bottom: 1px dashed var(--border); padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-paper, .sl-receipt:hover .sl-paper { transition: none; }
}
