/*
  CSS riêng của các trang trong site-pages (D-020) — nạp SAU style.css + blog.css.
  Chỉ thêm những gì trang chủ/blog chưa có. Phần mở đầu dùng lại .blog-head/.crumbs/.blog-intro
  (blog.css); các khối dùng lại .section/.intro/.process/.faq (style.css). Token màu ở :root của style.css.
*/

/* ---------- Đầu trang ---------- */
.page-head h1 { max-width: 22ch; }
.page-actions { margin-top: 28px; }

/* ---------- Thẻ nhóm sản phẩm ---------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.product {
  display: flex; flex-direction: column; gap: 20px;
  padding: 28px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  scroll-margin-top: 96px;
}
.product:target { box-shadow: 0 0 0 2px var(--orange), var(--shadow); }

.product-head { display: grid; gap: 8px; }
.product-head h3 { font-size: 1.4rem; }
.product-brand {
  justify-self: start; padding: 3px 10px; border-radius: 999px;
  background: var(--cream); color: var(--orange); font-size: 13px; font-weight: 600;
}
.product-brand:empty { display: none; }
.product-for { color: var(--muted); max-width: 52ch; }

.product-label {
  margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--orange);
}

.product-cols { display: grid; gap: 18px; }
.product-signs {
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--story); color: var(--ink);
}

.product-helps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.product-helps li { position: relative; padding-left: 26px; }
.product-helps li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage); color: var(--green); font-size: 11px; font-weight: 700;
}

.product-tiers {
  display: grid; gap: 10px; padding-top: 18px;
  border-top: 1px dashed var(--line);
}
/* 8.5rem vừa nhãn dài nhất đang dùng ("Đang thử nghiệm"); đặt cứng để mô tả các hàng thẳng cột. */
.product-tiers > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; align-items: baseline; }
.product-tiers dt {
  justify-self: start; padding: 2px 10px; border-radius: 999px;
  background: var(--sage); color: var(--green); font-size: 13px; font-weight: 600;
}
.product-tiers dd { color: var(--muted); }

.product-done { margin-top: auto; padding-top: 4px; font-size: 14px; color: var(--muted); }
.product-done .product-label { display: inline; margin: 0 6px 0 0; }

/* ---------- Phương án mở: giải quyết chính bài toán của khách ---------- */
.product-open {
  margin-top: 22px; padding: 36px; border-radius: var(--r-lg);
  background: var(--dark); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start;
  scroll-margin-top: 96px;
}
.product-open .eyebrow { color: #f3b197; }
.product-open h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; }
.product-open-text > p[data-cms] + p, .product-open-text h3 + p { margin-top: 14px; color: var(--pale); max-width: 52ch; }

.product-open-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: open; }
.product-open-steps li {
  counter-increment: open;
  display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 12px; row-gap: 2px;
  padding: 14px 16px; border: 1px solid var(--dark-line); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
}
.product-open-steps li::before {
  content: counter(open, decimal-leading-zero); grid-row: span 2; align-self: start;
  justify-self: start; padding: 3px 9px; border-radius: 999px;
  background: rgba(243, 177, 151, .14); color: #f3b197; font-size: 13px; font-weight: 600;
}
.product-open-steps b { font-weight: 600; }
.product-open-steps span { color: var(--pale); font-size: .95rem; }

/* ---------- Màn hẹp ---------- */
@media (max-width: 1000px) {
  .products, .product-open { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  .product { padding: 20px; }
  .product-tiers > div { grid-template-columns: 1fr; gap: 4px; }
  .product-open { padding: 22px; gap: 22px; }
}
