/* ═══════════════════════════════════════════════════════════════════════════
   phanmemscale.com — cùng ngôn ngữ thiết kế với app SCALE:
   nền tối, chữ trắng, logo trắng–đen, điểm nhấn cam (như dấu ▶ / chuông trong app),
   font Nunito (OFL — assets/font/Nunito-OFL.txt).
   ═══════════════════════════════════════════════════════════════════════════ */
@font-face {
    font-family: "Nunito"; src: url("font/Nunito.ttf") format("truetype");
    font-weight: 200 1000; font-display: swap;
}
:root {
    --nen: #0f1115; --nen-2: #15181d; --the: #1a1e25; --the-2: #21262f;
    --vien: #262c36; --chu: #f2f4f7; --chu-2: #d0d4da; --mo: #8d95a1;
    --cam: #fdba74; --cam-dam: #f59e0b; --xanh: #86efac; --xanh-duong: #7cb4ff; --do: #fca5a5;
    --bo: 14px; --bo-lon: 22px; --rong: 1180px;
    --bong: 0 24px 60px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: "Nunito", "Segoe UI", system-ui, sans-serif; font-weight: 600;
    background: var(--nen); color: var(--chu); font-size: 17px; line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 800; color: var(--chu); }
.khung { width: min(var(--rong), 100% - 40px); margin-inline: auto; }
.mo { color: var(--mo); }
.cam { color: var(--cam); }

