/* ==========================================================
   MENUZINHO · site.css — o site (menuzinho.online) e as páginas de aviso
   Vem do site.css do protótipo. Usa as variáveis do base.css e os
   componentes do painel.css (botões, marca, cartões de plano e de
   template), como no protótipo o site usava o app.css.
   ========================================================== */

.s-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.s-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.s-pular { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 12px; background: var(--text); color: #fff; font-weight: 800; text-decoration: none; }
.s-pular:focus { top: 12px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------------- cabeçalho ---------------- */
.s-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 247, 242, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.s-header.rolou { border-color: var(--line); box-shadow: 0 6px 20px rgba(58, 37, 48, .05); }
.s-header-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.s-header .brand, .s-footer .brand, .s-aviso > .brand { padding: 0; }
.s-menu { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.s-nav { display: flex; gap: 22px; }
.s-nav a { color: var(--text); text-decoration: none; font-weight: 800; font-size: 14.5px; }
.s-nav a:hover, .s-nav a[aria-current] { color: var(--primary); }
.s-header-cta { display: flex; gap: 8px; }
.s-burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; }

/* ---------------- topo da página inicial ---------------- */
.s-hero { padding: 48px 0 72px; background: radial-gradient(900px 500px at 85% 20%, #FFE3EC 0%, transparent 60%), radial-gradient(700px 400px at 5% 90%, #E6F7F1 0%, transparent 60%); overflow: hidden; }
.s-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.s-kicker { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 800; color: var(--primary-600); }
.s-hero h1 { font-family: var(--font-display); font-size: clamp(36px, 5.2vw, 60px); line-height: 1.03; letter-spacing: -.02em; }
.s-hero h1 em { font-style: italic; color: var(--primary); }
.s-lead { margin-top: 18px; font-size: 18.5px; line-height: 1.55; color: #5C4450; max-width: 540px; }
.s-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.s-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 800; color: var(--muted); }

.s-hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.s-bolha {
  position: absolute; z-index: 2; padding: 10px 14px; border-radius: 16px; background: #fff; pointer-events: none;
  box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.35; animation: s-flutua 3.5s ease-in-out infinite;
}
.s-bolha-1 { left: -8%; top: 22%; }
.s-bolha-2 { right: -4%; top: 58%; font-weight: 800; animation-delay: -1.5s; }

/* o celular: a demonstração de verdade de cada template, num iframe com sandbox */
.s-celular {
  width: 320px; height: 620px; padding: 11px; border-radius: 46px; background: #1E1418;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #3A2A31; transform: rotate(2deg);
}
.s-celular-tela { height: 100%; display: flex; flex-direction: column; border-radius: 36px; overflow: hidden; background: #fff; }
.s-celular-status {
  flex: none; height: 30px; display: flex; align-items: flex-start; justify-content: space-between;
  padding: 7px 24px 0; background: #1E1418; color: #fff; font-size: 11px; font-weight: 800;
}
.s-notch { width: 92px; height: 20px; margin-top: -7px; border-radius: 0 0 14px 14px; background: #000; }
.s-celular-quadros { position: relative; flex: 1; background: #fff; }
.s-celular-quadros iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; transition: opacity .35s ease; }
.s-celular-quadros iframe.entrando { opacity: 0; }
.s-legenda { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.s-troca { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 420px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.s-troca button { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 12.5px; color: var(--text); }
.s-troca button:hover { border-color: #E7C9D3; }
.s-troca button[aria-pressed="true"] { border-color: var(--primary); color: var(--primary-600); background: var(--primary-50); }

/* ---------------- seções ---------------- */
.s-sec { padding: 84px 0; }
.s-sec[id], .s-final { scroll-margin-top: 70px; }
.s-sec-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-eyebrow { font-size: 12.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.s-h1 { margin-top: 8px; max-width: 760px; font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -.015em; }
.s-h2 { margin-top: 8px; max-width: 720px; font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.01em; }
.s-sub { margin-top: 12px; max-width: 640px; font-size: 16.5px; color: #5C4450; }

.s-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0 0; padding: 0; list-style: none; }
.s-step { position: relative; padding: 28px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.s-step-n { position: absolute; top: 18px; right: 20px; font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--primary-50); line-height: 1; }
.s-step-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--surface-2); margin-bottom: 16px; }
.s-step h3 { font-size: 19px; margin-bottom: 8px; }
.s-step p { color: #5C4450; }

.s-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 30px; margin: 36px 0 0; padding: 0; list-style: none; }
.s-feat > span { font-size: 28px; }
.s-feat h3 { margin: 8px 0 4px; font-size: 17px; }
.s-feat p { color: #5C4450; font-size: 15px; }

/* a vitrine: os mesmos cartões do painel (painel.css), como link para a demonstração */
.s-modelos { margin-top: 30px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.s-modelo { color: inherit; text-decoration: none; }
.s-modelo img { height: auto; }  /* o height="900" do HTML só reserva a proporção (4:3) */
.s-modelo:hover { border-color: #E7C9D3; box-shadow: var(--shadow); }
.s-modelo.no-celular { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.tpl-preco s { color: var(--muted); font-weight: 700; font-size: 11.5px; }
.tpl-preco small { font-weight: 700; color: var(--muted); }

.s-whats { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.s-whats .btn { margin-top: 22px; }
.s-chat { max-width: 380px; width: 100%; margin: 0; justify-self: center; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: #EFE7DD; }
.s-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #075E54; color: #fff; }
.s-chat-head small { display: block; font-size: 11.5px; opacity: .8; }
.s-chat-av { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 20px; }
.s-chat-body { padding: 16px; background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 14px 14px; }
.s-msg { position: relative; padding: 10px 12px 22px; border-radius: 12px 0 12px 12px; background: #DCF8C6; font-size: 13.5px; line-height: 1.5; color: #1F2C24; margin-left: 10%; overflow-wrap: anywhere; }
.s-msg-hora { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #5A7F66; }

.s-plans { margin-top: 32px; max-width: 980px; }
.s-plans .plan h3 { margin: 0; font-size: 17px; }
.s-avulso { margin-top: 18px; font-size: 15px; color: #5C4450; }
.s-avulso a { font-weight: 800; }

.s-faq-wrap { max-width: 820px; }
.s-faq { margin-top: 28px; display: grid; gap: 10px; }
.s-faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.s-faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--primary); transition: transform .2s; }
.s-faq details[open] summary::after { transform: rotate(45deg); }
.s-faq p { padding: 0 20px 18px; color: #5C4450; }

.s-final { padding: 80px 0; text-align: center; background: linear-gradient(120deg, #FFE3EC 0%, #FFF1E0 60%, #E6F7F1 100%); }
.s-final h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); }
.s-final p { margin: 10px 0 26px; font-size: 17px; color: #5C4450; }

.s-footer { padding: 34px 0 40px; border-top: 1px solid var(--line); }
.s-footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.s-footer .brand { font-size: 18px; }
.s-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.s-footer nav a { color: var(--text); font-weight: 700; text-decoration: none; font-size: 14px; }
.s-footer nav a:hover { color: var(--primary); }

/* ---------------- preços ---------------- */
.s-topo { padding-top: 56px; background: radial-gradient(800px 420px at 90% 0%, #FFE3EC 0%, transparent 60%); }
/* position: relative segura o texto escondido (.s-oculto) dentro da rolagem: sem ela, ele alarga a página no celular */
.s-comparar-rolagem { position: relative; margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.s-comparar { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; }
.s-comparar th, .s-comparar td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.s-comparar tbody tr:last-child th, .s-comparar tbody tr:last-child td { border-bottom: 0; }
.s-comparar thead th { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.s-comparar th[scope="row"] { text-align: left; font-weight: 800; color: #5C4450; }
.s-comparar .s-destaque { background: #FFF6F9; }
.s-comparar thead .s-destaque { color: var(--primary-600); }
.s-sim { color: var(--mint); font-weight: 900; font-size: 18px; }
.s-nao { color: #C9B3BC; font-weight: 900; }
.s-passe { max-width: 820px; }
.s-passe-lista { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 16px; color: #5C4450; }
.s-passe-lista li { padding: 16px 18px 16px 50px; position: relative; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.s-passe-lista li::before { content: '✓'; position: absolute; left: 18px; top: 15px; color: var(--mint); font-weight: 900; font-size: 18px; }
.s-passe-lista b { color: var(--text); }

/* ---------------- termos e privacidade ---------------- */
.s-legal { min-height: 62vh; }
.s-legal-in { max-width: 780px; }
.s-legal-in > * + * { margin-top: 14px; }
.s-legal-in h2 { margin-top: 40px; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 27px); line-height: 1.2; scroll-margin-top: 84px; }
.s-legal-in p, .s-legal-in ul { color: #5C4450; }
.s-legal-in ul { padding-left: 22px; display: grid; gap: 6px; }
.s-legal-in strong { color: var(--text); }
.s-legal-in a { font-weight: 700; overflow-wrap: anywhere; }
.s-legal-in .s-legal-data { margin-top: 10px; font-size: 14px; font-weight: 700; }
/* o dado da empresa que ainda falta no .env (views._ou_preencher) */
.s-preencher { padding: 0 6px; border-radius: 6px; background: #FFE14D; color: #5A4300; font-weight: 800; }

/* ---------------- avisos: erros e cardápio fora do ar ---------------- */
.s-aviso {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 16px;
  background: radial-gradient(700px 420px at 85% 10%, #FFE3EC 0%, transparent 60%), radial-gradient(600px 380px at 10% 95%, #E6F7F1 0%, transparent 60%);
}
.s-aviso-cartao { width: 100%; max-width: 520px; padding: 36px 28px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); }
.s-aviso-emoji { font-size: 56px; line-height: 1; margin-bottom: 14px; animation: s-flutua 3.5s ease-in-out infinite; }
.s-aviso-cartao h1 { margin: 12px 0 8px; font-family: var(--font-display); font-size: clamp(26px, 6vw, 34px); line-height: 1.12; }
.s-aviso-cartao p { color: #5C4450; }
.s-aviso-dica { margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-weight: 700; font-size: 14px; }
.s-aviso-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

@keyframes s-flutua { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .s-bolha, .s-aviso-emoji { animation: none; }
  .s-celular-quadros iframe { transition: none; }
}

/* ---------------- responsivo ---------------- */
@media (max-width: 960px) {
  .s-hero-in, .s-whats { grid-template-columns: 1fr; }
  .s-hero { padding-top: 28px; }
  .s-hero-text { text-align: center; }
  .s-lead { margin-left: auto; margin-right: auto; }
  .s-cta, .s-trust { justify-content: center; }
  .s-steps, .s-feats { grid-template-columns: 1fr 1fr; }
  .s-bolha-1 { left: max(0px, calc(50% - 270px)); }   /* perto do celular, que fica no meio */
  .s-bolha-2 { right: max(0px, calc(50% - 270px)); }
}

@media (max-width: 760px) {
  .s-burger { display: block; }
  .s-menu { display: none; }
  .s-header.aberto .s-menu {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 18px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(0, 0, 0, .06);
  }
  .s-header.aberto .s-nav { flex-direction: column; gap: 14px; }
  .s-header.aberto .s-header-cta .btn { flex: 1; }
  .s-sec { padding: 60px 0; }
  .s-topo { padding-top: 36px; }
  .s-steps, .s-feats { grid-template-columns: 1fr; }
  .s-celular { width: 300px; height: 560px; transform: none; }
  .s-bolha-1 { left: 0; }
  .s-bolha-2 { right: 0; }
  .s-wrap { padding: 0 16px; }
  .s-modelos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .s-msg { margin-left: 4%; }
  /* a tabela rola para o lado, com o nome de cada linha parado na esquerda */
  .s-comparar { min-width: 520px; font-size: 13.5px; }
  .s-comparar th, .s-comparar td { padding: 11px 8px; }
  .s-comparar thead th { font-size: 14.5px; }
  .s-comparar th:first-child { position: sticky; left: 0; z-index: 1; width: 132px; background: #fff; box-shadow: 1px 0 0 var(--line); }
}

@media (max-width: 360px) {
  .s-celular { width: 100%; max-width: 290px; }
  .s-header-in { gap: 12px; }
}
