/* Página da masterclass O Sono Perfeito. Medidas da página Elementor original (gilgabrielouteiro.com/sono, id 14,
   versão de 20/10/2026): tamanhos, cores e espaçamentos vêm do _elementor_data; quebras do Elementor (tablet 1024, celular 767).

   RESPIRO (regra, 07/11/2026): todo bloco empilhado numa coluna de texto fica dentro de .pilha, que põe 20 px entre um
   bloco e o seguinte, o mesmo valor que o Elementor aplicava entre widgets (.elementor-widget:not(:last-child)
   {margin-bottom:20px}, no kit do site do Gil). Exceção se declara com --antes no bloco, nunca com margin solta.
   O zeramento de margens e o de imagem ficam inteiros dentro de :where(), peso zero: na versão 1.0.18 um ".sono p {margin:0}" vencia as margens de cada
   texto e deixou 17 pares de blocos colados (0 px) em 375, 768 e 1280 px. Medidor: .claude/ferramentas/respiro_sono.py. */
@font-face { font-family: 'Spectral'; src: url('fontes/spectral-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('fontes/spectral-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fontes/roboto.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fontes/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('fontes/inter-tight.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

html { scroll-behavior: smooth; }
body.sono-pagina { margin: 0; background: #0F1125; }
.sono { --azul: #26AEF8; --azul-forte: #1875D6; --gelo: #EAF1FC; --claro: #F0F1FA; --marinho: #142C4C; --linha: #D6E4F7;
  background: var(--gelo); font-family: 'Roboto', system-ui, sans-serif; color: #292929; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.sono *, .sono *::before, .sono *::after { box-sizing: border-box; }
.sono ::selection { background: var(--azul); color: #fff; }
:where(.sono img) { max-width: 100%; height: auto; display: block; }
:where(.sono) :where(h1, h2, h3, p, figure, blockquote, ul) { margin: 0; }
/* --antes não passa de pai para filho (07/11/2026): herdado, o --antes de um bloco virava o respiro dos filhos de qualquer
   .pilha dentro dele; as estrelas dos depoimentos ficavam a 36 px (28 no celular) do nome, e não a 20. */
@property --antes { syntax: '<length>'; inherits: false; initial-value: 20px; }
.pilha > * + * { margin-top: var(--antes, 20px); }
/* Sem palavra sozinha na última linha de título e selo (13/11/2026: "fez", "qualidade." e "OFF" sobravam em 375 px). Mesma
   regra do teste do sono. Medidor: .claude/ferramentas/respiro_sono.py. */
.sono :where(h1, h2, h3, .oferta__off) { text-wrap: balance; }
.caixa { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 10px; }

.botao { display: inline-block; justify-self: start; background: var(--azul); color: #fff; font: 500 16px/1 'Roboto', sans-serif; letter-spacing: .2px;
  padding: 14px 26px; border-radius: 5px; text-decoration: none; transition: filter .2s; }
.botao:hover, .botao:focus-visible { filter: brightness(1.08); }
.botao:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.botao--escuro { background: var(--marinho); font-size: 14px; padding: 12px 22px; }
.s-secao__titulo { text-align: center; font: 600 33px/1.25 'Inter Tight', sans-serif; letter-spacing: -.3px; color: #202020; }

/* 1. Abertura */
.s-hero { position: relative; padding: 64px 0 72px; background: #0F1125; color: var(--claro); text-align: center; overflow: hidden; }
.s-hero__fundo { position: absolute; inset: 0; background: url('img/fundo-site.webp') center top / cover no-repeat; }
.s-hero__miolo { position: relative; padding: 0 200px; }
.s-hero__assinatura { width: 12%; min-width: 110px; margin-left: auto; margin-right: auto; }
.s-hero__titulo { --antes: 24px; font: 300 68px/1.02 'Spectral', Georgia, serif; letter-spacing: -2.7px; color: var(--claro); }
.s-hero__apoio { --antes: 24px; padding: 0 130px; font: 400 19px/1.5 'Roboto', sans-serif; color: #D3D3D3; }
.s-hero .botao { --antes: 32px; }
.video { --antes: 48px; border: 2px solid #2B3E53; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #1A223B; }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Capa do vídeo: foto de estúdio do Gil à direita, chamada e logo à esquerda, botão de play próprio */
.video__capa { position: relative; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; cursor: pointer; overflow: hidden;
  background: radial-gradient(120% 120% at 85% 50%, #23314F 0%, #1A223B 45%, #0F1125 100%); color: #fff; text-align: left; font: inherit; }
.video__foto { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%); mask-image: linear-gradient(to right, transparent 0, #000 35%); }
.video__texto { position: absolute; left: 7%; top: 50%; transform: translateY(-50%); width: 36%; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.video__chamada { font: 500 13px/1 'Roboto', sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--azul); }
.video__logo { width: 100%; }
.video__play { margin-top: 14px; width: 68px; height: 68px; border-radius: 50%;
  background: var(--azul); color: #fff; display: flex; align-items: center; justify-content: center; padding-left: 4px;
  box-shadow: 0 0 0 9px rgba(38,174,248,.22); transition: transform .2s, box-shadow .2s; }
.video__capa:hover .video__play, .video__capa:focus-visible .video__play { transform: scale(1.06); box-shadow: 0 0 0 13px rgba(38,174,248,.28); }
.video__capa:focus-visible { outline: 3px solid var(--azul); outline-offset: -3px; }

/* 2. Barra do preço: gruda no topo ao rolar (no original era o "sticky" do Elementor Pro) */
.s-barra { position: sticky; top: 0; z-index: 20; background: var(--azul); }
.s-barra__miolo { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.s-barra__logo { width: 68%; max-width: 250px; }
/* Chamada do desconto, sem preço (12/11/2026): o preço só aparece no quadro da oferta, depois do vídeo. */
.s-barra__chamada { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font: 700 15px/1.2 'Roboto', sans-serif;
  letter-spacing: .8px; text-transform: uppercase; color: #0F1125; text-align: right; }
.s-barra__off { flex: none; padding: 8px 12px; border-radius: 999px; background: #0F1125; color: #FFD84D; font: 800 16px/1 'Inter Tight', sans-serif;
  letter-spacing: .4px; white-space: nowrap; text-transform: uppercase; }
.s-barra__off-curto { display: none; }
@media (max-width: 767px) { .s-barra__off-curto { display: inline; } }

/* 3. Sintomas */
.s-sintomas { background: #0F1125 url('img/gil-fundo.webp') center center / cover no-repeat; padding: 130px 0 120px; }
.s-sintomas__miolo { display: grid; grid-template-columns: 1fr 1fr; }
.s-sintomas__titulo { font: 400 51px/1.05 'Spectral', Georgia, serif; letter-spacing: -.9px; color: #D0DDEC; }
.s-sintomas__apoio { font: 500 21px/1.4 'Roboto', sans-serif; color: #fff; }

/* 4. Benefícios em carrossel */
.s-beneficios { padding: 80px 0; }
.s-beneficios .carrossel { --antes: 36px; }
.carrossel__trilho { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 24px; margin: -4px -4px 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carrossel__trilho::-webkit-scrollbar { display: none; }
.carrossel__trilho:focus-visible { outline: 2px solid var(--azul-forte); outline-offset: 2px; border-radius: 12px; }
.beneficio { scroll-snap-align: start; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(20,44,76,.08); display: flex; flex-direction: column; }
.beneficio__foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.beneficio__texto { padding: 24px 24px 28px; }
.beneficio__titulo { font: 400 30px/1.1 'Spectral', Georgia, serif; letter-spacing: -1px; color: #202020; }
.beneficio__texto p { --antes: 16px; font: 400 16px/1.55 'Inter Tight', sans-serif; color: rgba(41,41,41,.89); }
.carrossel__controles { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.carrossel__seta { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linha); background: #fff; color: var(--azul-forte);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .2s, color .2s; }
.carrossel__seta:hover, .carrossel__seta:focus-visible { background: var(--azul-forte); color: #fff; }
.carrossel__seta:disabled { opacity: .35; cursor: default; background: #fff; color: var(--azul-forte); }
.carrossel__pontos { display: flex; gap: 8px; }
.carrossel__pontos span { width: 8px; height: 8px; border-radius: 50%; background: #C3D5EE; transition: width .2s, background .2s; }
.carrossel__pontos span.ativo { width: 22px; border-radius: 4px; background: var(--azul-forte); }

/* 5. Módulos: cada módulo numa caixa, com número em selo */
.s-modulos { padding: 64px 0 80px; overflow: hidden; }
.s-modulos__ritmo { width: 46%; margin-left: auto; margin-right: auto; will-change: transform; }
.s-modulos__titulo { --antes: 32px; text-align: center; font: 600 71px/1 'Inter', sans-serif; letter-spacing: -2.4px; color: var(--azul-forte); }
.s-modulos .sanfona { --antes: 36px; max-width: 760px; margin-left: auto; margin-right: auto; }

.sanfona { display: grid; gap: 12px; }
.sanfona details { background: #fff; border: 1px solid var(--linha); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.sanfona details:hover { border-color: #B9D0EE; }
.sanfona details[open] { border-color: var(--azul-forte); box-shadow: 0 8px 24px rgba(24,117,214,.10); }
.sanfona summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  font: 500 19px/1.35 'Inter Tight', sans-serif; color: #2B2B2B; border-radius: 12px; }
.sanfona summary::-webkit-details-marker { display: none; }
.sanfona__num { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--gelo); color: var(--azul-forte);
  display: flex; align-items: center; justify-content: center; font: 600 15px/1 'Inter', sans-serif; letter-spacing: .2px; }
.sanfona__nome { flex: 1; }
.sanfona summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 0; border-right: 2px solid #9DB3D1; border-bottom: 2px solid #9DB3D1;
  transform: rotate(45deg); transition: transform .2s; }
.sanfona details[open] > summary::after { transform: rotate(225deg); margin-top: 4px; border-color: var(--azul-forte); }
.sanfona details[open] .sanfona__num { background: var(--azul-forte); color: #fff; }
.sanfona summary:focus-visible { outline: 2px solid var(--azul-forte); outline-offset: 2px; }
.sanfona ul { padding: 0 24px 20px 96px; font: 400 17px/1.6 'Inter Tight', sans-serif; color: #4A4A4A; }
.sanfona li + li { margin-top: 4px; }
.sanfona p { padding: 0 24px 20px 20px; font: 400 17px/1.6 'Inter Tight', sans-serif; color: #4A4A4A; }

/* 6. Depoimentos: autor em cima, depois estrelas e texto */
.s-depoimentos { padding: 80px 0; border-bottom: 3px solid var(--azul-forte); }
.dep { --antes: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-family: 'Inter Tight', sans-serif; }
.dep__cartao { background: #fff; border-radius: 12px; padding: 26px 26px 28px; box-shadow: 0 8px 28px rgba(20,44,76,.08); }
.dep__autor { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--gelo); }
.dep__foto { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--linha); }
.dep__nome { display: block; font-weight: 600; color: #202020; font-size: 16px; line-height: 1.25; }
.dep__selo { display: block; font-size: 13px; color: var(--azul-forte); font-weight: 500; margin-top: 3px; }
.dep__estrelas { color: var(--azul); font-size: 17px; letter-spacing: 3px; line-height: 1; }
.dep__texto { --antes: 16px; color: rgba(41,41,41,.89); font-size: 16px; line-height: 1.6; }

/* 7. Oferta */
.s-oferta { padding: 90px 0 72px; }
.oferta { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: #181818; border: 2px solid #C5C5C5; border-radius: 14px; padding: 64px 0; }
.oferta__telas { margin-left: -88px; width: calc(100% + 88px); max-width: calc(100% + 88px); }
.oferta__texto { margin-left: 70px; padding-right: 48px; color: #fff; }
.oferta__selo { width: 34%; min-width: 160px; }
.oferta__titulo { --antes: 16px; font: 400 52px/1.1 'Spectral', Georgia, serif; letter-spacing: -2.4px; color: var(--claro); }
/* Desconto óbvio (12/11/2026, JP: "quem bate o olho acha que é 100"): selo amarelo 50% OFF, R$ 100 riscado em vermelho e R$ 47 grande. */
.oferta__off { --antes: 22px; justify-self: start; display: inline-block; padding: 9px 14px; border-radius: 8px; background: #FFD84D; color: #0F1125;
  font: 800 18px/1 'Inter Tight', sans-serif; letter-spacing: .6px; text-transform: uppercase; }
.oferta__valor { --antes: 18px; }
.oferta__de { font: 400 24px/1.3 'Roboto', sans-serif; letter-spacing: -.2px; color: rgba(240,241,250,.7); }
.oferta__de s { color: rgba(240,241,250,.8); text-decoration: line-through; text-decoration-color: #FF5A5A; text-decoration-thickness: 3px; }
.oferta__condicao { margin-top: 10px; font: 400 15px/1.4 'Roboto', sans-serif; color: rgba(240,241,250,.7); }
.oferta__preco { margin-top: 6px; font: 500 70px/1 'Inter Tight', sans-serif; letter-spacing: -.6px; color: var(--azul); }
.oferta__apoio { --antes: 24px; max-width: 420px; font: 400 18px/1.5 'Roboto', sans-serif; color: #fff; }
.oferta .botao { --antes: 28px; }
/* Até 27/11 a página fala em Black Friday; depois, o sono.js marca .sono--pos-black (a oferta continua). */
.sono--pos-black .v-black, .sono:not(.sono--pos-black) .v-pos-black { display: none !important; }


/* 8. Garantia */
.s-garantia { padding: 0 0 100px; border-bottom: 3px solid var(--azul-forte); }
.s-garantia__miolo { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 40px; padding: 0 160px; }
.s-garantia__selo { width: 70%; justify-self: center; }
.s-garantia__titulo { font: 600 33px/1.25 'Inter Tight', sans-serif; letter-spacing: -.3px; color: #202020; }
.s-garantia p { --antes: 16px; font: 500 18px/1.55 'Inter Tight', sans-serif; letter-spacing: -.1px; color: rgba(41,41,41,.89); }
.s-garantia a { color: var(--azul-forte); overflow-wrap: anywhere; }

/* 9. Perguntas frequentes */
.s-faq { background: #fff; padding: 80px 0 90px; }
.s-faq__titulo { text-align: center; font: 600 56px/1.1 'Inter', sans-serif; letter-spacing: -2.4px; color: #474747; }
.sanfona--faq { --antes: 36px; max-width: 760px; margin-left: auto; margin-right: auto; }
.sanfona--faq details { background: var(--gelo); border-color: transparent; }
.sanfona--faq details[open] { background: #fff; }

/* 10. Sobre o Gil */
.s-autor { background: #1A223B; padding: 100px 0; color: rgba(255,255,255,.89); }
.s-autor__miolo { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.s-autor__foto { width: 65%; display: grid; justify-items: center; }
.s-autor__foto img { width: 100%; border-radius: 12px; }
.s-autor__instagram { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font: 500 15px/1 'Inter Tight', sans-serif; letter-spacing: .2px;
  transition: background .2s, border-color .2s; }
.s-autor__instagram:hover, .s-autor__instagram:focus-visible { background: var(--azul-forte); border-color: var(--azul-forte); }
.s-autor__assinatura { width: 218px; }
.s-autor__texto p { font: 400 18px/1.55 'Inter Tight', sans-serif; }
.s-autor__texto p + p { --antes: 18px; }
.s-autor__texto .s-autor__assinatura + p { --antes: 24px; }

/* 11. Rodapé: Instituto (CNPJ, termos e privacidade) no lugar do crédito dos desenvolvedores anteriores */
.s-rodape { background: #202020 url('img/fundo-site.webp') center top / cover no-repeat; padding: 90px 0; color: #fff; }
.s-rodape__miolo { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
.s-rodape__assinatura { width: 29%; min-width: 120px; }
.s-rodape__direitos, .s-rodape__links { font: 400 12px/1.8 'Roboto', sans-serif; }
.s-rodape__links a { color: #fff; text-underline-offset: 2px; }
.s-rodape__logo { width: 51%; justify-self: end; }

/* Tablet */
@media (max-width: 1024px) {
  .s-hero__miolo { padding: 0 60px; }
  .s-hero__apoio { padding: 0 40px; }
  .carrossel__trilho { grid-auto-columns: calc((100% - 24px) / 2); }
  .dep { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; gap: 18px; }
  .oferta__texto { margin-left: 30px; padding-right: 30px; }
  .oferta__titulo { font-size: 44px; letter-spacing: -1.8px; }
  .s-garantia__miolo { padding: 0 40px; }
}

/* Celular */
@media (max-width: 767px) {
  .caixa { padding: 0 20px; }
  .s-secao__titulo { font-size: 28px; }
  .s-hero { padding: 52px 0 56px; }
  .s-hero__miolo { padding: 0 20px; }
  .s-hero__assinatura { width: 30%; }
  .s-hero__titulo { --antes: 20px; font-size: 40px; letter-spacing: -1.6px; }
  .s-hero__apoio { --antes: 20px; padding: 0; font-size: 16px; }
  .s-hero .botao { --antes: 28px; }
  .video { --antes: 36px; border-radius: 12px; }
  .video__texto { left: 6%; width: 44%; gap: 8px; }
  .video__chamada { font-size: 10px; letter-spacing: 1.4px; }
  .video__play { margin-top: 6px; width: 44px; height: 44px; box-shadow: 0 0 0 6px rgba(38,174,248,.22); }
  .video__play svg { width: 20px; height: 20px; }
  .s-barra__miolo { grid-template-columns: 1fr auto auto; padding: 12px 20px; gap: 10px; }
  .s-barra__logo { width: 100%; max-width: 170px; }
  .s-barra__texto { display: none; }
  .s-barra__off { padding: 7px 9px; font-size: 13px; }
  .s-barra__off-longo { display: none; }
  .botao--escuro { font-size: 12px; padding: 10px 14px; }
  .s-sintomas { background-image: url('img/gil-fundo-celular.webp'); background-position: top center; padding: 50px 0; }
  .s-sintomas__miolo { grid-template-columns: 1fr; }
  .s-sintomas__texto { padding-top: 250px; }
  .s-sintomas__titulo { font-size: 29px; }
  .s-sintomas__apoio { font-size: 16px; }
  .s-beneficios { padding: 56px 0; }
  .s-beneficios .carrossel { --antes: 28px; }
  .carrossel__trilho { grid-auto-columns: 82%; gap: 14px; }
  .beneficio__titulo { font-size: 26px; }
  .s-modulos { padding: 50px 0 56px; }
  .s-modulos__ritmo { width: 100%; }
  .s-modulos__titulo { --antes: 24px; font-size: 39px; letter-spacing: -1.2px; }
  .s-modulos .sanfona { --antes: 28px; }
  .sanfona { gap: 10px; }
  .sanfona summary { padding: 14px; gap: 12px; font-size: 16px; }
  .sanfona__num { width: 34px; height: 34px; font-size: 13px; border-radius: 8px; }
  .sanfona ul { padding: 0 16px 16px 66px; font-size: 15px; }
  .sanfona p { padding: 0 16px 16px; font-size: 15px; }
  .s-depoimentos { padding: 56px 0; }
  .dep { --antes: 28px; }
  .dep__cartao { padding: 22px 20px 24px; }
  .s-oferta { padding: 56px 0 0; }
  .oferta { grid-template-columns: 1fr; padding: 40px 0 44px; gap: 32px; }
  .oferta__telas { margin-left: 0; width: 100%; max-width: 100%; }
  .oferta__texto { margin: 0; padding: 0 22px; }
  .oferta__selo { width: 60%; }
  .oferta__titulo { font-size: 39px; letter-spacing: -1.6px; }
  .oferta__preco { font-size: 58px; }
  .oferta__off { font-size: 14px; letter-spacing: .3px; }
  .oferta__de { font-size: 21px; }
  .oferta__apoio { font-size: 17px; }
  .s-garantia { padding: 56px 0; }
  .s-garantia__miolo { grid-template-columns: 1fr; padding: 0 20px; text-align: center; gap: 24px; }
  .s-garantia__selo { width: 50%; }
  .s-garantia__titulo { font-size: 28px; }
  .s-garantia p { font-size: 15px; }
  .s-faq { padding: 56px 0; }
  .s-faq__titulo { font-size: 36px; letter-spacing: -1.4px; }
  .sanfona--faq { --antes: 28px; }
  .s-autor { padding: 56px 0; }
  .s-autor__miolo { grid-template-columns: 1fr; gap: 40px; }
  .s-autor__foto { width: 100%; }
  .s-autor__assinatura { width: 47%; }
  .s-autor__texto p { font-size: 15px; }
  .s-rodape { padding: 64px 0; }
  .s-rodape__miolo { grid-template-columns: 1fr; gap: 40px; }
  .s-rodape__logo { width: 74%; justify-self: start; }
}

/* Fundo fixo só no computador (no celular o iOS ignora e pesa) */
@media (min-width: 1025px) { .s-hero__fundo { background-attachment: fixed; } }

@media (prefers-reduced-motion: reduce) {
  html, .carrossel__trilho { scroll-behavior: auto; }
  [data-mover], [data-girar] { transform: none !important; }
}
