/* Sanot — BIO PRIME
   Debaixo do poste: a noite azul da capa da Quebrada de Baixo, o verde do muro e uma única luz,
   a de sódio, que acende na Hero (ele aponta pra ela) e no CTA final. */

:root {
  --noite: #1C2230;      /* fundo: o céu da capa da QDB */
  --noite-2: #262E3F;    /* superfícies e placeholders sobre a noite */
  --cal: #EFEBE1;        /* texto sobre a noite (13.4:1) */
  --nevoa: #A9B0BE;      /* apoio sobre a noite (7.3:1) */
  --muro: #8E9880;       /* cenas claras: o muro verde da capa */
  --muro-tinta: #1C2230; /* texto sobre o muro (5.3:1) */
  --sodio: #F4B640;      /* a luz do poste: só ação. Noite sobre ela 8.8:1 */
  --sodio-fundo: #DDA02C;/* sódio pressionado */
  --barro: #C9733A;      /* a pele da ilustração: anos grandes sobre a noite (4.5:1) */

  --f-display: 'Smooch Sans', 'Arial Narrow', sans-serif;
  --f-texto: 'Onest', system-ui, sans-serif;

  --motion-instant: 80ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-scene: 480ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --shift-cta: 12px;
  --press-scale: 0.98;

  --gutter: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --shift-cta: 0px;
    --press-scale: 1;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--noite);
  color: var(--cal);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
}

h2 { font-size: 40px; }

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--sodio);
  outline-offset: 3px;
  border-radius: 4px;
}
.muro :focus-visible { outline-color: var(--noite); }

.pular {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 40;
  padding: 10px 14px;
  background: var(--sodio);
  color: var(--noite);
  font-weight: 600;
  border-radius: 8px;
}
.pular:focus { top: calc(12px + var(--safe-top)); }

.marco-scroll {
  position: absolute;
  top: 160px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pagina {
  max-width: 560px;
  margin: 0 auto;
  background: var(--noite);
}

/* ---------- CENA 1 · Hero ---------- */

.hero { position: relative; }

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  max-height: 78svh;
  overflow: hidden;
  background: var(--noite-2);
}

.hero-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 0;
}

/* esfuma o pé da foto na noite pra o nome subir por cima dela */
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to bottom, rgb(28 34 48 / 0), rgb(28 34 48 / 0.72) 55%, var(--noite));
  pointer-events: none;
}

/* a luz de sódio: aceso sem JS e com reduced motion; o pulso de lâmpada esquentando é enhancement */
.luz {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
}

.luz-hero {
  inset: 0;
  background: radial-gradient(70% 52% at 22% 0%, rgb(244 182 64 / 0.5), rgb(244 182 64 / 0.12) 55%, transparent 78%);
}

@keyframes acende {
  0%   { opacity: 0; }
  14%  { opacity: 0.55; }
  24%  { opacity: 0.12; }
  46%  { opacity: 0.8; }
  58%  { opacity: 0.4; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .luz-hero { animation: acende 1100ms var(--ease-standard) 260ms both; }
}

.hero-texto {
  position: relative;
  z-index: 1;
  margin-top: -128px;
  padding: 0 var(--gutter) 40px;
}

.nome {
  font-weight: 900;
  font-size: clamp(104px, 34vw, 168px);
  line-height: 0.78;
  letter-spacing: -0.01em;
  color: var(--cal);
  text-shadow: 0 2px 24px rgb(28 34 48 / 0.6);
}

.hero-linha {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 600;
}

.hero-apoio {
  margin-top: 6px;
  max-width: 34ch;
  color: var(--nevoa);
}

.hero-pe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 24px;
}

.perfil {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 600;
  text-decoration: none;
}

.perfil-foto {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cal);
  box-shadow: 0 0 0 2px var(--noite), 0 0 0 3px var(--nevoa);
}

.ancora {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 4px;
  color: var(--nevoa);
  font-size: 15px;
  text-underline-offset: 4px;
}

/* ---------- cenas ---------- */

.cena { padding: 48px var(--gutter); }

.noite { background: var(--noite); color: var(--cal); }

.muro {
  background: var(--muro);
  color: var(--muro-tinta);
}

