/* Giao diện khoá "Quắc đầu tư": nền xanh rừng + vàng, giữ khung nét đậm của nền tảng. Nạp SAU style.css. */
:root{
  --bg:#f6f7ef; --bg2:#e6efdf; --card:#ffffff; --ink:#10231a; --muted:#46594e;
  --brand:#0f5a3e; --brand2:#c98a00; --gold:#ffcf33; --line:#10231a; --ok:#1f8a4c; --no:#b4412f;
  --shadow:4px 4px 0 var(--line);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){--bg:#0d1a14;--bg2:#13271e;--card:#183226;--ink:#eef5ec;--muted:#b3c7ba;--line:#050c08;--brand:#6fdba8;--brand2:#ffcf33;--ok:#5fd68f;--no:#ff9a86;--shadow:4px 4px 0 #050c08}
}
:root[data-theme="dark"]{--bg:#0d1a14;--bg2:#13271e;--card:#183226;--ink:#eef5ec;--muted:#b3c7ba;--line:#050c08;--brand:#6fdba8;--brand2:#ffcf33;--ok:#5fd68f;--no:#ff9a86;--shadow:4px 4px 0 #050c08}

.nav{background:#0b3a28}
.hero{background:#0b3a28;background-image:radial-gradient(900px 420px at 85% 10%,rgba(255,207,51,.16),transparent 60%),linear-gradient(160deg,#0b3a28,#0f5a3e 75%)}
.sec--cta{background:#0b3a28;background-image:linear-gradient(170deg,#0b3a28,#0f5a3e 70%,#14704f)}
.foot{background:#08241a;color:#cfe3d7}
.sec--sum{background:var(--bg2)}
.hero h1{text-shadow:3px 3px 0 rgba(0,0,0,.3)}

/* hero: Quắc đứng cạnh ảnh chụp bảng cân đối */
.hero__k01{position:relative}
.k01-stage{position:relative;padding:0 0 0 70px}
.k01-shot{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border:4px solid var(--line);border-radius:16px;box-shadow:6px 6px 0 var(--line);background:#0b3a28}
.k01-quac{position:absolute;left:-6px;bottom:-26px;width:min(34%,150px);height:auto;z-index:2;filter:drop-shadow(3px 4px 0 rgba(0,0,0,.35))}
@media(max-width:640px){.k01-stage{padding-left:0;padding-bottom:36px}.k01-quac{left:6px;width:96px;bottom:-4px}}

/* ảnh chụp tính năng */
.shots{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));margin:8px 0 18px}
.shot{margin:0;background:var(--card);border:3px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;transition:transform .15s}
.shot:hover{transform:translateY(-3px)}
.shot img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#0b3a28;border-bottom:3px solid var(--line)}
.shot figcaption{padding:10px 14px;font-weight:700;font-size:15px;line-height:1.4}
.shots--4{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}

/* Quắc xuất hiện ở các mục */
.sec--quac{position:relative}
.quac-side{float:right;width:130px;margin:0 0 8px 14px}
@media(max-width:640px){.quac-side{width:90px}}
.mascot--c{margin:18px auto 0}

.card__n{background:var(--brand);color:#fff}
.btn--ghost{background:transparent;color:#fff;border-color:#fff}
.sec .btn--ghost{color:var(--ink);border-color:var(--line)}

/* khung chờ video (hiện cho đến khi chép tệp mp4 vào assets) */
.player--ph{position:relative;aspect-ratio:16/9;display:block}
.player--ph img{width:100%;height:100%;object-fit:cover;filter:brightness(.55)}
.ph__play{position:absolute;inset:0;margin:auto;width:72px;height:72px;border-radius:50%;background:var(--gold);color:#10231a;display:grid;place-items:center;font-size:30px;border:4px solid var(--line)}
.ph__tx{position:absolute;left:0;right:0;bottom:0;padding:12px 16px;color:#fff;font-weight:800;background:linear-gradient(transparent,rgba(0,0,0,.75))}
.ph__tx small{display:block;font-weight:500;opacity:.85}
.k01-stage .player{width:100%}

/* ===== Bố cục 18 cụm (30/10/2026) ===== */
.hero__grid--k{align-items:center}
.hero__grid--k .eyebrow{max-width:100%;white-space:normal;line-height:1.35}
.hero-micro{line-height:1.7}
.hero__k01 .player{box-shadow:6px 6px 0 var(--line)}
.sec--tight{padding:30px 0 8px}
.sec--tight .ba{margin:0 auto}
.ba ul{font-size:16px}
.ba__col h2{font-size:15px}
.quick{background:var(--gold)}
.quick__grid{grid-template-columns:1fr 1fr}
@media(min-width:980px){.quick__grid{grid-template-columns:repeat(4,1fr)}}
.quick .q b{font-size:16px}

/* đoạn trích video */
.clips{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.clip{margin:0;background:var(--card);border:3px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.clip .player{border:0;border-bottom:3px solid var(--line);border-radius:0;box-shadow:none}
.clip figcaption{padding:12px 14px 14px;display:grid;gap:3px}
.clip figcaption small{font-weight:700;color:var(--brand);font-size:13px}
.clip figcaption b{font-size:16px;line-height:1.35}
.clip figcaption span{font-size:14px;color:var(--muted)}

/* thẻ mục tiêu */
.goals{display:grid;gap:14px;grid-template-columns:1fr}
@media(min-width:640px){.goals{grid-template-columns:1fr 1fr}}
@media(min-width:980px){.goals{grid-template-columns:repeat(3,1fr)}}
.goal{display:grid;gap:6px;align-content:start;text-decoration:none;background:var(--card);border:3px solid var(--line);border-radius:16px;padding:16px 18px;box-shadow:var(--shadow);transition:transform .12s}
.goal:hover{transform:translate(-1px,-2px)}
.goal b{font:800 20px/1.25 var(--f-head)}
.goal span{color:var(--muted);font-size:15px}
.goal em{font-style:normal;font-weight:700;font-size:14px;color:var(--brand);margin-top:4px}

.note--punch{font:700 19px/1.45 var(--f-body);color:var(--ink);max-width:36em;clear:both}
.steps--4{grid-template-columns:1fr}
@media(min-width:700px){.steps--4{grid-template-columns:repeat(2,1fr)}.steps--4 li{padding:62px 16px 16px}}
@media(min-width:980px){.steps--4{grid-template-columns:repeat(4,1fr)}}

/* phòng thực hành */
.tools{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.tool{background:var(--card);border:3px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;display:grid;align-content:start}
.tool__img{aspect-ratio:16/9;background:#0b3a28;border-bottom:3px solid var(--line);display:grid;place-items:center}
.tool__img img{width:100%;height:100%;object-fit:cover}
.tool__ph{display:grid;gap:4px;padding:14px;text-align:center;color:#fff;font:800 18px/1.25 var(--f-head)}
.tool__ph small{font:500 12px var(--f-body);opacity:.75}
.tool h3{margin:12px 14px 4px;font-size:19px}
.tool p{margin:0 14px 6px;font-size:15px;color:var(--muted)}
.tool small{margin:0 14px 14px;font-size:13px;color:var(--brand);font-weight:700}
.tools__more{margin:22px auto 6px;max-width:900px;text-align:center}
.tools__more summary{cursor:pointer;display:inline-block;min-height:44px;line-height:44px;padding:0 20px;border:2px solid var(--line);border-radius:999px;background:var(--card);font-weight:700;font-size:16px}
.tools__list{list-style:none;margin:14px auto 0;padding:0;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;text-align:left}
.tools__list li{background:var(--card);border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:14px}

/* người dạy */
.teacher--k .person--main{max-width:860px;margin:0 auto 18px}
.person__ph{flex:none;width:96px;height:96px;border-radius:50%;border:3px solid var(--line);background:var(--gold);color:#10231a;display:grid;place-items:center;font:800 42px var(--f-head)}
.person--main img{flex:none;width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid var(--line)}
.note--l{text-align:left;margin-left:0}
@media(max-width:520px){.person--main{flex-direction:column;align-items:center;text-align:center}}

/* học phí: thân thiện điện thoại */
.offer__h{margin:14px 0 0;font:800 17px var(--f-head)}
.offer__ladder{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.offer__ladder li{color:#10231a}
.offer__ladder li span{color:#46594e}
.offer__card{color:#10231a}
.offer__now{color:#9a6a00}
.offer__mini{color:#46594e}.offer__mini b{color:#9a6a00}
.offer__note{color:#46594e}
.offer__trust{color:#33473c}
.steps3 p{color:#33473c}
.sec--cta .sub--light{color:#e6f3ea}
.foot{padding-bottom:90px}
@media(min-width:980px){.foot{padding-bottom:30px}}
@media(max-width:640px){.h2{font-size:27px}.sec{padding:40px 0}.hero h1{font-size:34px}}

/* ===== Tối ưu điện thoại / iPad (đợt 4) ===== */
/* vùng an toàn iPhone (cần viewport-fit=cover trong landing.html) */
.wrap{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.sticky{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.chat-btn{bottom:calc(84px + env(safe-area-inset-bottom));right:max(14px,env(safe-area-inset-right))}
.chat-box{bottom:calc(140px + env(safe-area-inset-bottom));right:max(14px,env(safe-area-inset-right));height:min(560px,calc(100vh - 170px));height:min(560px,calc(100dvh - 170px))}
.cc{bottom:max(12px,env(safe-area-inset-bottom))}
/* nút nổi lên đầu trang không đè nút "Đăng ký" của thanh dính đáy */
.to-top{left:max(14px,env(safe-area-inset-left));bottom:calc(20px + env(safe-area-inset-bottom))}
@media(max-width:979px){.to-top{bottom:calc(96px + env(safe-area-inset-bottom))}}
/* vùng bấm >= 44px */
.theme-btn.theme-btn--nav{width:44px;height:44px;font-size:18px}
.brand{min-height:44px}
.foot a{display:inline-block;padding:10px 2px}
.btn--c span[data-cfg]{margin-left:.35em}
.chat-chips button{min-height:40px;padding:6px 12px;font-size:14px}
.lead-form input{min-height:44px;font-size:16px}
.lead-send{min-height:44px;font-size:15px}
.chat-box input,.chat-box textarea{font-size:16px}
.chat-tools .linkbtn{min-height:40px}
.syl__nav{min-width:44px}
/* cỡ chữ phụ >= 14px trên màn nhỏ */
.eyebrow,.hero-micro,.cap,.cta-sub,.syl__meta,.syl__hint,.offer__note,.offer__trust,.offer__ladder li span,.disc,.syl__note{font-size:14.5px}
.syl__tx small,.syl__dur,.q small,.q__k,.tool small,.clip figcaption small{font-size:13px}
.offer label.check{font-size:15px}
/* băng giáo trình: vuốt ngang có dấu hiệu, thẻ cuối không bị cắt, danh sách trong thẻ nhường cuộn trang cho ngón tay */
.syl__track{scroll-padding-left:6px}
@media(hover:none){.syl__ls{overscroll-behavior-y:auto}}
@media(max-width:719px){.syl__ch{height:clamp(420px,66dvh,600px)}.syl__ls li{padding:8px 4px;gap:12px}.syl__th{flex-basis:clamp(112px,34%,150px)}}
/* khung chat trên điện thoại: gần hết chiều rộng */
@media(max-width:600px){.chat-box{left:10px;right:10px;width:auto;height:min(70vh,calc(100vh - 180px));height:min(70dvh,calc(100dvh - 180px))}}
/* tiêu đề co theo màn hình */
@media(max-width:640px){.hero h1{font-size:clamp(30px,9vw,38px)}.h2{font-size:clamp(25px,7vw,30px)}}
/* điện thoại xoay ngang: bớt chiều cao thừa */
@media(max-height:480px) and (orientation:landscape){.hero{padding:16px 0 24px}.sec{padding:32px 0}.sticky{display:none}.chat-box{height:calc(100dvh - 24px);bottom:12px}.syl__ch{height:min(420px,88dvh)}}
/* iPad (dọc/ngang): bậc giá và biểu mẫu không bị kéo giãn quá rộng */
@media(min-width:700px) and (max-width:799px){.offer{max-width:640px}.hero__grid{max-width:720px;margin-inline:auto}}
img{height:auto}
.offer input[type=text],.offer input[type=email],.offer input[type=password],.offer input[type=tel]{font-size:16px}
.offer label.check a,.offer__note a{padding:12px 2px;margin:-12px 0}
.offer label.check{min-height:44px;align-items:center}
@media(min-width:641px){.quac-side{float:none;margin:6px auto 12px;width:120px}}
/* nút "Đăng ký" trong menu ☰: chữ tối trên nền vàng (trước đây bị ".menu a{color:#fff}" làm trắng trên vàng) */
.menu a.btn,.menu .btn{color:#1d1230}

/* ===== Sửa theo rà soát 3 vai (31/10/2026) ===== */
.clip figcaption small,.tool small,.syl__tx small,.syl__dur,.q small,.q__k{font-size:14px}
@media(max-width:979px){.to-top{display:none}.chat-btn{bottom:calc(92px + env(safe-area-inset-bottom))}}
.foot a,.price a,.consent a,form a{display:inline-block;min-height:44px;line-height:44px;padding:0 4px}
form input[type=checkbox]{width:24px;height:24px}
form label:has(>input[type=checkbox]){min-height:44px;display:flex;align-items:center;gap:10px}
.pw-eye,form button[aria-label*="mật khẩu"]{min-width:44px;min-height:44px}
.brand span{white-space:nowrap}
form label a{min-height:0;line-height:inherit;padding:10px 2px}
form label:has(>input[type=checkbox]){align-items:flex-start;flex-wrap:wrap}
/* 4 đoạn trích: lưới 2x2 cân đối trên máy tính, 1 cột trên điện thoại */
.clips{grid-template-columns:repeat(2,1fr);max-width:920px;margin-left:auto;margin-right:auto}
@media(max-width:640px){.clips{grid-template-columns:1fr}}
/* Quắc không che nút phát: nhỏ hơn, nâng lên khỏi thanh điều khiển, không bắt chuột */
.k01-quac{pointer-events:none;bottom:52px;left:-10px;width:min(22%,104px)}
@media(max-width:640px){.k01-quac{bottom:50px;left:4px;width:68px}}
/* Quắc ló đầu chào ở góc trên bên phải khung video (thân chìm sau khung) */
.k01-stage{padding:64px 0 0}
.k01-stage>*:not(.k01-quac){position:relative;z-index:1}
.k01-quac{z-index:0;left:auto;bottom:auto;top:0;right:22px;width:112px;transform:rotate(10deg);transform-origin:50% 100%}
@media(max-width:640px){.k01-stage{padding:54px 0 0}.k01-quac{right:14px;width:92px;top:0;bottom:auto;left:auto}}
.slogan{font-size:clamp(18px,3.4vw,24px);font-weight:700;color:#e9f5ec;margin:-4px 0 14px;line-height:1.35}

/* 6 công cụ nổi bật: 3 cột máy tính, 2 cột máy tính bảng, 1 cột điện thoại */
.tools{grid-template-columns:repeat(3,1fr)}
@media(max-width:979px){.tools{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.tools{grid-template-columns:1fr}}

/* Video quảng cáo công cụ (phòng thực hành): canh giữa, rộng tối đa 900px */
.toolpromo{max-width:900px;margin:22px auto 28px;padding:0 4px}
.toolpromo .player{width:100%}
.toolpromo figcaption{margin-top:10px;text-align:center;font-size:15px;color:var(--muted);line-height:1.45}
@media(max-width:640px){.toolpromo{margin:16px auto 22px;padding:0}}
