/*
 * Trang Giới thiệu App (/app/) — template page-gioi-thieu-app.php.
 * Số đo lấy nguyên từ bản thiết kế «Gioi thieu App». Mọi luật gói trong .vapp
 * để không đụng phần còn lại của site, và tự đặt lại margin/cỡ chữ vì CSS
 * chung của theme có định dạng sẵn cho h1/h2/p/img.
 */
.vapp {
  --vapp-fh: 'Be Vietnam Pro', sans-serif;
  --vapp-fhw: 800;
  --vapp-fhls: -0.035em;
  --vapp-chu: #1C1917;
  --vapp-chu-phu: #57534E;
  --vapp-vien: #E7E5E4;
  --vapp-vang: linear-gradient(135deg, #FFD700, #FFA500);
  background: #FFFFFF;
  color: var(--vapp-chu);
  font-family: 'Be Vietnam Pro', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.vapp *, .vapp *::before, .vapp *::after { box-sizing: border-box; }
.vapp h1, .vapp h2, .vapp h3, .vapp p { margin: 0; padding: 0; color: inherit; text-transform: none; }
.vapp img { max-width: 100%; display: block; border: 0; }
.vapp a { color: var(--vapp-chu); text-decoration: none; }

/* ── Dùng chung ── */
.vapp-h1, .vapp-h2, .vapp-h3 {
  font-family: var(--vapp-fh);
  font-weight: var(--vapp-fhw);
  letter-spacing: var(--vapp-fhls);
}
.vapp-lien { white-space: nowrap; }
.vapp-vang { white-space: nowrap; background: var(--vapp-vang); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vapp-nhan { display: flex; align-items: center; gap: 20px; }
.vapp-nhan span { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; color: var(--vapp-chu-phu); line-height: 1.7; }
.vapp-nhan i { width: 80px; min-width: 24px; flex-shrink: 1; height: 1px; background: #D6D3D1; }
.vapp-nhan--dam span { color: var(--vapp-chu); }
.vapp-nhan--dam i { background: var(--vapp-chu); }
.vapp-viet-tay {
  position: absolute; font-family: 'Dancing Script', cursive; color: var(--vapp-chu);
  text-align: left; pointer-events: none;
}
.vapp-logo {
  flex: none; overflow: hidden; background: #FFFFFF; transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(28,25,23,.05), 0 2px 4px rgba(28,25,23,.06), 0 8px 18px rgba(245,158,11,.22);
}
.vapp-logo img { width: 100%; height: 100%; object-fit: cover; }
.vapp-tron {
  flex: none; border-radius: 50%; background: #FFFFFF; border: 1px solid #F1E3BF;
  display: flex; align-items: center; justify-content: center; color: #F59E0B;
}
.vapp-tai { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; justify-items: center; }
.vapp-tai__nut { display: flex; align-items: center; justify-content: center; height: 46px; transition: transform .15s; }
.vapp-tai__nut:hover { transform: translateY(-2px); }
.vapp-tai__nut img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.vapp-cta__anh {
  position: absolute; right: 0; top: 0; bottom: 0; height: 100%; object-fit: cover;
}

/* ═══════════ MÁY TÍNH ═══════════ */
.vapp-pc {
  max-width: 1280px; margin: 0 auto; padding: clamp(12px, 2.5vw, 24px);
  display: flex; flex-direction: column; gap: clamp(14px, 2vw, 20px);
}
.vapp-hero, .vapp-app {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.vapp-hero { gap: 24px; align-items: stretch; }
.vapp-hero__chu {
  padding: clamp(8px,2vw,28px) clamp(4px,2vw,24px) clamp(8px,2vw,28px) clamp(4px,2.5vw,32px);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.vapp-pc .vapp-h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; text-wrap: pretty; }
.vapp-hero__mo-ta { font-size: 17px; line-height: 1.65; color: var(--vapp-chu-phu); max-width: 520px; }
.vapp-pc .vapp-so { display: flex; flex-wrap: wrap; row-gap: 12px; margin-top: 8px; }
.vapp-pc .vapp-so > div { display: flex; flex-direction: column; gap: 4px; padding-right: 32px; }
.vapp-pc .vapp-so > div + div { padding: 0 32px; border-left: 1px solid var(--vapp-vien); }
.vapp-so b { font-family: var(--vapp-fh); font-weight: var(--vapp-fhw); letter-spacing: var(--vapp-fhls); }
.vapp-pc .vapp-so b { font-size: 26px; }
.vapp-so span { color: var(--vapp-chu-phu); }
.vapp-pc .vapp-so span { font-size: 14px; }
.vapp-hero__anh {
  position: relative; min-height: clamp(300px, 40vw, 375px); border-radius: 20px; overflow: hidden;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}
.vapp-hero__anh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.vapp-hero__anh .vapp-viet-tay { top: 40px; left: 16%; font-size: 24px; line-height: 1.35; transform: rotate(-8deg); }

.vapp-app { gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(18px,3vw,26px) clamp(16px,3vw,32px); }
.vapp-app--bm { background: #F7F7F6; border: 1px solid #EEEDEB; border-radius: 20px; }
.vapp-app__anh {
  width: 100%; max-width: 500px; margin: 0 auto; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(28,25,23,.25);
}
.vapp-app__anh img { width: 100%; height: 100%; object-fit: cover; }
.vapp-app__chu { display: flex; flex-direction: column; gap: 16px; }
.vapp-app--bm .vapp-app__chu { padding-right: clamp(0px, 1.5vw, 16px); }
.vapp-app--race .vapp-app__chu {
  padding: clamp(8px,2vw,24px) clamp(4px,2vw,24px) clamp(8px,2vw,24px) clamp(4px,2.5vw,32px);
  justify-content: center;
}
.vapp-app__ten { display: flex; align-items: center; gap: clamp(14px, 2vw, 20px); }
.vapp-pc .vapp-logo { width: clamp(56px, 7vw, 72px); height: clamp(56px, 7vw, 72px); border-radius: 22%; }
.vapp-app--bm .vapp-h2 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.02; }
.vapp-app--race .vapp-h2 { font-size: clamp(38px, 5.5vw, 52px); line-height: 1; }
.vapp-app__khau-hieu {
  font-family: var(--vapp-fh); font-weight: var(--vapp-fhw); letter-spacing: var(--vapp-fhls);
  font-size: clamp(19px, 2.4vw, 24px); line-height: 1.3;
}
.vapp-app__mo-ta { font-size: 16px; line-height: 1.65; color: var(--vapp-chu-phu); }
.vapp-app--race .vapp-app__mo-ta { max-width: 540px; }
.vapp-tinh-nang {
  display: grid; gap: 14px 24px;
  grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 220px), calc(50% - 24px)), 1fr));
}
.vapp-tinh-nang > div { display: flex; gap: 14px; align-items: center; }
.vapp-tinh-nang .vapp-tron { width: 40px; height: 40px; }
.vapp-tinh-nang svg { width: 22px; height: 22px; }
.vapp-tinh-nang > div > span:last-child { font-size: 14px; line-height: 1.5; color: #44403C; text-wrap: pretty; }
.vapp-trich { background: #FBF6EA; border-radius: 14px; padding: 14px 22px; display: flex; gap: 16px; align-items: flex-start; }
.vapp-trich span {
  font-family: var(--vapp-fh); font-weight: var(--vapp-fhw); letter-spacing: var(--vapp-fhls);
  font-size: 48px; line-height: .8; color: #F5B400;
}
.vapp-trich em { font-size: 17px; font-style: italic; line-height: 1.5; color: var(--vapp-chu); }
.vapp-app--race .vapp-tai { max-width: 520px; margin-top: 4px; }

.vapp-cta {
  position: relative; border-radius: 20px; overflow: hidden; min-height: 128px; background: var(--vapp-vang);
}
.vapp-cta .vapp-cta__anh {
  width: 55%; opacity: .9; object-position: 80% center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.vapp-cta__noi-dung {
  position: relative; padding: clamp(20px,3vw,24px) clamp(20px,3.5vw,40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px;
}
.vapp-cta__chu { display: flex; flex-direction: column; gap: 10px; flex: 1 1 360px; min-width: 0; }
.vapp-pc .vapp-h3 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; }
.vapp-cta__chu p { font-size: 15px; color: var(--vapp-chu); }

/* ═══════════ ĐIỆN THOẠI ═══════════ */
.vapp-dt {
  padding: clamp(12px, 3vw, 20px); flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto;
}
.vapp-dt-hero { display: flex; flex-direction: column; gap: 14px; }
.vapp-dt-hero__anh {
  position: relative; height: 220px; border-radius: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.vapp-dt-hero__anh img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.vapp-dt-hero__anh .vapp-viet-tay { top: 22px; left: 18px; font-size: 19px; line-height: 1.3; transform: rotate(-6deg); }
.vapp-dt-hero__chu { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; margin-top: -30px; position: relative; }
.vapp-dt .vapp-h1 { font-size: 32px; line-height: 1.1; text-wrap: pretty; }
.vapp-dt-hero__chu p { font-size: 14px; line-height: 1.6; color: var(--vapp-chu-phu); }
.vapp-dt .vapp-so { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--vapp-vien); padding-top: 12px; }
.vapp-dt .vapp-so > div { display: flex; flex-direction: column; gap: 2px; }
.vapp-dt .vapp-so > div + div { border-left: 1px solid var(--vapp-vien); padding-left: 14px; }
.vapp-dt .vapp-so b { font-size: 19px; }
.vapp-dt .vapp-so span { font-size: 12px; }

.vapp-dt-app {
  border: 1px solid #EEEDEB; border-radius: 16px; padding: 14px; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; background: #FFFFFF;
}
.vapp-dt-app--bm { background: #F7F7F6; }
.vapp-dt-app__dau { display: flex; flex-direction: column; gap: 8px; }
.vapp-dt-nhan { font-size: 8.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--vapp-chu-phu); }
.vapp-dt-app__dau .vapp-app__ten { gap: 12px; }
.vapp-dt .vapp-logo { width: 42px; height: 42px; border-radius: 11px; }
.vapp-dt-app--bm .vapp-h2 { font-size: clamp(22px, 6.6vw, 26px); line-height: 1.05; }
.vapp-dt-app--race .vapp-h2 { font-size: clamp(26px, 8vw, 30px); line-height: 1; white-space: nowrap; }
.vapp-dt-app__than { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); gap: 10px; align-items: stretch; }
.vapp-dt-app__chu { display: flex; flex-direction: column; gap: 10px; min-width: 0; justify-content: center; }
.vapp-dt-app__chu p { font-size: 12.5px; line-height: 1.5; color: var(--vapp-chu-phu); text-wrap: pretty; }
.vapp-dt-tinh-nang { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.vapp-dt-tinh-nang > div { display: flex; gap: 8px; align-items: center; }
.vapp-dt-tinh-nang .vapp-tron { width: 24px; height: 24px; }
.vapp-dt-tinh-nang svg { width: 13px; height: 13px; }
.vapp-dt-tinh-nang > div > span:last-child { font-size: 12.5px; line-height: 1.35; color: var(--vapp-chu); font-weight: 500; text-wrap: pretty; }
.vapp-dt-app__anh {
  border-radius: 12px; overflow: hidden; background: #FBF3E2; width: 100%; min-width: 0;
  aspect-ratio: 3 / 4; align-self: center;
}
.vapp-dt-app__anh img { width: 100%; height: 100%; object-fit: cover; }
.vapp-dt .vapp-tai { gap: 8px; }
.vapp-dt .vapp-tai__nut { height: 42px; }

.vapp-dt-cta { position: relative; border-radius: 16px; overflow: hidden; background: var(--vapp-vang); }
.vapp-dt-cta .vapp-cta__anh {
  width: 60%; object-position: 80% center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%);
}
.vapp-dt-cta__noi-dung { position: relative; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.vapp-dt-nhan--dam { font-size: 9.5px; font-weight: 600; letter-spacing: 1.8px; color: var(--vapp-chu); }
.vapp-dt .vapp-h3 { font-size: 26px; line-height: 1.1; max-width: 62%; }
.vapp-dt-cta__noi-dung p { font-size: 13px; line-height: 1.5; color: var(--vapp-chu); max-width: 62%; }
/* Bản điện thoại dùng <p> cho tiêu đề (trang chỉ có MỘT h1 / một bộ h2 — nằm ở bản
   máy tính), nên phải tự đặt lại màu/khoảng cách mà luật `… p` phía trên gán cho đoạn văn. */
.vapp-dt .vapp-h1, .vapp-dt .vapp-h2, .vapp-dt .vapp-h3 { color: var(--vapp-chu); margin: 0; }

/* Hai bố cục — đổi ở 900px như thiết kế. ĐỂ CUỐI TỆP: đặt sớm hơn thì
   `.vapp-pc { display:flex }` phía trên đè mất lệnh ẩn. */
.vapp-dt { display: none; }
@media (max-width: 899.98px) {
  .vapp-pc { display: none; }
  .vapp-dt { display: flex; }
}