.lead {
  margin-top: 12px;
  max-width: 38ch;
}
.noite .lead { color: var(--nevoa); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--f-texto);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}
.btn:active { transform: scale(var(--press-scale)); }

.btn-contorno {
  margin-top: 28px;
  border: 1.5px solid var(--cal);
  color: var(--cal);
}
.btn-contorno:active { background: var(--cal); color: var(--noite); }

.btn-sodio {
  width: 100%;
  min-height: 56px;
  background: var(--sodio);
  color: var(--noite);
  font-size: 17px;
}
.btn-sodio:active { background: var(--sodio-fundo); }

@media (hover: hover) and (pointer: fine) {
  .btn-contorno:hover { background: rgb(239 235 225 / 0.1); }
  .btn-sodio:hover { background: var(--sodio-fundo); }
}

/* ---------- CENA 2 · Kátharsis ---------- */

.katharsis { padding-top: 24px; }

.clipe {
  position: relative;
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--noite-2);
}

.clipe-fachada {
  display: block;
  height: 100%;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.clipe-fachada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.clipe-fachada:active img { transform: scale(var(--press-scale)); }

.clipe-play {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cal);
  color: var(--noite);
  font-weight: 600;
  font-size: 15px;
}

.clipe iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ficha {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}
.ficha div {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  font-size: 15px;
}
.ficha dt { color: var(--nevoa); }
.ficha dd { margin: 0; }

/* ---------- CENA 3 · Quebrada de Baixo ---------- */

.qdb-capa {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 28px;
  border-radius: 6px;
  background: var(--noite-2);
  box-shadow: 0 18px 40px -18px rgb(28 34 48 / 0.7);
}

.faixas {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgb(28 34 48 / 0.28);
}

.faixa {
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 0;
  border-top: 1px solid rgb(28 34 48 / 0.28);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--motion-fast) var(--ease-standard);
}
.faixa:active { background: rgb(28 34 48 / 0.1); }

.faixa-n {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.faixa-txt strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.faixa-txt small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
}

.faixa .fa-youtube { font-size: 18px; }

.bonus .faixa-n { font-size: 22px; }

/* ---------- CENA 4 · episódios solo ---------- */

