/* TRANG GIỚI THIỆU — tệp kiểu RIÊNG, không dùng chung với ứng dụng.
   Ứng dụng là mặt bàn làm việc; trang này là mặt tiền. Dùng chung một tệp thì
   mỗi lần sửa mặt tiền lại phải lo không vỡ mặt bàn.

   Spec: docs/superpowers/specs/2026-09-03-landing.md */

/* 🔴 PHÔNG PHẢI KHAI LẠI Ở ĐÂY. Trang giới thiệu KHÔNG nạp `nen.css` (cố ý —
   mặt tiền và mặt bàn làm việc là hai tệp riêng), nên mọi `@font-face` bên ấy
   không với tới được. Thiếu khối này thì tiêu đề rơi về phông hệ thống và cả
   trang mất đúng cái làm nên tính cách của nó — mà nhìn ảnh chụp mới thấy,
   đọc mã thì không.

   🔴 ĐƯỜNG DẪN PHÔNG CỦA CẢ DỰ ÁN ĐANG SAI, VÀ SAI IM LẶNG. Tệp phông nằm ở
   `public/gd/phong/`, nhưng `nen.css` (ở `public/gd/css/`) viết `url('phong/…')`
   nên trình duyệt đi tìm `/gd/css/phong/…` — không có. Máy chủ không trả 404 mà
   trả `index.html` với mã **200**, nên `@font-face` nhận về một tệp HTML, im
   lặng bỏ qua, và **cả ứng dụng chạy bằng phông hệ thống từ đầu tới giờ**.
   Đo mới thấy: `/gd/css/phong/bitter-700-latin.woff2` trả 55.016 byte (là
   index.html) còn `/gd/phong/bitter-700-latin.woff2` trả 18.572 byte (là phông
   thật). Tệp này ở `gd/` nên đường đúng là `phong/…`.

   Bitter (slab serif) cho tiêu đề · Be Vietnam Pro cho thân — cả hai TỰ LƯU,
   không gọi Google Fonts: một trang mặt tiền chậm là mất người xem ở giây đầu. */
