/* ==========================================================================
   hero.css — primeira dobra e ilustração editorial (folha de rotina)
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 96px) 0 clamp(72px, 8vw, 128px);
  overflow: hidden;
}

/* Grão de papel muito sutil no fundo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 520px at 85% 10%, rgba(216, 237, 147, 0.32), transparent 60%),
    radial-gradient(800px 400px at -10% 100%, rgba(216, 237, 147, 0.18), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
  color: var(--ink-2);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 4px rgba(85, 107, 47, 0.16);
}

.eyebrow--plain {
  padding: 0;
  border: 0;
  background: none;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--fs-micro);
}

.hero-title {
  margin-top: 28px;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-title .line > span {
  display: inline-block;
}

.hero-lede {
  max-width: 34ch;
  margin-top: 28px;
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 36px;
}

.hero-support {
  max-width: 24ch;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-3);
}

.event-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font: 700 1rem/1.3 var(--f-display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.event-info .sep {
  color: var(--olive-soft);
}

/* ---------- Entrada da primeira dobra ---------- */
.js .hero-title .line > span,
.js .hero-lede,
.js .hero-actions,
.js .event-info,
.js .hero .eyebrow {
  opacity: 0;
  transform: translateY(105%);
}

.js .hero-lede,
.js .hero-actions,
.js .event-info,
.js .hero .eyebrow {
  transform: translateY(18px);
}

.js .hero.is-in .hero-title .line > span,
.js .hero.is-in .hero-lede,
.js .hero.is-in .hero-actions,
.js .hero.is-in .event-info,
.js .hero.is-in .eyebrow {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
}

.js .hero.is-in .eyebrow { transition-delay: 0ms; }
.js .hero.is-in .hero-title .line:nth-child(1) > span { transition-delay: 90ms; }
.js .hero.is-in .hero-title .line:nth-child(2) > span { transition-delay: 220ms; }
.js .hero.is-in .hero-lede { transition-delay: 380ms; }
.js .hero.is-in .hero-actions { transition-delay: 480ms; }
.js .hero.is-in .event-info { transition-delay: 580ms; }

/* ==========================================================================
   Ilustração — folha de rotina (editorial, não é interface de app)
   ========================================================================== */
.hero-art {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.art-blob {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
  background: var(--lime);
  opacity: 0.55;
  filter: blur(1px);
}

.sheet {
  position: relative;
  width: min(430px, 92%);
  /* Margem inferior livre: a nota escura pousa sobre papel em branco, sem cobrir conteúdo. */
  padding: 46px 36px 96px;
  border-radius: 6px 6px 18px 18px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 33px,
      rgba(24, 62, 50, 0.055) 33px,
      rgba(24, 62, 50, 0.055) 34px
    ),
    var(--paper);
  box-shadow:
    0 1px 0 rgba(24, 62, 50, 0.05),
    0 30px 60px rgba(16, 44, 35, 0.16),
    0 8px 18px rgba(16, 44, 35, 0.06);
  rotate: -2.2deg;
}

/* Folhas de baixo, para dar profundidade de bloco */
.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #f1efe4;
  box-shadow: 0 10px 30px rgba(16, 44, 35, 0.08);
}

.sheet::before {
  rotate: 3.2deg;
  translate: 8px 6px;
}

.sheet::after {
  rotate: 6deg;
  translate: 14px 12px;
  background: #e9e7da;
}

.sheet-clip {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 116px;
  height: 30px;
  translate: -50% 0;
  border-radius: 8px;
  background: var(--green-800);
  box-shadow: 0 6px 14px rgba(16, 44, 35, 0.25);
}

.sheet-clip::after {
  content: "";
  position: absolute;
  inset: 9px 34px;
  border-radius: 4px;
  background: rgba(216, 237, 147, 0.5);
}

.sheet-kicker {
  font: italic 500 0.95rem/1 var(--f-body);
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.sheet-block {
  margin-top: 26px;
}

.sheet-block h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sheet-checks {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.sheet-checks li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.sheet-checks li.is-done {
  color: var(--ink-3);
}

.sheet-checks .box {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.6px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
}

.sheet-checks li.is-done .box {
  border-color: var(--olive);
  background: var(--lime);
}

.sheet-checks svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--green-800);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
}

.sheet-owners {
  margin: 12px 0 0;
  display: grid;
  gap: 2px;
}

.sheet-owners div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(24, 62, 50, 0.16);
  font-size: 0.92rem;
}

.sheet-owners dt {
  color: var(--ink-2);
}