/* ── Nút ─────────────────────────────────────────────────────────────────── */
.nut {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 12px; font-weight: 800; font-size: 17px;
    border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
    white-space: nowrap; cursor: pointer;
}
.nut:hover { transform: translateY(-1px); }
.nut svg { width: 20px; height: 20px; flex: none; }
.nut--chinh { background: #f2f2f2; color: #0b0d10; }
.nut--chinh:hover { background: #fff; }
.nut--vien { border-color: var(--vien); background: var(--the); color: var(--chu); }
.nut--vien:hover { border-color: var(--mo); }
.nut--nho { padding: 13px 24px; font-size: 18px; }

/* ── Đầu trang ───────────────────────────────────────────────────────────── */
.dau {
    position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
    background: rgba(15, 17, 21, .82); border-bottom: 1px solid var(--vien);
}
.dau .khung { display: flex; align-items: center; gap: 28px; height: 104px; }
.logo { display: flex; align-items: center; gap: 16px; font-weight: 900; font-size: 38px; letter-spacing: .12em; }
.logo img { width: 86px; height: 86px; filter: invert(1); }
@media (max-width: 600px) { .logo { font-size: 28px; gap: 10px; } .logo img { width: 62px; height: 62px; } }
.menu { display: flex; gap: 32px; margin-left: auto; font-weight: 800; font-size: 19px; color: var(--chu-2); }
.menu a:hover { color: var(--chu); }
.dau .nut { margin-left: 8px; }
@media (max-width: 1160px) { .menu { gap: 20px; font-size: 17px; } .logo { font-size: 32px; } .logo img { width: 72px; height: 72px; } }
.nut-menu { display: none; margin-left: auto; background: none; border: 1px solid var(--vien); color: var(--chu);
            border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 900px) {
    .menu { display: none; position: absolute; top: 104px; left: 0; right: 0; flex-direction: column; gap: 0;
            background: var(--nen-2); border-bottom: 1px solid var(--vien); padding: 8px 20px 16px; }
    .menu a { padding: 12px 0; border-bottom: 1px solid var(--vien); }
    .menu.mo-ra { display: flex; }
    .nut-menu { display: inline-grid; place-items: center; }
    .dau .nut { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero__luoi { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero__hinh .hinh { width: 100%; height: auto; display: block; }
.hero::before {
    content: ""; position: absolute; inset: -40% -10% auto; height: 640px; z-index: -1;
    background: radial-gradient(closest-side, rgba(253, 186, 116, .16), transparent 70%);
}
.hero h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.12; font-weight: 900; margin: 0 0 20px; letter-spacing: -.01em; }
.hero h1 .cam { color: var(--cam); }
.icon-cuoi { display: inline-block; height: 1.4em; width: auto; vertical-align: -0.3em; margin-left: .06em; }
.hero p.mo-ta { font-size: clamp(17px, 1.8vw, 20px); color: var(--chu-2); margin: 0 0 32px; }
.hero .hang-nut { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 900px) {
    .hero { padding: 40px 0 56px; text-align: center; }
    .hero__luoi { grid-template-columns: 1fr; gap: 20px; }
    .hero__hinh { order: -1; max-width: 520px; margin: 0 auto; }
    .hero .hang-nut { justify-content: center; }
}

/* Trước / sau */
.so-sanh { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.so-sanh__o { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo-lon); padding: 18px 26px 28px; }
.so-sanh__o .hinh { width: 100%; height: auto; display: block; margin-bottom: 8px; }
.so-sanh__o h3 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.so-sanh__o--truoc h3 { color: var(--do); }
.so-sanh__o--sau { border-color: var(--cam); box-shadow: 0 0 0 1px var(--cam), var(--bong); }
.so-sanh__o--sau h3 { color: var(--xanh); }
.so-sanh__o p { color: var(--chu-2); }
@media (max-width: 760px) { .so-sanh { grid-template-columns: 1fr; } }
.hero .nut { padding: 18px 30px; font-size: 20px; border-radius: 16px; }
.hero .nut svg { width: 24px; height: 24px; }
@media (min-width: 901px) and (max-width: 1240px) { .hero .nut { padding: 15px 20px; font-size: 17px; } .hero .nut svg { width: 20px; height: 20px; } }
.hero .phu { margin-top: 18px; font-size: 16px; color: var(--mo); }

/* ── Khối chung ──────────────────────────────────────────────────────────── */
.khoi { padding: 96px 0; }
.khoi--toi { background: var(--nen-2); border-block: 1px solid var(--vien); }
.tieu-de { text-align: center; max-width: 940px; margin: 0 auto 52px; }
.tieu-de .tren { color: var(--cam); font-weight: 900; letter-spacing: .1em; font-size: clamp(20px, 2.2vw, 26px); text-transform: uppercase; }
.tieu-de h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; font-weight: 900; margin: 10px 0 14px; }
.tieu-de p { color: var(--chu-2); }

.chip-hang { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { padding: 10px 18px; border-radius: 999px; background: var(--the); border: 1px solid var(--vien); font-weight: 800; }

/* Các bước */
.buoc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: b; }
.buoc > div { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); padding: 26px 22px; position: relative; }
.buoc > div::before {
    counter-increment: b; content: counter(b); display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%; background: var(--cam); color: #0b0d10; font-weight: 900; margin-bottom: 14px;
}
.buoc h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.buoc p { color: var(--chu-2); font-size: 15.5px; }
@media (max-width: 900px) { .buoc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .buoc { grid-template-columns: 1fr; } }

/* Lưới tính năng */
.luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.the { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); padding: 26px; }
.the .bt { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--the-2); margin-bottom: 16px; }
.the .bt svg { width: 24px; height: 24px; }
.the h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.the p { color: var(--chu-2); font-size: 15.5px; }
@media (max-width: 900px) { .luoi { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .luoi { grid-template-columns: 1fr; } }

/* Ảnh minh hoạ xen kẽ */
.xen { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.xen:last-child { margin-bottom: 0; }
.xen--dao { grid-template-columns: 7fr 5fr; }
.xen--dao .xen__chu { order: 2; }
.xen__chu h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; line-height: 1.25; margin-bottom: 14px; }
.xen__chu p { color: var(--chu-2); margin-bottom: 14px; }
.xen__chu ul { list-style: none; display: grid; gap: 10px; }
.xen__chu li { padding-left: 30px; position: relative; color: var(--chu-2); }
.xen__chu li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 0; height: 0;
    border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--cam); }
.xen__anh { border-radius: var(--bo-lon); overflow: hidden; border: 1px solid var(--vien); background: var(--the); }
.xen__anh .hinh { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
    .xen, .xen--dao { grid-template-columns: 1fr; gap: 26px; margin-bottom: 64px; }
    .xen--dao .xen__chu { order: 0; }
}

