/* App 6 quỹ trên trang bán sách (24/10/2026): cho khách thấy 350.000đ gồm sách + app.
   Ảnh/video là màn hình app thật cắt từ video hướng dẫn C-2026-0197 (không dùng ảnh AI). */

/* Đầu trang: điện thoại ló sau mép phải bìa sách — bìa giữ nguyên chữ, bấm thì cuộn tới khối app */
.hero-anh { container-type: inline-size; }
.dt-lo { position: absolute; top: 56cqw; right: -26cqw; width: 44cqw; display: block; color: inherit; text-decoration: none; }
.dt-man { position: relative; z-index: 0; display: block; padding: 4px; border-radius: 20px; background: var(--mau-nen-sau);
  box-shadow: 0 0 0 1px var(--the-vien), var(--bong); rotate: 8deg; transition: translate .25s ease; }
.dt-man img { display: block; width: 100%; height: auto; border-radius: 16px; }
.dt-nhan { position: absolute; z-index: 2; right: -4cqw; bottom: 10%; padding: 6px 12px; border-radius: var(--bo-tron);
  background: var(--nut-nen); color: var(--nut-chu); font-size: 0.8125rem; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: var(--bong); }
.dt-lo:focus-visible { outline: none; }
.dt-lo:focus-visible .dt-man { box-shadow: var(--focus-vong); }
@media (hover: hover) { .dt-lo:hover .dt-man { translate: 6px -4px; } }
/* Khổ máy tính bảng: cột ảnh sát mép màn hình (trước đó nhãn xoay sách đã tràn ngang ~40px) → chặn tràn, kéo điện thoại vào */
@media (min-width: 760px) and (max-width: 1099px) { .hero { overflow-x: clip; } .dt-lo { right: -12cqw; } }
@media (max-width: 759px) {
  .hero-anh { width: min(68%, 270px); }
  .dt-lo { top: 62cqw; right: -23cqw; width: 42cqw; }
}

/* Lần đầu vào trang: điện thoại trượt ra từ sau bìa */
@media (prefers-reduced-motion: no-preference) {
  .dt-man { animation: dt-ra .7s cubic-bezier(.2, 1, .3, 1) .9s both; }
  .dt-nhan { animation: dt-hien .4s ease 1.4s both; }
}
@keyframes dt-ra { from { translate: -45% 0; opacity: 0; } }
@keyframes dt-hien { from { opacity: 0; translate: 0 6px; } }

/* Phần 6 tầng: khung điện thoại chạy đoạn quay app + 3 ý + 2 nút cũ */
.app-dt { display: grid; gap: var(--k-6); align-items: center; margin-top: var(--k-8); padding: var(--k-6) var(--k-4);
  border: 1px solid var(--the-vien); border-radius: var(--bo-lon); background: color-mix(in oklch, var(--the-nen) 45%, transparent); scroll-margin-top: var(--k-6); }
@media (min-width: 760px) { .app-dt { grid-template-columns: 260px 1fr; gap: var(--k-8); padding: var(--k-8); } }
.dt-khung { margin: 0 auto; width: min(64%, 260px); }
@media (min-width: 760px) { .dt-khung { width: 100%; } }
.dt-khung-vo { display: block; padding: 6px; border-radius: 30px; background: var(--mau-nen-sau); box-shadow: 0 0 0 1px var(--the-vien), var(--bong); }
.dt-khung video { display: block; width: 100%; height: auto; aspect-ratio: 432 / 750; border-radius: 24px; background: var(--teal-50); }
.dt-khung figcaption { margin-top: var(--k-2); text-align: center; font-size: 0.8125rem; color: var(--mau-chu-phu); }
.app-dt-nhan { display: inline-block; margin: 0 0 var(--k-2); padding: 4px 12px; border: 1px solid var(--mau-nhan-dam); border-radius: var(--bo-tron);
  font-size: 0.8125rem; font-weight: 700; color: var(--mau-nhan); }
.app-dt h3 { margin: 0 0 var(--k-4); font-family: var(--font-tieu-de); font-size: var(--co-chu-lon); line-height: 1.35; color: var(--mau-chu); text-wrap: balance; }
.app-dt-y { list-style: none; margin: 0 0 var(--k-6); padding: 0; display: grid; gap: var(--k-3); }
.app-dt-y li { position: relative; padding-left: 28px; font-size: var(--co-chu-nho); line-height: 1.5; color: var(--mau-chu-phu); }
.app-dt-y li::before { content: ''; position: absolute; left: 4px; top: .35em; width: 12px; height: 15px; background: var(--mau-nuoc);
  clip-path: path('M6 0C6 0 0 7 0 10.5A6 4.5 0 0 0 12 10.5C12 7 6 0 6 0Z'); }
