/* Trang chủ công khai (welcome.html) — chỉ dùng token (.claude/rules/giao-dien.md); cấu trúc theo docs/chien-luoc-marketing.md §5 */
.hp { --hp-w: min(1180px, 100% - 32px); }
.hp h2 { font-family: var(--font-ui); font-weight: 800; letter-spacing: -.03em; }
.hp h3 { font-family: var(--font-ui); font-weight: 800; letter-spacing: -.02em; }
.hp .ic { width: 16px; height: 16px; flex: none; }

/* 1. Hero */
.hp-hero { width: var(--hp-w); margin: 0 auto; padding: 56px 0 28px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hp-hero h1 { font-family: var(--font-ui); font-weight: 800; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.045em; margin: 0 0 18px; }
.hp-hero h1 em { font-family: var(--font-display); font-weight: 400; font-style: italic; letter-spacing: -.02em; padding-right: .08em;
  background: linear-gradient(100deg, var(--accent-strong) 0%, var(--lav) 55%, var(--coral) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hp-lead { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 0 0 24px; max-width: 540px; }
.hp-big { padding: 14px 22px !important; font-size: 15.5px !important; border-radius: var(--r-md); }
.hp-note { display: block; color: var(--muted); margin-top: 14px; font-size: 13px; } .hp-note b { color: var(--ink); }

/* Demo */
.hp-demo .w-win { border-radius: var(--r-lg); }
.hp-stage { position: relative; aspect-ratio: 1 / .82; background: radial-gradient(120% 90% at 50% 20%, var(--panel) 0%, var(--canvas-bg) 70%); overflow: hidden; touch-action: none; }
.hp-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.hp-stage.live > img { opacity: 0; pointer-events: none; }
.hp-3d { position: absolute; inset: 0; }
.hp-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hp-stage-go { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); font-weight: 700; padding: 10px 18px; cursor: pointer; box-shadow: var(--shadow-2); }
.hp-stage-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 12px; font-size: 12px; color: var(--muted); pointer-events: none; white-space: nowrap; }
.hp-ctrl { display: grid; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.hp-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hp-brand input { flex: 1; min-width: 0; font: 800 16px var(--font-ui); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; outline: none; }
.hp-brand input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); } .hp-row > span { width: 64px; flex: none; }
.hp-seg { display: inline-flex; background: var(--hover); border-radius: var(--r-md); padding: 3px; gap: 2px; flex-wrap: wrap; }
.hp-seg button { border: 0; background: none; border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.hp-seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-1); }
.hp-sw { display: flex; gap: 8px; }
.hp-sw button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.hp-sw button.on { box-shadow: 0 0 0 2px var(--ink); }
.hp-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.hp-dims label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); font-weight: 600; } .hp-dims b { color: var(--ink); }
.hp-dims input { width: 100%; accent-color: var(--accent-strong); }

/* 2. Dải tin cậy */
.hp-trust { width: var(--hp-w); margin: 4px auto 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.hp-trust span { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hp-trust .ic { color: var(--accent-ink); }

/* 3. Trước / sau */
.hp-vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.hp-vs-grid > div { border-radius: var(--r-lg); padding: 24px 26px; }
.hp-vs-grid h3 { font-size: 18px; margin: 0 0 14px; }
.hp-vs-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hp-vs-grid li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.45; }
.hp-vs-grid li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; }
.hp-vs-old { background: var(--panel); border: 1px dashed var(--line-strong); color: var(--muted); }
.hp-vs-old li { text-decoration: line-through; text-decoration-color: var(--muted-2); }
.hp-vs-old li::before { background: var(--hover) linear-gradient(45deg, transparent 45%, var(--muted-2) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--muted-2) 45% 55%, transparent 55%); background-size: 10px 10px; background-repeat: no-repeat; background-position: center; }
.hp-vs-new { background: var(--grad-night); color: var(--on-dark); box-shadow: var(--shadow-2); }
.hp-vs-new li::before { background: var(--grad-mint); }
.hp-vs-new li::after { content: ''; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border: solid var(--on-accent); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }

/* 4. 3 bước */
.hp-step-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hp-step-list li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 10px 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-1); }
.hp-step-list img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.hp-step-list b { display: flex; align-items: center; gap: 10px; font-size: 17px; padding: 0 8px; }
.hp-step-list b i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-mint); color: var(--on-accent); font-size: 13px; }
.hp-step-list span { color: var(--muted); font-size: 14.5px; padding: 0 8px 0 46px; line-height: 1.5; }
.hp-video { max-width: 860px; margin: 28px auto 0; } .hp-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }

