/* Primeira tela: usa a área útil do navegador, inclusive com as barras abertas. */
.app:has(.home) { min-height: 0; }
.home {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 540px;
  max-height: 880px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) 14px max(8px, env(safe-area-inset-bottom));
}
.home .brand { width: 119px; height: 39px; margin: 0 auto; flex: none; }
.home-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 12px 10px 0;
  border: 1px solid #e8dfd2;
  border-radius: 20px;
  background: #fbf4e9;
}
.home .hero-title {
  flex: none;
  font-size: clamp(21px, 5.85vw, 25px);
  line-height: 1.07;
  letter-spacing: -.85px;
  margin: 0 0 8px;
}
.home .hero-title.recipes { font-size: clamp(25px, 6.5vw, 28px); }
.home .hero-lead { flex: none; font-size: 11.8px; line-height: 1.25; letter-spacing: -.15px; margin: 0 0 4px; }
.home .hero-copy { flex: none; font-size: 12px; line-height: 1.35; letter-spacing: -.12px; margin: 0 1px 10px; }
.home .hero-copy.recipes { font-size: 13px; line-height: 1.35; margin: 0 2px 11px; }
.home .carousel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.home .review-viewport { flex: 1; min-height: 0; border-radius: 14px; background: #111b13; }
.home .review-track { height: 100%; }
.home .review-card { height: 100%; display: flex; flex-direction: column; background: #111b13; }
.home .review-card::after { display: none; }
.home .review-media { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.home .review-photo,
.home .review-card:first-child .review-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  z-index: auto;
}
.home .review-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  pointer-events: none;
  background: linear-gradient(transparent, #111b13);
}
.home .review-body {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-rows: 29px 1fr 9px;
  gap: 4px;
  padding: 8px 11px 9px;
  flex: 0 0 110px;
  min-width: 0;
  background: #111b13;
}
.home .review-person,
.home .review-card:first-child .review-person { min-height: 0; padding-right: 48px; margin: 0; }
.home .review-person strong { font-size: 14px; line-height: 1.1; letter-spacing: -.2px; }
.home .review-person small { font-size: 9px; line-height: 1.15; margin-top: 3px; }
.home .review-avatar { width: 36px; height: 36px; top: 7px; right: 11px; border-width: 2px; }
.home .review-quote,
.home .review-card:first-child .review-quote,
.home .review-card:not(:first-child) .review-quote {
  font-size: 12px;
  line-height: 1.2;
  min-height: 0;
  padding: 0;
  margin: 0;
  align-self: center;
  letter-spacing: 0;
}
.home .review-disclosure { font-size: 7px; line-height: 9px; letter-spacing: .25px; margin: 0; white-space: nowrap; }
.home .carousel-controls { flex: 0 0 27px; height: 27px; }
.home .carousel-arrow { height: 27px; width: 36px; }
.home .carousel-dot { height: 27px; width: 28px; }
.home-footer { flex: none; }
.home .primary { min-height: 50px; height: auto; padding: 14px 8px; font-size: clamp(11.5px, 3.05vw, 13px); line-height: 1.2; }
.home .micro { font-size: 10px; line-height: 1.35; margin: 7px 0 0; }
.home .resume { font-size: 10px; line-height: 1.3; margin: 5px auto 0; padding: 0 8px; max-width: 100%; overflow-wrap: anywhere; }

@media (max-height: 670px) {
  .home { gap: 6px; }
  .home .brand { width: 105px; height: 33px; }
  .home-panel { padding: 9px 8px 0; border-radius: 17px; }
  .home .hero-title { font-size: clamp(20px, 5.6vw, 23px); line-height: 1.04; margin-bottom: 6px; }
  .home .hero-title.recipes { font-size: clamp(23px, 6.2vw, 26px); }
  .home .hero-lead { font-size: 11px; margin-bottom: 3px; }
  .home .hero-copy { font-size: 11.5px; line-height: 1.3; margin-bottom: 8px; }
  .home .hero-copy.recipes { font-size: 12px; margin-bottom: 8px; }
  .home .review-body { flex-basis: 106px; }
  .home .review-quote,
  .home .review-card:first-child .review-quote,
  .home .review-card:not(:first-child) .review-quote { font-size: 11.5px; }
  .home .primary { min-height: 47px; padding-block: 12px; }
  .home .micro { margin-top: 5px; }
}
@media (max-width: 350px) {
  .home { padding-inline: 10px; }
  .home-panel { padding-inline: 7px; }
  .home .hero-title { font-size: 20px; letter-spacing: -.7px; }
  .home .hero-lead { font-size: 10.5px; }
  .home .hero-copy { font-size: 11px; }
  .home .review-body { padding-inline: 9px; }
  .home .review-person strong { font-size: 13px; }
  .home .review-avatar { right: 9px; }
  .home .micro { font-size: 9px; }
}
@media (min-width: 700px) {
  .home { height: calc(100dvh - 46px); }
}
