/* Trang giới thiệu mepocare.com — một tệp CSS, không thư viện ngoài (trừ phông Be Vietnam Pro của Google Fonts). */
:root {
  --xanh: #0b6e8a;          /* màu thanh menu của phần mềm */
  --xanh-dam: #07506a;
  --xanh-nhat: #e6f3f7;
  --la: #3aa935;            /* màu lá của logo */
  --la-nhat: #eaf7e8;
  --cam: #e8890c;
  --chu: #17242c;
  --chu-phu: #50626d;
  --vien: #dde6ea;
  --nen: #ffffff;
  --nen-phu: #f4f8fa;
  --bong: 0 10px 30px rgba(11, 61, 80, .10), 0 2px 6px rgba(11, 61, 80, .06);
  --bo: 14px;
  --rong: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--nen); color: var(--chu);
  font: 16px/1.65 "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--xanh); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.khung { max-width: var(--rong); margin: 0 auto; padding: 0 20px; }
.an { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Đầu trang ---------- */
.dau {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--vien);
}
.dau .khung { display: flex; align-items: center; gap: 20px; height: 64px; }
.dau .logo img { height: 38px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: var(--chu); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.menu a:hover { background: var(--xanh-nhat); color: var(--xanh-dam); }
.nut-menu { display: none; margin-left: auto; background: none; border: 1px solid var(--vien); border-radius: 10px; padding: 8px; color: var(--chu); }

.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600;
  padding: 12px 22px; border-radius: 12px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.nut:hover { transform: translateY(-1px); }
.nut-chinh { background: var(--xanh); color: #fff; box-shadow: 0 6px 16px rgba(11, 110, 138, .28); }
.nut-chinh:hover { background: var(--xanh-dam); }
.nut-phu { background: #fff; color: var(--xanh-dam); border-color: var(--vien); }
.nut-phu:hover { border-color: var(--xanh); }
.nut-nho { padding: 9px 16px; font-size: .92rem; }

/* ---------- Mở đầu ---------- */
.mo-dau { background: linear-gradient(180deg, var(--xanh-nhat) 0%, #fff 78%); padding: 64px 0 40px; overflow: hidden; }
.mo-dau .chu { text-align: center; max-width: 860px; margin: 0 auto; }
.mo-dau .chu .dan { margin: 0 auto; }
.mo-dau .hang-nut { justify-content: center; }
.mo-dau .diem { max-width: 720px; margin: 0 auto; text-align: left; }
.mo-dau .anh-dau { width: 100%; max-width: 1100px; margin: 44px auto 0; }
.nhan { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--vien); color: var(--xanh-dam);
        font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.nhan i { width: 8px; height: 8px; border-radius: 50%; background: var(--la); display: inline-block; }
.mo-dau h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
.mo-dau h1 em { font-style: normal; color: var(--xanh); }
.mo-dau .dan { font-size: 1.12rem; color: var(--chu-phu); max-width: 34em; }
.hang-nut { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.diem { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; color: var(--chu-phu); font-size: .95rem; }
.diem li { display: flex; gap: 8px; align-items: flex-start; }
@media (min-width: 900px) { .mo-dau .diem { grid-template-columns: repeat(4, 1fr); max-width: none; } }
.diem svg { color: var(--la); margin-top: 3px; }
.anh-may { border-radius: var(--bo); box-shadow: var(--bong); border: 1px solid var(--vien); background: #fff; overflow: hidden; }

.so-lieu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.so-lieu div { background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 18px 20px; }
.so-lieu b { display: block; font-size: 1.5rem; color: var(--xanh-dam); }
.so-lieu span { color: var(--chu-phu); font-size: .92rem; }

/* ---------- Khối chung ---------- */
.khoi { padding: 84px 0; }
.khoi-xam { background: var(--nen-phu); }
.tieu-de { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.tieu-de .tren { color: var(--la); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: 8px; }
.tieu-de p { color: var(--chu-phu); font-size: 1.05rem; }

/* ---------- Tính năng theo vai trò (thẻ) ---------- */
.the-vai { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.the-vai button {
  font: inherit; font-weight: 600; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center;
  border: 1px solid var(--vien); background: #fff; color: var(--chu); padding: 10px 16px; border-radius: 999px; cursor: pointer;
}
.the-vai button[aria-selected="true"] { background: var(--xanh); border-color: var(--xanh); color: #fff; }
.vai { display: none; grid-template-columns: .9fr 1.4fr; gap: 40px; align-items: center; }
.vai.dang { display: grid; }
.vai ul { padding: 0; list-style: none; margin: 18px 0 0; }
.vai li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--chu-phu); }
.vai li svg { color: var(--xanh); margin-top: 4px; }
.vai li b { color: var(--chu); }

/* ---------- Lưới tính năng ---------- */
.luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.o { background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 22px; }
.o .bieu { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--xanh-nhat); color: var(--xanh); margin-bottom: 14px; }
.o:nth-child(3n+2) .bieu { background: var(--la-nhat); color: #2a8a26; }
.o:nth-child(3n) .bieu { background: #fff2e0; color: #b9690a; }
.o h3 { font-size: 1.05rem; }
.o p { color: var(--chu-phu); font-size: .95rem; margin: 0; }

/* ---------- Quy trình ---------- */
.luong { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: b; position: relative; margin-bottom: 18px; }
.luong li { list-style: none; position: relative; text-align: center; padding: 0 8px; }
.luong li::before {
  counter-increment: b; content: counter(b); display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--xanh); color: #fff; font-weight: 700; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--xanh-nhat);
}
.luong li::after { content: ""; position: absolute; top: 22px; left: 50%; width: 100%; height: 2px; background: #b9d7e1; }
.luong li:last-child::after { display: none; }
.luong b { display: block; margin-bottom: 4px; }
.luong span { display: block; color: var(--chu-phu); font-size: .88rem; line-height: 1.5; }
.luong-them { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.luong-them .o ol { margin: 10px 0 0; padding-left: 1.3em; color: var(--chu-phu); font-size: .95rem; }
.luong-them .o li { margin-bottom: 6px; }
.chu-y { background: var(--la-nhat); border: 1px solid #cfe9cb; color: #24521f; border-radius: 12px; padding: 14px 18px; font-size: .95rem; margin-top: 28px; }

/* ---------- Hướng dẫn ---------- */
.hd-chon { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.hd-muc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 10px; }
.hd-muc button {
  font: inherit; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--chu);
  display: flex; gap: 10px; align-items: center; font-weight: 500;
}
.hd-muc button small { display: block; color: var(--chu-phu); font-weight: 400; font-size: .8rem; }
.hd-muc button[aria-selected="true"] { background: var(--xanh-nhat); color: var(--xanh-dam); font-weight: 600; }
.hd { display: none; }
.hd.dang { display: block; }
.hd > p { color: var(--chu-phu); }
.buoc { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: start; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 22px; margin-bottom: 16px; }
.buoc .so { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--la); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.buoc h4 { font-size: 1.05rem; }
.buoc p, .buoc li { color: var(--chu-phu); font-size: .95rem; }
.buoc ul { padding-left: 1.2em; margin: 0; }
.buoc .anh-may { cursor: zoom-in; }
.buoc.khong-anh { grid-template-columns: 1fr; }
.meo { display: flex; gap: 10px; background: #fff7e8; border: 1px solid #f5dfb4; border-radius: 10px; padding: 10px 14px; color: #6d4a0c; font-size: .9rem; margin-top: 10px; }
.meo svg { color: var(--cam); margin-top: 3px; }
kbd { font: 600 .85em/1 ui-monospace, Consolas, monospace; background: var(--nen-phu); border: 1px solid var(--vien); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; }

/* ---------- Triển khai ---------- */
.so-do { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: 20px; align-items: center; margin-bottom: 40px; }
.may { background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 20px; text-align: center; }
.may .bieu { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; background: var(--xanh); color: #fff; }
.may .bieu svg { width: 28px; height: 28px; }
.cac-may { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cac-may .may { padding: 14px 10px; font-size: .88rem; }
.cac-may .may .bieu { width: 40px; height: 40px; background: var(--xanh-nhat); color: var(--xanh); border-radius: 12px; }
.cac-may .may .bieu svg { width: 20px; height: 20px; }
.day { color: var(--chu-phu); font-size: .85rem; text-align: center; }
.day::before { content: ""; display: block; width: 90px; height: 2px; margin: 0 auto 8px; background: repeating-linear-gradient(90deg, var(--xanh) 0 8px, transparent 8px 14px); }
table.bang { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); overflow: hidden; font-size: .95rem; }
.bang th, .bang td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--vien); vertical-align: top; }
.bang th { background: var(--nen-phu); font-weight: 600; }
.bang tr:last-child td { border-bottom: 0; }
.hai-cot { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cac-buoc-tk { counter-reset: t; padding: 0; margin: 0; list-style: none; }
.cac-buoc-tk li { position: relative; padding: 0 0 18px 48px; color: var(--chu-phu); }
.cac-buoc-tk li::before { counter-increment: t; content: counter(t); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px;
  background: var(--la-nhat); color: #2a8a26; font-weight: 700; display: grid; place-items: center; }
.cac-buoc-tk b { color: var(--chu); display: block; }

/* ---------- Bảng giá ---------- */
.goi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.goi .o { display: flex; flex-direction: column; padding: 28px; }
.goi .o.noi { border: 2px solid var(--xanh); box-shadow: var(--bong); position: relative; }
.goi .o.noi::before { content: "Phổ biến"; position: absolute; top: -13px; left: 28px; background: var(--xanh); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.goi .gia { font-size: 1.7rem; font-weight: 800; color: var(--xanh-dam); margin: 6px 0 2px; }
.goi .gia-ghi { color: var(--chu-phu); font-size: .88rem; margin-bottom: 16px; }
.goi ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.goi li { display: flex; gap: 8px; margin-bottom: 9px; font-size: .95rem; color: var(--chu-phu); }
.goi li svg { color: var(--la); margin-top: 4px; }
.goi li.khong { color: #9aa8b0; }
.goi li.khong svg { color: #c3ced4; }

/* ---------- Hỏi đáp ---------- */
.hoi-dap { max-width: 880px; margin: 0 auto; }
.hoi-dap h3 { margin: 34px 0 12px; color: var(--xanh-dam); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; }
.hoi-dap h3:first-child { margin-top: 0; }
details { background: #fff; border: 1px solid var(--vien); border-radius: 12px; margin-bottom: 10px; }
details[open] { box-shadow: 0 4px 14px rgba(11, 61, 80, .06); }
summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--xanh); font-weight: 400; }
details[open] summary::after { content: "−"; }
details .tl { padding: 0 18px 16px; color: var(--chu-phu); }
details .tl p:last-child, details .tl ul:last-child { margin-bottom: 0; }
.tim-hd { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--vien); border-radius: 12px; padding: 4px 14px; margin-bottom: 26px; }
.tim-hd input { flex: 1; border: 0; outline: 0; font: inherit; padding: 10px 0; background: none; color: var(--chu); }
.tim-hd svg { color: var(--chu-phu); }
.khong-thay { display: none; color: var(--chu-phu); text-align: center; }

/* ---------- Liên hệ ---------- */
.lien-he { background: linear-gradient(135deg, var(--xanh-dam), var(--xanh)); color: #fff; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
.lien-he h2 { color: #fff; }
.lien-he p { color: #d6ecf3; }
.lien-he .nut-chinh { background: #fff; color: var(--xanh-dam); box-shadow: none; }
.lien-he .nut-phu { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.the-cty { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 24px; }
.the-cty .nho { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: #bfe2ee; margin-bottom: 4px; }
.the-cty .ten { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.the-cty .mst { color: #d6ecf3; margin-bottom: 16px; }
.the-cty a { color: #fff; text-decoration: none; display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .15); font-weight: 500; }
.the-cty a:hover { text-decoration: underline; }

/* ---------- Chân trang ---------- */
.chan { padding: 36px 0; color: var(--chu-phu); font-size: .9rem; border-top: 1px solid var(--vien); margin-top: 84px; }
.chan .khung { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.chan img { height: 30px; width: auto; }
.chan nav a { color: var(--chu-phu); text-decoration: none; margin-left: 16px; }

/* ---------- Xem ảnh lớn ---------- */
.xem-anh { position: fixed; inset: 0; z-index: 100; background: rgba(8, 24, 32, .86); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.xem-anh.mo { display: grid; }
.xem-anh img { max-height: 88vh; width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.xem-anh p { color: #e3eef2; text-align: center; margin: 12px 0 0; }
.anh-may.phong { cursor: zoom-in; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1020px) {
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--vien); flex-direction: column; padding: 10px 16px 16px; }
  .menu.mo { display: flex; }
  .nut-menu { display: inline-flex; }
  .dau .nut { display: none; }
  .vai.dang, .hai-cot, .lien-he, .so-do { grid-template-columns: 1fr; }
  .luoi, .goi { grid-template-columns: 1fr 1fr; }
  .so-lieu { grid-template-columns: 1fr 1fr; }
  .luong { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .luong li:nth-child(3)::after { display: none; }
  .hd-chon { grid-template-columns: 1fr; }
  .hd-muc { position: static; flex-direction: row; overflow-x: auto; }
  .hd-muc button { white-space: nowrap; }
  .hd-muc button small { display: none; }
  .buoc { grid-template-columns: 1fr; }
  .day::before { width: 2px; height: 40px; background: repeating-linear-gradient(180deg, var(--xanh) 0 8px, transparent 8px 14px); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .khung { padding: 0 16px; }
  .khoi { padding: 60px 0; }
  .mo-dau { padding-top: 40px; }
  .diem, .luoi, .goi, .luong-them { grid-template-columns: 1fr; }
  .luong { grid-template-columns: 1fr 1fr; }
  .luong li:nth-child(3)::after { display: block; }
  .luong li:nth-child(2n)::after { display: none; }
  .cac-may { grid-template-columns: 1fr 1fr; }
  .lien-he { padding: 28px 20px; }
  .bang th, .bang td { padding: 10px; }
  .chan nav a { margin: 0 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .nut { transition: none; } }