/* Cam kết / an toàn */
.cam-ket { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cam-ket .the { display: flex; gap: 16px; }
.cam-ket .the .bt { flex: none; margin: 0; }
@media (max-width: 760px) { .cam-ket { grid-template-columns: 1fr; } }

/* Bảng giá */
.gia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.goi { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo-lon); padding: 30px 24px; display: flex; flex-direction: column; }
.goi--noi { border-color: var(--cam); box-shadow: 0 0 0 1px var(--cam), var(--bong); position: relative; }
.goi--noi::before { content: "Khuyên dùng"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--cam); color: #0b0d10; font-size: 13px; font-weight: 900; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.goi h3 { font-size: 18px; font-weight: 800; color: var(--chu-2); }
.goi .tien { font-size: 34px; font-weight: 900; margin: 8px 0 2px; }
.goi .thang { color: var(--mo); font-size: 14px; margin-bottom: 20px; }
.goi ul { list-style: none; display: grid; gap: 8px; margin-bottom: 26px; color: var(--chu-2); font-size: 15px; }
.goi li::before { content: "✓  "; color: var(--xanh); font-weight: 900; }
.goi .nut { margin-top: auto; }
.thu { margin-top: 26px; text-align: center; color: var(--chu-2); }
@media (max-width: 1000px) { .gia { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gia { grid-template-columns: 1fr; } }

/* Affiliate */
.aff { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
       background: linear-gradient(135deg, var(--the), var(--nen-2)); border: 1px solid var(--vien);
       border-radius: var(--bo-lon); padding: 44px; }
.aff h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.2; margin-bottom: 14px; }
.aff p { color: var(--chu-2); margin-bottom: 10px; }
.aff__hinh .hinh { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .aff { grid-template-columns: 1fr; padding: 30px; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); padding: 18px 22px; }
.faq summary { font-weight: 800; font-size: 17.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cam); font-weight: 900; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--chu-2); margin-top: 12px; }

/* Lời kêu gọi cuối + liên hệ */
.cuoi { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cuoi h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.cuoi p { color: var(--chu-2); margin-bottom: 26px; }
.qr { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo-lon); padding: 26px; text-align: center; }
.qr img { width: 220px; margin: 12px auto; border-radius: 12px; background: #fff; padding: 8px; }
@media (max-width: 860px) { .cuoi { grid-template-columns: 1fr; } }

/* Chân trang */
.chan { border-top: 1px solid var(--vien); padding: 46px 0 34px; color: var(--mo); font-size: 15px; }
.chan .khung { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.chan h4 { color: var(--chu); font-size: 15px; font-weight: 900; margin-bottom: 12px; letter-spacing: .06em; text-transform: uppercase; }
.chan a { display: block; padding: 4px 0; }
.chan .logo--chan { display: flex; flex-direction: column; align-items: center; justify-self: center; align-self: center; gap: 10px; padding: 0;
    color: var(--chu); font-size: 34px; letter-spacing: .18em; text-align: center; }
.chan .logo--chan img { width: 130px; height: 130px; }
.chan a:hover { color: var(--chu); }
.chan .ban-quyen { grid-column: 1 / -1; border-top: 1px solid var(--vien); padding-top: 22px; font-size: 13.5px; line-height: 1.7; }
@media (max-width: 760px) { .chan .khung { grid-template-columns: 1fr; } }

/* Trang phụ: Hướng dẫn / Cập nhật / Chính sách */
.trang { padding: 64px 0 96px; }
.trang .khung { max-width: 900px; }
.trang h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 900; line-height: 1.15; margin-bottom: 10px; }
.trang .gioi-thieu { color: var(--chu-2); margin-bottom: 34px; }
.muc-luc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.muc-luc a { padding: 8px 14px; border-radius: 999px; background: var(--the); border: 1px solid var(--vien); font-size: 14.5px; font-weight: 800; }
.muc-luc a:hover { border-color: var(--mo); }
.phan { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo-lon); padding: 30px; margin-bottom: 22px; }
.phan h2 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.phan .tom { color: var(--mo); margin-bottom: 16px; }
.phan h3 { font-size: 18.5px; font-weight: 900; margin: 22px 0 6px; }
.phan p, .phan li { color: var(--chu-2); }
.phan ul, .phan ol { padding-left: 22px; margin: 8px 0; display: grid; gap: 6px; }
.phan code { background: var(--nen); border: 1px solid var(--vien); padding: 1px 7px; border-radius: 6px; font-size: 15px; }
.phan .ban { display: inline-block; font-size: 14px; font-weight: 900; color: var(--cam); margin-bottom: 4px; }