/* 5. Bộ sưu tập */
.hp-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hp-g { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--g1) 22%, var(--panel)), color-mix(in srgb, var(--g2) 34%, var(--panel))); transition: transform .2s, box-shadow .2s; }
.hp-g img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; transition: transform .35s; }
.hp-g-meta { padding: 0 16px 16px; display: grid; gap: 2px; } .hp-g-meta b { color: var(--ink); font-size: 17px; letter-spacing: -.01em; } .hp-g-meta small { color: var(--ink-3); font-size: 12.5px; }
.hp-g-use { position: absolute; top: 12px; right: 12px; background: var(--ink); color: var(--on-dark); font-size: 12px; font-weight: 700; border-radius: var(--r-pill); padding: 5px 11px; opacity: 0; transform: translateY(-4px); transition: .2s; }
.hp-g:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); } .hp-g:hover img { transform: scale(1.05) rotate(-1.5deg); } .hp-g:hover .hp-g-use, .hp-g:focus-visible .hp-g-use { opacity: 1; transform: none; }

/* 6. Bạn là… */
.hp-tabs { display: inline-flex; gap: 4px; background: var(--hover); border-radius: var(--r-pill); padding: 4px; margin: 14px 0 18px; flex-wrap: wrap; }
.hp-tabs button { border: 0; background: none; border-radius: var(--r-pill); padding: 9px 18px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.hp-tabs button.on { background: var(--sel-bg); color: var(--sel-ink); box-shadow: 0 0 0 1px var(--accent-line); }
.hp-role { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-1); }
.hp-role h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; margin: 0 0 16px; }
.hp-role img { width: 100%; max-width: 360px; justify-self: center; height: auto; }
.hp-role-plan { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 20px 0 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); }
.hp-role-plan span { font-size: 12px; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; } .hp-role-plan b { font-size: 15px; } .hp-role-plan em { font-style: normal; font-weight: 800; margin-left: auto; } .hp-role-plan small { color: var(--muted); font-weight: 600; }

/* 7. Quen tay */
.hp-pro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hp-pro-shot { position: relative; } .hp-pro-shot img { width: 100%; height: auto; display: block; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.hp-hot { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--on-dark); font-size: 12px; font-weight: 700; border-radius: var(--r-pill); padding: 4px 10px 4px 4px; box-shadow: var(--shadow-2); white-space: nowrap; }
.hp-hot i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 11px; }
.hp-chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chips li { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-pill); padding: 7px 14px; font-weight: 600; font-size: 14px; }
.hp-soon { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--lav-soft); color: var(--lav-ink); font-weight: 600; font-size: 14px; }
.hp-soon b { background: var(--grad-lav); color: var(--ink); border-radius: var(--r-pill); padding: 2px 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

/* 8. Khách duyệt */
.hp-share { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hp-share h2 { margin-bottom: 16px; }
.hp-share-vid { margin: 0; max-width: none; } .hp-share-vid video { aspect-ratio: 16 / 9; }

/* 9. Giá */
.hp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; align-items: stretch; }
.hp-plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1); }
.hp-plan h3 { font-size: 20px; margin: 0; } .hp-plan .who { color: var(--muted); margin: 0; font-size: 14px; }
.hp-plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; } .hp-plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.hp-plan .w-ticks { flex: 1; margin-bottom: 8px; } .hp-plan .w-ticks li { font-size: 14px; }
.hp-plan.pop { border: 2px solid var(--accent); box-shadow: 0 20px 48px color-mix(in srgb, var(--accent) 28%, transparent); }
.hp-tag { position: absolute; top: -12px; left: 24px; background: var(--grad-mint); color: var(--on-accent); font-size: 12px; font-weight: 800; border-radius: var(--r-pill); padding: 4px 12px; }
.hp-price-more { color: var(--muted); font-size: 14px; } .hp-price-more b { color: var(--ink); }

/* Trang theo ngành (nganh-*.html) */
.ng-hero h1 { font-size: clamp(32px, 4vw, 52px); }
.ng-art img { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 30px 40px color-mix(in srgb, var(--ink) 18%, transparent)); }
.ng-pts li { font-size: 16px; }
.ng-tpls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ng-tpl { display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 10px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; }
.ng-tpl img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: linear-gradient(var(--field), var(--hover)); border-radius: var(--r-md); margin-bottom: 6px; }
.ng-tpl b { font-size: 14px; } .ng-tpl small { color: var(--accent-ink); font-weight: 700; font-size: 12px; }
.ng-tpl:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
@media (max-width: 980px) { .ng-tpls { grid-template-columns: repeat(2, 1fr); } }

/* Hiệu ứng nhẹ cho thẻ tăng chiều sâu khi cuộn (site.js gắn .rv / .in cho .w-sec) */
@media (max-width: 980px) {
  .hp-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .hp-gal { grid-template-columns: repeat(2, 1fr); }
  .hp-pro, .hp-share, .hp-role { grid-template-columns: 1fr; gap: 22px; }
  .hp-role img { max-width: 240px; order: -1; }
  .hp-plans, .hp-step-list { grid-template-columns: 1fr; }
  .hp-step-list li { flex-direction: column; }
}
@media (max-width: 640px) {
  .hp-vs-grid { grid-template-columns: 1fr; }
  .hp-hot { display: none; }
  .hp-big { width: 100%; }
  .hp-gal { gap: 10px; } .hp-g-meta { padding: 0 12px 12px; } .hp-g-meta b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .hp-g, .hp-g img, .hp-g-use { transition: none; } }
