/* Pílula da Trilha de Saúde Mental — página navegável (mobile first).
   Mesma gramática visual das peças em imagem. */

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/Montserrat-wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gv-petroleo: #074866;
  --gv-petroleo-deep: #05364d;
  --gv-terracota: #e05e3b;
  --gv-cream: #f0e6d6;
  --gv-white: #fff;
  --topo: 54px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: var(--gv-petroleo-deep);
}

body {
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--gv-cream);
  color: var(--gv-petroleo);
}

.shell {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  background: var(--gv-cream);
  box-shadow: 0 0 60px rgba(0, 0, 0, .28);
}

/* ---------- barra fixa ---------- */
.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 520px);
  height: var(--topo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  background: rgba(5, 54, 77, .96);
}
.topbar img { display: block; align-self: center; width: 92px; height: auto; object-fit: contain; }
.dots { display: flex; gap: 7px; }
.dots a {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(240, 230, 214, .32);
  transition: background .2s, transform .2s;
}
.dots a.on { background: var(--gv-terracota); transform: scale(1.25); }

.progress {
  position: fixed;
  z-index: 41;
  top: var(--topo);
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 520px);
  height: 3px;
  background: rgba(240, 230, 214, .2);
}
.progress i { display: block; width: 0; height: 100%; background: var(--gv-terracota); transition: width .12s linear; }

/* ---------- telas ---------- */
.screen {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--topo) + 26px) 26px 84px;
  scroll-snap-align: start;
  scroll-margin-top: var(--topo);
}

.ghost {
  position: absolute;
  right: -16px;
  top: calc(var(--topo) + 6px);
  color: transparent;
  font-size: 172px;
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.14em;
  pointer-events: none;
}

.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.kicker {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kicker span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .72rem;
}

.screen h2 {
  position: relative;
  z-index: 5;
  margin-top: 12px;
  font-size: 1.62rem;
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 700;
}

.list { position: relative; z-index: 5; margin-top: 18px; display: grid; gap: 12px; list-style: none; }
.list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: .93rem;
  line-height: 1.36;
  font-weight: 600;
}
.list li::before {
  content: '';
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  transform: translateY(1px);
  border-radius: 3px;
  background: var(--gv-terracota);
}
.list .tag { font-weight: 800; color: var(--gv-terracota); }

/* ---------- hero ---------- */
.hero { background: var(--gv-terracota); color: var(--gv-petroleo-deep); }
.hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 8%;
  right: -152px;
  width: 208px;
  height: 208px;
  border: 30px solid var(--gv-petroleo);
  border-radius: 50%;
}
.hero .eyebrow { position: relative; z-index: 5; max-width: 84%; color: var(--gv-petroleo-deep); }
.hero h1 {
  position: relative;
  z-index: 5;
  margin-top: 15px;
  max-width: 87%;
  font-size: clamp(2.3rem, 11vw, 2.85rem);
  line-height: .95;
  letter-spacing: -.062em;
  font-weight: 700;
  color: var(--gv-petroleo-deep);
}
.hero h1 em { font-style: normal; color: var(--gv-white); }
.hero .lead {
  position: relative;
  z-index: 5;
  margin-top: 20px;
  max-width: 86%;
  font-size: .97rem;
  line-height: 1.48;
  font-weight: 600;
}
.hero .credit {
  position: relative;
  z-index: 5;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(5, 54, 77, .28);
  max-width: 88%;
  font-size: .74rem;
  line-height: 1.4;
  font-weight: 700;
  color: rgba(5, 54, 77, .84);
}

/* ---------- temas de tela ---------- */
.light { background: var(--gv-cream); color: var(--gv-petroleo); }
.light .kicker { color: var(--gv-terracota); }
.light h2 { color: var(--gv-petroleo-deep); }
.light .ghost { -webkit-text-stroke: 2px rgba(224, 94, 59, .2); }

.dark { background: var(--gv-petroleo); color: var(--gv-cream); }
.dark .kicker { color: var(--gv-terracota); }
.dark h2 { color: var(--gv-white); }
.dark .list li { color: rgba(240, 230, 214, .94); }
.dark .ghost { -webkit-text-stroke: 2px rgba(240, 230, 214, .16); }

.close { background: var(--gv-terracota); color: var(--gv-petroleo-deep); }
.close .kicker, .close h2 { color: var(--gv-petroleo-deep); }
.close .list li::before { background: var(--gv-petroleo); }
.close .ghost { -webkit-text-stroke: 2px rgba(255, 255, 255, .3); }
.close::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: -110px;
  bottom: -130px;
  width: 230px;
  height: 230px;
  border: 27px solid var(--gv-petroleo);
  border-radius: 50%;
}

.quote {
  display: inline-block;
  padding: 1px 8px 3px;
  border-radius: 5px;
  background: var(--gv-terracota);
  color: var(--gv-white);
  font-weight: 700;
}

/* ---------- caixa CNV ---------- */
.cnv {
  position: relative;
  z-index: 5;
  margin-top: 16px;
  padding: 14px 16px 15px;
  background: var(--gv-white);
  border-left: 4px solid var(--gv-terracota);
}
.cnv .eyebrow { color: var(--gv-terracota); font-size: .66rem; }
.cnv ul { margin-top: 10px; display: grid; gap: 9px; list-style: none; }
.cnv li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: .79rem;
  line-height: 1.38;
  font-weight: 500;
  color: rgba(7, 72, 102, .84);
}
.cnv li::before {
  content: '';
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  transform: translateY(-1px) rotate(45deg);
  background: var(--gv-terracota);
}
.cnv li b { font-weight: 800; color: var(--gv-petroleo-deep); }
.cnv li i { font-style: normal; font-weight: 600; color: var(--gv-petroleo); }

/* ---------- apoio ---------- */
.support { position: relative; z-index: 5; margin-top: 16px; display: grid; gap: 10px; }
.support-item { padding: 13px 15px; background: var(--gv-white); border-left: 4px solid var(--gv-petroleo); }
.support-item b { display: block; font-size: .89rem; font-weight: 800; color: var(--gv-petroleo-deep); }
.support-item span { display: block; margin-top: 4px; font-size: .76rem; line-height: 1.38; font-weight: 600; color: rgba(7, 72, 102, .8); }

/* ---------- navegação ---------- */
.next {
  position: absolute;
  z-index: 8;
  left: 26px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gv-petroleo-deep);
  color: var(--gv-cream);
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.close .next, .dark .next { background: var(--gv-white); color: var(--gv-petroleo-deep); }
.next svg { width: 15px; }

/* ---------- rodapé ---------- */
.foot { padding: 26px 26px 30px; background: var(--gv-petroleo-deep); color: var(--gv-cream); }
.foot p { font-size: .93rem; line-height: 1.4; font-weight: 700; color: var(--gv-white); }
.foot .sign {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(240, 230, 214, .28);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(240, 230, 214, .78);
}

@media (min-height: 900px) {
  .screen { min-height: 88svh; }
}

.screen:last-of-type { padding-bottom: 44px; }
