/* ==========================================================
   Breakpoints (mobile-first; base di style.css = smartphone portrait)
   ========================================================== */

/* Ponsel sangat kecil (≤360px) */
@media (max-width: 360px) {
  .stage { padding-left: 12px; padding-right: 12px; }
  .lock__time { font-size: 54px; }
  .rail li { width: 16px; }
  .brief__body { font-size: 16px; }
}

/* Tablet / layar sedang */
@media (min-width: 640px) {
  .stage { padding-top: 28px; }
  .actionbar__inner { flex-direction: row; align-items: center; justify-content: flex-end; gap: 20px; }
  .actionbar .btn { min-width: 260px; }

  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { border-radius: 22px; padding: 22px 22px 20px; }
  .sheet__grab { display: none; }
  .sheet__actions { flex-direction: row-reverse; }
  .sheet__actions .btn { flex: 1; }

  .toast { bottom: calc(100px + var(--safe-b)); }
}

/* Desktop: dua kolom — konteks/feedback di kiri, ponsel di kanan */
@media (min-width: 960px) {
  .stage {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px;
    gap: 64px; align-items: start; padding-top: 40px;
  }
  .brief { position: sticky; top: 92px; padding-top: 8px; }
  .brief--feedback { position: static; }
  .brief__title { font-size: 30px; }

  .device {
    border: 10px solid #15171C; border-radius: 46px;
    box-shadow: 0 30px 60px -30px rgba(21, 23, 28, .45);
  }
  .device__screen {
    height: min(760px, calc(100vh - 220px));
    height: min(760px, calc(100dvh - 220px));
    min-height: 560px; overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