@font-face {
  font-family: 'Bitter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('phong/bitter-600-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Bitter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('phong/bitter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bitter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('phong/bitter-700-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Bitter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('phong/bitter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('phong/bvp-400-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('phong/bvp-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('phong/bvp-600-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('phong/bvp-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* 🔴 CỐ Ý KHÔNG PHẢI NỀN KEM. phatue.vn đang là kem–vàng với serif đỏ sẫm;
     làm một bản kem nhỏ hơn của họ thì người xem đọc ra "bản nhái", và không
     câu chữ nào cứu được ấn tượng ấy. Trang này mở ra trong ĐÊM rồi sáng dần
     thành GIẤY — đúng câu chuyện nó kể: từ chỗ cuốn phả nằm trong bóng tối, ra
     chỗ nó được giữ lại. */
  --dem:      #14100C;
  --dem-nhat: #221B13;
  --rang:     #EFE6D6;
  --giay:     #FAF7F0;
  --giay-sau: #F2EDE2;
  --noi:      #FFFFFF;

  --muc:      #211C16;
  --muc-nhat: #6E6455;
  --vien:     #E2DBCC;

  /* Màu nhấn DUY NHẤT của trang. `--chi` chỉ dùng cho sợi chỉ trực hệ. */
  --chi:      #C4462C;
  --son:      #9E2B18;
  --son-toi:  #7E2011;
  --son-nhat: #FAEDE8;
  --thep:     #8E631D;

  --bo: 14px;
  --ngang: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--giay); color: var(--muc);
  font: 400 17px/1.65 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont,
        'Segoe UI', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  font-weight: 700; line-height: 1.18; letter-spacing: -.012em;
  text-wrap: balance;
}

/* Đi bằng bàn phím phải NHÌN THẤY mình đang ở đâu. */
a:focus-visible, .lp-nut:focus-visible {
  outline: 3px solid var(--chi); outline-offset: 3px; border-radius: 4px;
}
.lp-bo-qua {
  position: absolute; left: -9999px; top: 0;
  background: var(--son); color: #fff; padding: 12px 18px; z-index: 50;
}
.lp-bo-qua:focus { left: 8px; top: 8px; }

/* ---------- thanh trên ---------- */

.lp-thanh {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; background: var(--dem); color: #fff;
  position: sticky; top: 0; z-index: 10;
}
.lp-hieu {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 600;
  font-family: 'Bitter', Georgia, serif;
}
.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lp-nav > a {
  color: #E8E0D2; text-decoration: none; padding: 12px;
  border-radius: 8px; font-size: 15px;
}
.lp-nav > a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ---------- nút ---------- */

.lp-nut {
  display: inline-flex; align-items: center; justify-content: center;
  /* Cỡ chạm tối thiểu 44px — người dùng chính là các cụ trên bảy mươi, bấm
     bằng ngón cái trên màn hình điện thoại. */
  min-height: 48px; padding: 0 24px; border-radius: 10px;
  font: 600 16px/1 'Be Vietnam Pro', sans-serif; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
/* 🪤 KHÔNG phóng to nút khi rê chuột. Trên màn cảm ứng, một cái nút nở ra dưới
   ngón tay là mời bấm nhầm; đổi màu là đủ để nói "bấm được". */
.lp-nut-chinh { background: var(--son); color: #fff; }
.lp-nut-chinh:hover { background: var(--son-toi); }
.lp-nut-vien { border-color: currentColor; color: inherit; }
.lp-nut-vien:hover { background: rgba(255,255,255,.1); }

/* ---------- HERO: đêm ---------- */

.lp-hero {
  background: var(--dem); color: #F3ECE0;
  /* Vệt sáng ấm hắt từ trên, như ánh nến trong gian thờ — cùng thủ pháp với
     màn Gian thờ trong ứng dụng, để mặt tiền và sản phẩm nói cùng một giọng. */
  background-image: radial-gradient(120% 70% at 50% -10%,
                    rgba(196,70,44,.16), transparent 62%);
  padding: 64px 24px 88px;
}
.lp-hero-trong {
  max-width: var(--ngang); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 900px) {
  .lp-hero-trong { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .lp-hero { padding: 88px 32px 104px; }
}

.lp-mao {
  margin: 0 0 20px; color: var(--thep);
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.lp-mao::before {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--thep); vertical-align: middle; margin-right: 12px;
}
.lp-hero h1 {
  margin: 0 0 24px; font-size: clamp(38px, 7vw, 60px); color: #FBF6EC;
}
.lp-dan {
  margin: 0 0 32px; font-size: clamp(17px, 2.1vw, 20px);
  color: #D6CCBC; max-width: 30em;
}
.lp-hang { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-nho { margin: 16px 0 0; font-size: 14px; color: #A99E8D; }

/* ---------- sợi chỉ đỏ ---------- */

.lp-hero-hinh { margin: 0; }
.lp-hero-hinh svg { width: 100%; height: auto; overflow: visible; }
.lp-hero-hinh figcaption {
  margin-top: 20px; font-size: 15px; color: #A99E8D; text-align: center;
}
.lp-hero-hinh figcaption b { color: #E8DFCF; }

.lp-canh path { fill: none; stroke: #4A4136; stroke-width: 1.6; }

/* CHỮ KÝ CỦA TRANG. Xuất hiện đúng ba lần trên toàn trang: ở đây, ở nét dọc
   bên trái khối "Bốn việc chỉ ở đây mới có", và ở gạch chân nút cuối trang.
   Lần thứ tư là nó thôi làm chữ ký và thành hoa văn. */
.lp-chi {
  fill: none; stroke: var(--chi); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(196,70,44,.5));
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: chiVe 1.9s cubic-bezier(.55,.06,.35,.98) .35s forwards;
}
@keyframes chiVe { to { stroke-dashoffset: 0; } }

.lp-o rect {
  fill: #241E17; stroke: #4A4136; stroke-width: 1.4;
}
.lp-o text {
  fill: #E8DFCF; font: 600 15px 'Be Vietnam Pro', sans-serif;
  text-anchor: middle; dominant-baseline: middle;
}
.lp-mo rect { fill: #1C1710; }
.lp-mo text { fill: #7C7263; }

/* Ô trên sợi chỉ sáng lên ĐÚNG LÚC sợi chỉ chạm tới — đó là điều làm hoạt cảnh
   này kể một câu chuyện chứ không phải nhấp nháy cho vui. */
.lp-node-1, .lp-node-2, .lp-node-3, .lp-node-4 {
  opacity: .35; animation: oSang .5s ease forwards;
}
.lp-node-1 { animation-delay: .45s; }
.lp-node-2 { animation-delay: .95s; }
.lp-node-3 { animation-delay: 1.5s; }
.lp-node-4 { animation-delay: 2.05s; }
@keyframes oSang { to { opacity: 1; } }

.lp-node-1 rect, .lp-node-2 rect, .lp-node-3 rect { stroke: var(--chi); }
.lp-toi rect { fill: var(--chi); stroke: var(--chi); }
.lp-toi text { fill: #fff; font-weight: 700; }

/* ---------- rạng: bốn câu nhà nào cũng hỏi ---------- */

.lp-rang {
  background: linear-gradient(180deg, var(--dem) 0%, var(--rang) 42%, var(--giay) 100%);
  padding: 72px 24px 64px;
}
.lp-trong { max-width: var(--ngang); margin: 0 auto; }
.lp-rang h2 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 36px); }
.lp-rang > .lp-trong > p { margin: 0 0 40px; color: var(--muc-nhat); max-width: 46em; }

.lp-hoi { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lp-hoi { grid-template-columns: 1fr 1fr; } }
.lp-hoi li {
  background: var(--noi); border: 1px solid var(--vien); border-radius: var(--bo);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.lp-hoi li:hover {
  transform: translateY(-2px); border-color: var(--chi);
  box-shadow: 0 10px 28px -18px rgba(33,28,22,.5);
}
/* 🔴 CHỈ CON TRỰC TIẾP. `.lp-hoi b` bắt luôn mọi chữ in đậm NẰM TRONG câu văn
   — và một chữ đậm giữa câu bỗng thành tiêu đề serif 19px xuống dòng riêng,
   bỏ lại dấu chấm mồ côi ở dòng sau. Đã xảy ra thật ở khối "Gian thờ"; chỉ
   nhìn ảnh mới thấy, đọc CSS thì không. */
.lp-hoi > li > b {
  display: block; margin-bottom: 8px; font-size: 19px;
  font-family: 'Bitter', Georgia, serif;
}
.lp-hoi p { margin: 0; color: var(--muc-nhat); font-size: 16px; }

/* ---------- giấy: các khối còn lại ---------- */

.lp-khoi { padding: 64px 24px; }
.lp-khoi h2 { margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 36px); }
.lp-khoi > .lp-trong > p { max-width: 46em; }
.lp-khoi-lun { background: var(--giay-sau); }

/* Bốn việc riêng — NÉT CHỈ ĐỎ DỌC bên trái. Lần thứ hai, và là lần cuối trước
   gạch chân ở nút cuối trang. */
.lp-rieng { border-left: 3px solid var(--chi); padding-left: 28px; margin: 32px 0 0; }
.lp-rieng > div { padding: 18px 0; border-bottom: 1px solid var(--vien); }
.lp-rieng > div:last-child { border-bottom: 0; }
.lp-rieng > div > b {
  display: block; font-family: 'Bitter', Georgia, serif; font-size: 19px;
  margin-bottom: 6px;
}
.lp-rieng p { margin: 0; color: var(--muc-nhat); }

.lp-nhan { list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px; }
.lp-nhan li {
  border: 1px solid var(--vien); border-radius: 999px;
  padding: 8px 16px; font-size: 15px; background: var(--noi);
}

.lp-thang {
  margin: 24px 0 0; padding: 20px 24px;
  background: var(--son-nhat); border-left: 3px solid var(--son);
  border-radius: 0 var(--bo) var(--bo) 0;
}
.lp-thang p:last-child { margin-bottom: 0; }

/* ---------- chốt ---------- */

.lp-chot {
  background: var(--dem); color: #F3ECE0;
  background-image: radial-gradient(90% 120% at 50% 120%,
                    rgba(196,70,44,.18), transparent 60%);
  padding: 80px 24px; text-align: center;
}
.lp-chot h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 38px); color: #FBF6EC; }
.lp-chot p { margin: 0 auto 32px; max-width: 40em; color: #D6CCBC; }
.lp-chot .lp-hang { justify-content: center; }

/* Lần thứ BA và cuối cùng của sợi chỉ. */
.lp-nut-chi { position: relative; }
.lp-nut-chi::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: -7px;
  height: 3px; border-radius: 2px; background: var(--chi);
}

/* ---------- chân trang ---------- */

.lp-chan {
  background: var(--muc); color: #C9C0B2;
  padding: 48px 24px; text-align: center; font-size: 15px;
}
.lp-chan img { margin-bottom: 16px; }
.lp-chan b { color: #F0E8DA; }
.lp-chan-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.lp-chan a { color: #C9C0B2; }

/* ---------- cuộn tới đâu hiện tới đó ---------- */

/* 🪤 CHỈ `opacity` VÀ `transform` — hai thứ trình duyệt vẽ lại mà không phải
   tính lại bố cục. Chuyển động nào làm trang nhảy chỗ thì trên điện thoại cũ nó
   giật, và giật ở mặt tiền là mất người xem ngay giây đầu. */
.lp-len { opacity: 0; transform: translateY(10px);
          transition: opacity .5s ease, transform .5s ease; }
.lp-len.hien { opacity: 1; transform: none; }

/* ---------- người say chuyển động ---------- */

@media (prefers-reduced-motion: reduce) {
  /* Hiện thẳng sợi chỉ đã vẽ xong, ô đã sáng — không mất một chữ nào. */
  .lp-chi { animation: none; stroke-dashoffset: 0; }
  .lp-node-1, .lp-node-2, .lp-node-3, .lp-node-4 { animation: none; opacity: 1; }
  .lp-len { opacity: 1; transform: none; transition: none; }
  .lp-hoi li:hover { transform: none; }
  * { scroll-behavior: auto !important; }
}
