/* Home: só o que é desta página. O resto está em site.css. */

/* ---------- primeira dobra ---------- */
.stage { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 640px; }
.js .pin { height: calc(100svh + 130vh); }                     /* a dobra fica presa por 1,3 tela de rolagem */
.js .stage { position: sticky; top: 0; height: calc(100svh - var(--bar)); min-height: 0; }
/* tela baixa demais para o texto e o desenho (celular deitado, janela baixa): home.js marca .unpinned e a dobra
   deixa de prender e de ter altura fixa, para nada ficar cortado; o desenho aparece já pintado */
.js.unpinned .pin { height: auto; }
.js.unpinned .stage { position: relative; top: 0; height: auto; min-height: calc(100svh - var(--bar)); }
#hero { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hero-copy { position: relative; z-index: 1; margin: 0 var(--m); padding: 28px 0 0; background: var(--paper); }
h1 { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -.022em; }
.hero-copy .btn { margin-top: 22px; }
.slot { flex: 1; min-height: 190px; margin: 8px var(--m) 0; }

/* ---------- "A better Tuesday" ---------- */
.tuesday { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: var(--gap) 0 0; }
.tuesday h2 { font-size: clamp(28px, 8.8vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
.tuesday p { margin-top: 18px; color: var(--soft); max-width: 30ch; }

/* ---------- sem JavaScript: imagem fixa do desenho da primeira dobra ---------- */
html:not(.js) .slot { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; }
.still-hero { width: min(100%, 440px); height: auto; transform: translateY(3.85%); }      /* os pés passam um pouco do fio do chão */
html:not(.js) .stage::after { content: ""; position: absolute; left: var(--m); right: var(--m); bottom: 20px; height: 1px; background: var(--ink); }

/* ---------- celular baixo ---------- */
@media (max-height: 700px) and (max-width: 899px) {
  h1 { font-size: 29px; } .hero-copy { padding-top: 18px; } .lede { margin-top: 10px; } .hero-copy .btn { margin-top: 14px; height: 50px; }
}

/* ---------- computador ---------- */
@media (min-width: 900px) {
  .js .stage { top: var(--bar); }
  .hero-body { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: minmax(0, 1fr); margin: 0 var(--m); }   /* a linha não cresce além da dobra: o desenho encolhe em vez de ter o chão cortado */
  .hero-copy { grid-column: 1 / 4; align-self: center; margin: 0 1px 48px; padding: 24px 40px 24px 28px; }
  h1 { font-size: min(clamp(48px, 4.6vw, 68px), 6.5vw - 16px); line-height: 1.08; letter-spacing: -.028em; }   /* o segundo valor só age abaixo de uns 1000 px: mantém as quatro linhas */
  .hero-copy .btn { margin-top: 34px; }
  .slot { grid-column: 4 / 7; margin: 24px 0 0; }

  .tuesday-text { padding: 0 28px; }
  .tuesday h2 { font-size: clamp(64px, 6.6vw, 104px); }
  .tuesday p { font-size: 20px; margin-top: 28px; }
}

/* quem pediu menos movimento: a dobra não prende e os desenhos já aparecem pintados (home.js) */
@media (prefers-reduced-motion: reduce) { .js .pin { height: auto; } .js .stage { position: relative; top: 0; height: auto; min-height: calc(100svh - var(--bar)); } }