.episodios {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 14px;
  margin: 28px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.episodios::-webkit-scrollbar { display: none; }
.episodios li { scroll-snap-align: start; }

.ep {
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ep img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: var(--noite-2);
  transition: transform var(--motion-fast) var(--ease-standard);
}
.ep:active img { transform: scale(var(--press-scale)); }

.ep-n {
  display: block;
  margin-top: 12px;
  color: var(--nevoa);
  font-size: 14px;
}
.ep strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- CENA 5 · Illuminã ---------- */

.illumina { padding-top: 16px; }

.linha-tempo {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.linha-tempo a {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.linha-tempo a:active .obra { color: var(--sodio); }

.ano {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--barro);
}
.obra {
  text-decoration: underline;
  text-decoration-color: rgb(239 235 225 / 0.35);
  text-underline-offset: 4px;
  transition: color var(--motion-fast) var(--ease-standard);
}

/* ---------- CENA 6 · na rua ---------- */

.fluxo {
  margin: 28px 0 0;
  max-width: 340px;
}
.fluxo img {
  width: 100%;
  border-radius: 6px;
  background: var(--noite-2);
}
.fluxo figcaption {
  margin-top: 8px;
  font-size: 14px;
}

.links-rua {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.link-linha {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  font-weight: 600;
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
}
.link-linha i { width: 20px; text-align: center; }
.link-linha:active { opacity: 0.7; }

/* ---------- CENA 7 · CTA final ---------- */

.fim {
  position: relative;
  overflow: hidden;
  padding-top: 112px;
  padding-bottom: 40px;
  background: var(--noite);
  text-align: center;
}

/* o braço vem da borda até a lâmpada, no meio da cena */
.poste-braco {
  position: absolute;
  top: 26px;
  left: 0;
  width: calc(50% - 16px);
  height: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--nevoa);
}
.poste {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 48px;
  height: 16px;
  translate: -50% 0;
  fill: var(--nevoa);
}

.luz-fim {
  top: 32px;
  left: 50%;
  width: 600px;
  height: 560px;
  translate: -50% 0;
  background: linear-gradient(to bottom, rgb(244 182 64 / 0.42), rgb(244 182 64 / 0.16) 50%, rgb(244 182 64 / 0.05) 80%, transparent);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .js .fim:not(.is-acesa) .luz-fim { opacity: 0; }
  .js .fim.is-acesa .luz-fim { animation: acende 1100ms var(--ease-standard) both; }
}

.fim h2,
.fim .lead,
.fim .btn,
.fim .tattoo,
.fim .redes { position: relative; }

.fim h2 { font-size: 46px; max-width: 10ch; margin-inline: auto; }
.fim .lead { margin-inline: auto; max-width: 30ch; }

.fim .btn-sodio { margin-top: 28px; }

.tattoo {
  margin-top: 20px;
  color: var(--nevoa);
  font-size: 15px;
}
.tattoo a {
  display: inline-block;
  padding: 12px 0;
  color: var(--cal);
  font-weight: 600;
  text-underline-offset: 4px;
}

.redes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 28px;
}
.redes a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--noite-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--motion-fast) var(--ease-standard);
}
.redes a:active { background: #323B50; }

/* ---------- rodapé ---------- */

.rodape {
  padding: 28px var(--gutter) calc(32px + var(--safe-bottom));
  border-top: 1px solid var(--noite-2);
  text-align: center;
  color: var(--nevoa);
  font-size: 13px;
}

.credito {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin: 18px auto 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  color: var(--cal);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.credito-txt strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.selo-b2 {
  --seal-ink: currentColor;
  --seal-accent: var(--sodio);
  --seal-ring: 0.4 1.4;
  --seal-font: var(--f-texto);
  flex: none;
  width: 72px;
  height: 72px;
  overflow: visible;
  transition: rotate 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.selo-borda,
.selo-anel { fill: none; stroke: var(--seal-ink); }
.selo-borda { stroke-width: 1; }
.selo-anel { stroke-width: 0.7; stroke-dasharray: var(--seal-ring); opacity: 0.75; }
.selo-texto {
  fill: var(--seal-ink);
  font-family: var(--seal-font);
  font-size: 6.3px;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.selo-b { fill: var(--seal-ink); }
.selo-acento { fill: var(--seal-accent); }

.credito:active .selo-b2 { rotate: -10deg; }

.selo-giro {
  transform-box: view-box;
  transform-origin: 50px 50px;
}
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-flutua {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .selo-giro { animation: selo-gira 24s linear infinite; }
  .selo-b2 { animation: selo-flutua 4.8s ease-in-out infinite; }
  .selo-b2.is-still,
  .selo-b2.is-still .selo-giro,
  .is-page-hidden .selo-b2,
  .is-page-hidden .selo-giro { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .credito:active .selo-b2 { rotate: none; }
}

/* ---------- CTA flutuante (Regra do CTA) ---------- */

.cta-flutuante {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--sodio);
  color: var(--noite);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 28px -8px rgb(10 12 18 / 0.7);
  -webkit-tap-highlight-color: transparent;
  translate: -50% var(--shift-cta);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--motion-standard) var(--ease-exit),
    translate var(--motion-standard) var(--ease-exit),
    scale var(--motion-fast) var(--ease-standard),
    visibility 0s linear var(--motion-standard);
}
.cta-flutuante.is-visivel {
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--motion-emphasis) var(--ease-enter),
    translate var(--motion-emphasis) var(--ease-enter),
    scale var(--motion-fast) var(--ease-standard),
    visibility 0s;
}
.cta-flutuante:active { scale: var(--press-scale); background: var(--sodio-fundo); }
.cta-flutuante:focus-visible { outline-color: var(--cal); }

/* ---------- telas maiores ---------- */

@media (min-width: 560px) {
  body { background: #151A25; }
  .pagina { box-shadow: 0 0 0 1px var(--noite-2); }
}

@media (max-width: 340px) {
  :root { --gutter: 16px; }
  h2 { font-size: 36px; }
  .redes { grid-template-columns: 1fr; }
  .ficha div { grid-template-columns: 1fr; gap: 0; }
}
