/* NM Society · LP de aplicação
   Medidas, cores, fontes e efeitos tirados dos estilos computados da página original no
   Great Pages (tools/estilos.mjs), em 390 px (celular) e 1440 px (desktop).
   Mobile é a base; desktop entra no @media (min-width: 768px). */

:root {
  --dark: #202b25;
  --sand: #e0d4b9;
  --accent: #9dab57;
  --white: #ffffff;
  --off-white: #f9f7f7;
  --ink: #202b25;
  --ink-2: #0f1214;
  --grad: linear-gradient(110deg, #9eaa57 0%, #202b25 100%);
  --glow: drop-shadow(-3px 1px 36px #0c161a);

  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Google Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui: "Poppins", var(--sans);

  --radius: 20px;
  --gutter: 15px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font: 400 16px/1.3 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
strong, b { font-weight: 700; }
.sprite { display: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Títulos ----------
   Gloock tem um peso só. O Great Pages engrossa alguns títulos com um contorno de 0,03em
   na própria cor do texto: é isso que .title--stroke reproduz. */
.title {
  font: 400 31px/1.1 var(--serif);
  letter-spacing: 2px;
  color: var(--white);
}
.title em { font-style: normal; color: var(--accent); }
.title--stroke { -webkit-text-stroke: .03em currentColor; }
.title--dark { color: var(--ink); }
.title--accent { color: var(--accent); }
.title--center { text-align: center; }

/* ---------- Botão ----------
   Hover do original: o gradiente vira verde chapado e o texto fica escuro. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 360px; height: 50px;
  padding: 0 24px;
  border-radius: 50px;
  background: var(--grad);
  color: var(--white);
  font: 500 16px/1.3 var(--ui);
  text-decoration: none;
  filter: drop-shadow(0 7px 15px rgba(15, 18, 20, .2));
  transition: background-color .25s ease-out, color .25s ease-out;
}
.btn:hover { background: var(--accent); color: var(--ink-2); }
.btn:focus-visible { outline: 3px solid var(--off-white); outline-offset: 3px; }
.btn--hero { filter: var(--glow); }

/* ---------- Seções ---------- */
.section { padding: 40px 0; }
.section--sand { background: var(--sand); color: var(--ink); }
.section--dark { background: var(--dark); }
.section--rule { border-top: 1px solid rgba(255, 255, 255, .14); }

/* ---------- 1. Hero ---------- */
.hero { position: relative; height: 788px; background: #0d0d0d; overflow: hidden; }
.hero__media, .hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
}
.hero__content {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 38px var(--gutter) 36px;
  text-align: center;
}
.hero__logo { display: none; }
.hero__title { text-shadow: -3px 1px 36px #0c161a; }
.hero__title em { display: block; }
.hero__logo-mobile { width: 194px; margin-top: auto; margin-bottom: 24px; }
.hero__lead { font-size: 17.6px; line-height: 1.3; color: var(--off-white); margin-bottom: 26px; text-shadow: 0 1px 14px rgba(0,0,0,.6); }

/* ---------- 2. Faixa ---------- */
.strip { background: var(--grad); overflow: hidden; }
.strip__text {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 90px; padding: 14px var(--gutter);
  font: 500 10.5px/1 var(--ui);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
}
.strip__sep { display: none; }

/* ---------- 3. Dor / 5. Nany (título, imagem, texto) ----------
   No celular o título vem antes da foto, como no original. */
.split { display: grid; gap: 26px; }
.split__img { width: 100%; border-radius: var(--radius); }
.split__text { display: grid; gap: 1.3em; }
.pain .split__img { aspect-ratio: 364 / 296; object-fit: cover; }
.pain .split__title { text-align: center; max-width: 300px; justify-self: center; }
.split--quote .split__img { aspect-ratio: 357 / 344; object-fit: cover; object-position: 50% 20%; }

/* ---------- 4. Pra quem é ---------- */
.pain { padding-bottom: 50px; }
.panel {
  margin-top: 60px;
  padding: 58px var(--gutter);
  background: var(--dark);
  color: var(--white);
}
.panel > .title { margin: 0 auto 40px; max-width: 240px; }
.fit { display: grid; gap: 35px; justify-items: center; }
.card {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  background: var(--grad);
  color: var(--white);
}
.fit .card { max-width: 307px; min-height: 133px; padding: 30px 90px 30px 30px; display: flex; align-items: center; }
.fit .card__icon { top: 50%; bottom: auto; right: 26px; width: 36px; height: 36px; transform: translateY(-50%); }
.card__icon { position: absolute; right: 22px; bottom: 20px; width: 31px; height: 31px; color: var(--accent); }
.card--center { display: flex; align-items: center; justify-content: center; text-align: center; }

/* ---------- 6. Jornada ---------- */
.journey { display: grid; gap: 40px; }
.journey__intro { display: grid; gap: 1.3em; }
.journey__intro .title { font-size: 34.1px; margin-bottom: 4px; }

.phases__head {
  display: none;
  font: 500 11.2px/1.7 var(--ui); letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent);
}
.phases__list { display: grid; gap: 14px; }
.phase {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name num" "do do" "out out";
  align-items: center;
  gap: 6px 16px;
  padding: 18px 20px;
  border: 1px solid rgba(157, 171, 87, .45);
  border-radius: 10px;
  background: linear-gradient(110deg, #7b8746 0%, #4b5634 45%, #253027 100%);
}
.phase__name { grid-area: name; font: 400 26px/1 var(--serif); letter-spacing: 1px; }
.phase__num { grid-area: num; font: italic 400 54px/.9 var(--serif); color: #b7c27a; }
.phase__do { grid-area: do; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.phase__out {
  grid-area: out;
  margin-top: 8px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-size: 14px; line-height: 1.4;
}
.phase__out::before { content: "Você sai com: "; color: #b7c27a; }

/* ---------- 7. Time ---------- */
.team-section { padding: 0; }
.panel--gradient { margin: 0; padding: 48px var(--gutter) 60px; background: var(--grad); border-radius: var(--radius); }
.panel--gradient > .title { font-size: 34.1px; }
.team { display: grid; gap: 22px; justify-items: center; }
.member {
  position: relative;
  width: 100%; max-width: 360px; height: 407px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
}
.member img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.member::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,22,26,0) 50%, rgba(12,22,26,.85) 92%);
}
.member p {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 0 38px 40px;
  text-align: center;
  color: var(--off-white);
  text-shadow: -3px 1px 36px #0c161a;
}
.member__badge { position: absolute; top: 22px; right: 22px; z-index: 1; width: 32px; height: 32px; color: var(--white); }

/* ---------- 8. O que não é ---------- */
.not { padding: 56px 0 74px; }
.not .title { font-size: 34.1px; max-width: 300px; margin: 0 auto; }
.not__list { display: grid; gap: 25px; justify-items: center; margin-top: 40px; }
.not .card { max-width: 341px; min-height: 116px; padding: 22px 30px; font-size: 16.8px; }

/* ---------- 9. Como entrar ---------- */
.steps-section { padding: 52px 0 66px; }
.steps-section .title { font-size: 30.8px; }
.steps-wrap { display: flex; flex-direction: column; align-items: center; }
.steps { width: 100%; max-width: 877px; margin: 40px 0 36px; display: flex; flex-direction: column; align-items: center; }
.step {
  width: 100%; max-width: 360px; min-height: 108px;
  display: flex; align-items: center;
  padding: 20px 28px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  font-size: 15.2px; line-height: 1.3;
}
.step > span { display: block; }
.step b { color: var(--accent); }
.step__arrow { width: 32px; height: 32px; margin: 15px 0; color: var(--accent); }
.step__arrow svg { width: 100%; height: 100%; }

/* ---------- 10. FAQ ---------- */
.faq-section { padding: 48px 0 64px; }
.faq { display: grid; gap: 28px; }
.faq__title { font-size: 28px; text-align: center; max-width: 260px; justify-self: center; }
.faq__list { display: grid; gap: 8px; }
.faq__item { border-radius: 12px; background: var(--accent); color: var(--ink-2); overflow: hidden; transition: background-color .1s; }
.faq__item:hover, .faq__item[open] { background: var(--off-white); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 53px; padding: 14px 16px;
  font: 700 16px/1.3 var(--sans);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font: 400 22px/1 var(--sans); flex: none; }
.faq__item[open] summary { border-bottom: 1px solid rgba(15, 18, 20, .15); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 12px 16px 16px; font: 400 13.76px/1.5 "Inter", var(--sans); }

/* ---------- 11. Fechamento ---------- */
.closing {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 90px;
  padding: 56px var(--gutter) 60px;
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--ink);
  text-align: center;
}
.closing .title { font-size: 28px; max-width: 270px; }
.closing p { margin: 20px 0 40px; font-size: 15.2px; }

/* ---------- Rodapé ---------- */
.footer { display: flex; justify-content: center; align-items: center; height: 104px; background: var(--grad); }
.footer img { width: 180px; }

/* ---------- Pop-up do quiz ---------- */
.qmodal {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: #202b25;
  display: none; flex-direction: column;
  overflow: hidden;
}
.qmodal[open] { display: flex; animation: qmodal-in .25s ease-out; }
.qmodal::backdrop { background: rgba(8, 12, 10, .72); }
.qmodal__bar { display: flex; justify-content: flex-end; flex: none; padding: 8px 10px 0; background: #202b25; }
.qmodal__close {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 0; border-radius: 50px;
  background: rgba(255, 255, 255, .08); color: #fff;
  font: 500 14px/1 var(--ui); cursor: pointer;
}
.qmodal__close:hover { background: rgba(255, 255, 255, .16); }
.qmodal__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qmodal__frame { flex: 1; width: 100%; border: 0; background: #202b25; }
/* Página parada por trás enquanto o pop-up está aberto */
.qmodal-open, .qmodal-open body { overflow: hidden; }
@keyframes qmodal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Animações de entrada (iguais às do Great Pages) ---------- */
.js [data-anim] { opacity: 0; }
.js [data-anim].is-in { animation: var(--anim) var(--dur, 1000ms) ease both; }
[data-anim="fade"]  { --anim: anim-fade; }
[data-anim="up"]    { --anim: anim-up; }
[data-anim="right"] { --anim: anim-right; }
[data-anim="pop"]   { --anim: anim-pop; }
@keyframes anim-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes anim-up    { 0% { transform: translateY(120px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes anim-right { 0% { transform: translateX(-200px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes anim-pop {
  0%   { transform: scale(0);   opacity: 0; animation-timing-function: ease-in; }
  38%  { transform: scale(1);   opacity: 1; animation-timing-function: ease-out; }
  55%  { transform: scale(.7);  opacity: 1; animation-timing-function: ease-in; }
  72%  { transform: scale(1);   opacity: 1; animation-timing-function: ease-out; }
  81%  { transform: scale(.84); opacity: 1; animation-timing-function: ease-in; }
  89%  { transform: scale(1);   opacity: 1; animation-timing-function: ease-out; }
  95%  { transform: scale(.95); opacity: 1; animation-timing-function: ease-in; }
  100% { transform: scale(1);   opacity: 1; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; }

  .title { font-size: 44px; }

  .btn { width: 479px; max-width: 100%; height: 66px; font-size: 17px; }

  /* Hero */
  .hero { height: 831px; }
  .hero__media img { object-position: 65% 30%; }
  /* Máscara atrás do texto: a foto nova tem a luminária clara bem atrás do título.
     Escurece só a metade esquerda e some antes de chegar na Nany. */
  .hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(12, 17, 14, .9) 0%, rgba(12, 17, 14, .84) 38%, rgba(12, 17, 14, .5) 52%, rgba(12, 17, 14, 0) 66%);
  }
  .hero__content {
    padding: 99px max(var(--gutter), calc((100% - 1210px) / 2)) 0;
    align-items: flex-start; text-align: left;
  }
  .hero__logo { display: block; width: 289px; margin-bottom: 42px; }
  .hero__logo-mobile { display: none; }
  .hero__title { font-size: 60px; max-width: 615px; margin-bottom: 40px; }
  .hero__lead { font-size: 18px; max-width: 480px; margin-bottom: 44px; text-shadow: none; }

  /* Faixa */
  .strip__text { flex-direction: row; gap: 0; min-height: 91px; font-size: 16px; line-height: 1.7; white-space: nowrap; }
  .strip__sep { display: inline; margin: 0 1.1em; }

  /* Dor e Nany: imagem à esquerda, título e texto à direita */
  .section { padding: 96px 0; }
  .split {
    grid-template-columns: 513px 600px;
    grid-template-areas: "img title" "img text";
    justify-content: center; align-content: center;
    column-gap: 62px; row-gap: 28px;
    max-width: none;
  }
  .split__img { grid-area: img; align-self: center; }
  .split__title { grid-area: title; align-self: end; }
  .split__text { grid-area: text; align-self: start; font-size: 18px; }
  .pain { padding-top: 105px; padding-bottom: 75px; }
  .pain .split__img { width: 513px; height: 420px; aspect-ratio: auto; }
  .pain .split__title { font-size: 48px; text-align: left; max-width: none; justify-self: stretch; }
  .split--quote { grid-template-columns: 423px 622px; column-gap: 75px; }
  .split--quote .split__img { width: 423px; height: 488px; aspect-ratio: auto; }
  .split--quote .split__title { font-size: 40px; }

  /* Pra quem é: faixa escura de borda a borda */
  .panel { margin-top: 137px; padding: 56px var(--gutter) 88px; border-radius: var(--radius); }
  .panel > .title { font-size: 40px; margin-bottom: 64px; max-width: none; }
  .fit .card__icon { top: auto; bottom: 20px; right: 22px; width: 31px; height: 31px; transform: none; }
  .fit { grid-template-columns: repeat(2, 247px); justify-content: center; gap: 36px; }
  .fit .card { width: 247px; height: 183px; max-width: none; padding: 30px 30px 50px; align-items: flex-start; font-size: 18px; }

  /* Jornada */
  .journey__intro { font-size: 18px; }
  .journey__intro .title { font-size: 44px; }
  .phases__head { display: block; padding-bottom: 14px; text-align: center; }
  .phases__head span + span::before { content: "-"; margin: 0 .9em; }

  /* Time */
  .team-section { padding: 42px 0 52px; }
  .panel--gradient { padding: 56px var(--gutter) 90px; }
  .panel--gradient > .title { font-size: 44px; margin-bottom: 52px; }
  .team { grid-template-columns: repeat(3, 365px); justify-content: center; gap: 33px; }
  .member { width: 365px; max-width: none; height: 407px; }
  .member p { font-size: 18px; padding: 0 30px 36px; }

  /* Não é */
  .not { padding: 96px 0 156px; }
  .not .title { font-size: 44px; max-width: none; }
  .not__list { grid-template-columns: repeat(3, 365px); justify-content: center; gap: 34px; margin-top: 60px; }
  .not .card { width: 365px; max-width: none; height: 191px; padding: 28px 36px; font-size: 21px; }

  /* Como entrar */
  .steps-section { padding: 86px 0 77px; }
  .steps-section .title { font-size: 48px; }
  .steps { margin: 60px 0 50px; }
  .step { max-width: 877px; min-height: 120px; padding: 24px 56px; font-size: 19.44px; }
  .step:first-child { min-height: 108px; }
  .step__arrow { margin: 14px 0; }

  /* FAQ */
  .faq-section { padding: 100px 0 104px; }
  .faq { grid-template-columns: 1fr 607px; align-items: center; gap: 48px; max-width: 1080px; }
  .faq__title { font-size: 48px; max-width: 320px; }
  .faq__item summary { min-height: 55px; padding: 14px 20px; font-size: 18px; }
  .faq__item p { padding: 12px 20px 16px; }

  /* Fechamento: cartão claro de borda a borda */
  .closing { margin: 180px 0 0; padding: 72px var(--gutter); min-height: 404px; justify-content: center; }
  .closing .title { font-size: 48px; max-width: 780px; }
  .closing p { font-size: 19.44px; margin: 24px 0 40px; }

  /* Desktop: janela centralizada; celular: tela cheia */
  .qmodal { width: min(720px, calc(100% - 48px)); height: min(860px, calc(100% - 48px)); margin: auto; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }

  .footer { height: 109px; }
  .footer img { width: 210px; }
}

/* A partir de 1100 px cabem os 4 cards numa linha e a tabela de fases em colunas */
@media (min-width: 1100px) {
  .fit { grid-template-columns: repeat(4, 247px); }

  .journey { grid-template-columns: 505px 681px; justify-content: center; align-items: center; gap: 72px; max-width: none; }
  .journey__intro .title { max-width: 440px; }
  .phases__list { gap: 16px; }
  .phase {
    grid-template-columns: 150px 50px 1fr 1px 160px;
    grid-template-areas: "name num do sep out";
    gap: 0 18px;
    height: 102px;
    padding: 0 23px;
  }
  .phase::after { content: ""; grid-area: sep; align-self: center; height: 60%; background: rgba(255,255,255,.35); }
  .phase__name { font-size: 30px; }
  .phase__num { font-size: 64px; }
  .phase__do { font-size: 13px; }
  .phase__out { margin: 0; padding: 0; border: 0; font-size: 13px; text-align: center; }
  .phase__out::before { content: none; }
}

/* Entre 768 e 1100 px os blocos de largura fixa do desktop não cabem: viram fluidos */
@media (min-width: 768px) and (max-width: 1099px) {
  .team, .not__list { grid-template-columns: 1fr; justify-items: center; }
  .member, .not .card { width: 100%; max-width: 420px; }
  .split, .split--quote { grid-template-columns: 1fr 1fr; }
  .pain .split__img, .split--quote .split__img { width: 100%; height: auto; aspect-ratio: 513 / 420; }
  .faq { grid-template-columns: 1fr; }
  .faq__title { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qmodal[open] { animation: none; }
  .js [data-anim] { opacity: 1; animation: none !important; }
}
