/* 따라다니는 '활용법' 단추 (대표 11-19) — 홈페이지에서 /routine/ 으로 가는 통로.
   첫 화면을 지나면 오른쪽 아래에 나타나고, 마지막 앱 받기 칸 가까이에서는 숨는다 (js/site.js, 하단 고정 띠와 같은 조건).
   휴대폰에서는 가운데 아래의 '7일 무료로 시작하기' 띠 위로 띄운다. */
.routine-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 89;
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 20px 0 14px; border-radius: 999px;
  background: var(--white); color: var(--navy);
  box-shadow: 0 0 0 2px var(--blue), 0 12px 28px rgba(8, 24, 53, .22);
  font-size: 16px; font-weight: 900; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.routine-fab.show { opacity: 1; pointer-events: auto; transform: none; }
.routine-fab:hover { background: var(--ice); }
.routine-fab .ic {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: var(--white);
}
.routine-fab .ic svg { width: 18px; height: 18px; }
.routine-fab small { font-size: 12px; font-weight: 800; color: var(--muted); }

/* 하단 고정 띠는 폭 760 이하에서만 보인다 (site.css) — 그때 띠 위로 */
@media (max-width: 760px) {
  .routine-fab {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)); right: 14px;
    height: 44px; padding: 0 14px 0 8px; gap: 6px; font-size: 14px;
  }
  .routine-fab .ic { width: 28px; height: 28px; }
  .routine-fab small { display: none; }
}
@media (max-height: 520px) {
  .routine-fab { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .routine-fab { transition: none; }
}
