/* ==========================================================================
   LANDING PAGE — khối bán tài liệu (nạp sau styles.css)
   Chỉ chứa các class "lp-" của mặt tiền mới; hero/feature/stat primitives
   vẫn nằm trong styles.css để mỗi file giữ một trách nhiệm.
   ========================================================================== */

/* Nút bị ẩn bằng thuộc tính [hidden] phải thắng display của .btn */
#view-landing [hidden] {
  display: none !important;
}

/* --- Hero: ghi chú nhỏ + 2 thẻ minh hoạ --- */
.lp-hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.lp-hero-note ion-icon {
  color: var(--accent);
  font-size: 18px;
  flex: none;
}

.lp-doc-card {
  padding: 24px;
}

.lp-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lp-chip {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
}

.lp-chip-pdf {
  background: var(--danger-glow);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.lp-doc-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

.lp-doc-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.lp-doc-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.lp-doc-lines span {
  display: block;
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.25));
}

.lp-doc-lines span:nth-child(2) { width: 92%; }
.lp-doc-lines span:nth-child(3) { width: 76%; }
.lp-doc-lines span:nth-child(4) { width: 88%; }

.lp-doc-answer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-glow);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}

.lp-check-card {
  padding: 20px;
}

.lp-check-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.lp-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 9px 0;
}

.lp-check-item + .lp-check-item {
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
}

.lp-check-item ion-icon {
  color: var(--success);
  font-size: 18px;
  flex: none;
}

/* --- Section shell --- */
.lp-section {
  margin-bottom: 80px;
}

.lp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.lp-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.lp-section-sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 8px;
}

/* --- Cách mua: 3 bước --- */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lp-step {
  padding: 32px;
}

.lp-step-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
  background: var(--primary-glow);
  color: var(--primary-light);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.lp-step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.lp-step p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* --- Dải "trong mỗi bộ tài liệu" --- */
.lp-included {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 80px;
}

.lp-included-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.lp-included-chip ion-icon {
  color: var(--success);
  font-size: 18px;
  flex: none;
}

/* --- Kho tài liệu nổi bật --- */
.lp-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.lp-products-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 24px 0;
}

.lp-product {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.lp-product:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--shadow-primary);
}

.lp-product:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lp-product-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.25));
}

.lp-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.lp-product:hover .lp-product-cover img {
  transform: scale(1.05);
}

.lp-product-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(11, 15, 25, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  /* Nền pill cố định tối nên chữ/viền phải cố định sáng — không dùng
     var(--text-primary) vì ở light-theme token này là màu đen (#020617),
     tạo ra chữ đen trên nền đen. */
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.lp-product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.lp-product-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.lp-product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lp-product-price {
  font-weight: 800;
  color: var(--primary-light);
}

.lp-product-sales {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Gói đăng ký & ưu đãi --- */
.lp-sub-band {
  margin-bottom: 80px;
}

.lp-sub-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
}

.lp-sub-card > ion-icon {
  font-size: 34px;
  color: var(--accent);
  flex: none;
}

.lp-sub-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.lp-sub-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.lp-sub-card .btn {
  margin-left: auto;
  flex: none;
}

/* --- FAQ --- */
.lp-faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-faq-item {
  padding: 0;
}

.lp-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.lp-faq-item[open] summary::after {
  content: '–';
}

.lp-faq-item p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* --- CTA cuối --- */
.lp-final-cta {
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.25);
  margin-bottom: 40px;
}

.lp-final-cta h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.lp-final-cta p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* --- Feature icon mở rộng (feat-1..3 nằm trong styles.css) --- */
.feat-4 {
  background: var(--warning-glow);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.feat-5 {
  background: rgba(236, 72, 153, 0.14);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.feat-6 {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .lp-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 968px) {
  .lp-hero-note {
    justify-content: center;
  }
  .lp-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lp-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .lp-sub-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .lp-sub-card .btn {
    margin-left: 0;
  }
  .lp-section,
  .lp-included,
  .lp-sub-band {
    margin-bottom: 56px;
  }
}

@media (max-width: 560px) {
  .lp-products {
    grid-template-columns: 1fr;
  }
  .lp-title,
  .lp-final-cta h2 {
    font-size: 26px;
  }
}