.sheet-owners dd {
  margin: 0;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--lime-wash);
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.84rem;
}

.sheet-week {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.sheet-week .day {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-3);
}

.sheet-week .day i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.6px solid var(--line-strong);
}

.sheet-week .day.is-on i {
  border-color: var(--green-800);
  background: var(--green-800);
  box-shadow: inset 0 0 0 5px var(--paper);
}

.sheet-underline {
  width: 100%;
  height: 12px;
  margin-top: 12px;
  fill: none;
  stroke: var(--olive-soft);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 210;
  stroke-dashoffset: 0;
}

/* Notas flutuantes */
.note {
  position: absolute;
  margin: 0;
  font: 800 1.08rem/1.2 var(--f-display);
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-m);
}

.note--lime {
  top: 3%;
  right: -6%;
  padding: 18px 20px;
  border-radius: 4px 14px 14px 14px;
  background: var(--lime);
  color: var(--green-800);
  rotate: 4deg;
}

.note--lime::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 54px;
  height: 18px;
  translate: -50% 0;
  rotate: -3deg;
  background: rgba(255, 253, 247, 0.65);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.note--dark {
  bottom: 4%;
  left: 2%;
  max-width: 200px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--green-800);
  color: var(--on-dark);
  rotate: -3deg;
}

.note--dark::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--lime);
}

/* ---------- Animação da ilustração ---------- */
.js .sheet {
  opacity: 0;
  transform: translateY(40px) rotateX(10deg);
}

.js .note {
  opacity: 0;
  transform: translateY(16px) scale(0.92);
}

.js .sheet-checks li.is-done svg {
  stroke-dashoffset: 20;
}

.js .sheet-underline {
  stroke-dashoffset: 210;
}

.js .sheet-week .day.is-on i {
  transform: scale(0.4);
  opacity: 0;
}

.js .hero.is-in .sheet {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out) 0.2s, transform 1.2s var(--ease-out) 0.2s;
}

.js .hero.is-in .note {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js .hero.is-in .note--lime { transition-delay: 1.15s; }
.js .hero.is-in .note--dark { transition-delay: 1.4s; }

.js .hero.is-in .sheet-checks li.is-done svg {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s var(--ease-out);
}

.js .hero.is-in .sheet-checks li:nth-child(1) svg { transition-delay: 0.85s; }
.js .hero.is-in .sheet-checks li:nth-child(2) svg { transition-delay: 1s; }

.js .hero.is-in .sheet-week .day.is-on i {
  transform: none;
  opacity: 1;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.js .hero.is-in .sheet-week .day:nth-child(1) i { transition-delay: 1.2s; }
.js .hero.is-in .sheet-week .day:nth-child(2) i { transition-delay: 1.3s; }
.js .hero.is-in .sheet-week .day:nth-child(3) i { transition-delay: 1.4s; }

.js .hero.is-in .sheet-underline {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s var(--ease-out) 1.5s;
}

/* Profundidade pelo ponteiro (aplicada via JS em --px/--py) */
.hero-art [data-depth] {
  translate: calc(var(--px, 0) * var(--d, 0) * 1px) calc(var(--py, 0) * var(--d, 0) * 1px);
  transition: translate 0.6s var(--ease-out);
}

.sheet[data-depth] { --d: 6; }
.note--lime[data-depth] { --d: 12; }
.note--dark[data-depth] { --d: 16; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 500px;
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .hero-art {
    min-height: 0;
    padding: 40px 0 60px;
  }

  .sheet {
    padding: 40px 22px 84px;
  }

  .sheet-checks li {
    font-size: 0.86rem;
  }

  .note {
    font-size: 0.95rem;
  }

  .note--lime {
    top: 0;
    right: 0;
    padding: 14px 16px;
  }

  .note--dark {
    bottom: 0;
    left: 0;
    max-width: 170px;
    padding: 13px 16px;
  }

  .hero-actions .btn--lg {
    width: 100%;
    justify-content: space-between;
  }

  /* Data e formato empilhados, sem separador solto no início da linha. */
  .event-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .event-info .sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-title .line > span,
  .js .hero-lede,
  .js .hero-actions,
  .js .event-info,
  .js .hero .eyebrow,
  .js .sheet,
  .js .note,
  .js .sheet-week .day.is-on i {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .sheet-checks li.is-done svg,
  .js .sheet-underline {
    stroke-dashoffset: 0;
    transition: none;
  }

  .hero-art [data-depth] {
    translate: none;
  }
}
