/* Đổi màu thương hiệu tại đây. Cả trang tự đổi theo. */
:root {
  --primary: #18315f;
  --primary-deep: #0f2244;
  --accent: #ff7546;
  --accent-deep: #e85c2c;
  --secondary: #6d45cb;
  --tint: #f3f6ff;
  --tint-warm: #fff4ee;
  --ink: #1b2a44;
  --muted: #5a6880;
  --line: #e2e8f4;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(24, 49, 95, .09);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--primary); line-height: 1.22; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(52px, 8vw, 88px) 0; }
.tint { background: var(--tint); }
.warm { background: var(--tint-warm); }
.dark { background: var(--primary-deep); color: #dbe4f5; }
.dark h2, .dark h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.dark .section-head p { color: #b9c6df; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--secondary);
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dark .eyebrow { color: #ffb394; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #2a1208;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: #ff8a60; transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn-ghost:hover { background: var(--tint); }

/* Thanh trên cùng */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: .95rem;
}
.topbar nav { display: flex; gap: 22px; font-size: .94rem; }
.topbar nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.topbar nav a:hover { color: var(--primary); }
.topbar .btn { min-height: 42px; padding: 8px 18px; font-size: .92rem; }

/* Mở đầu */
.hero { position: relative; overflow: hidden; background: #f4ece4; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 245, 239, .97) 0%, rgba(250, 245, 239, .92) 46%, rgba(250, 245, 239, 0) 72%);
}
.hero .wrap { position: relative; z-index: 1; padding: clamp(56px, 9vw, 112px) 0; }
.hero-copy { max-width: 520px; }
.hero-copy > p { margin-top: 18px; font-size: 1.12rem; color: #3f4d64; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: .94rem; color: var(--primary); }
.hero-points li::before { content: "✓"; margin-right: 7px; color: var(--accent-deep); font-weight: 800; }

/* Lưới thẻ */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { margin-top: 8px; color: var(--muted); }
.card-link { display: inline-block; margin-top: 14px; color: var(--accent-deep); font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
}

/* Chỗ giữ cho nội dung thật của học viên */
.slot {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1.5px dashed #b6c3dc;
  border-radius: 14px;
  background: rgba(255, 255, 255, .6);
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}
.slot-video { aspect-ratio: 16 / 9; max-width: 820px; margin-inline: auto; }
.slot-photo { min-height: 240px; }
.dark .slot { border-color: #4a5f86; background: rgba(255, 255, 255, .04); color: #b9c6df; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.split ul { margin: 18px 0 0; padding: 0; list-style: none; }
.split li { position: relative; padding: 7px 0 7px 26px; color: var(--muted); }
.split li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-deep); font-weight: 800; }

/* Hỏi đáp */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 28px 18px 0; font-weight: 700; color: var(--primary); cursor: pointer; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Form đăng ký */
.signup { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.signup-copy > p { margin-top: 14px; color: #b9c6df; font-size: 1.05rem; }
.signup-copy ul { margin: 22px 0 0; padding: 0; list-style: none; }
.signup-copy li { position: relative; padding: 7px 0 7px 26px; }
.signup-copy li::before { content: "✓"; position: absolute; left: 0; color: #ffb394; font-weight: 800; }
.form-card { padding: clamp(22px, 4vw, 32px); border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 18px 44px rgba(0, 0, 0, .24); }
.form-card h3 { margin-bottom: 18px; font-size: 1.25rem; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 5px; font-size: .92rem; font-weight: 600; color: var(--primary); }
.field small { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1.5px solid #cdd7e8;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--secondary); outline-offset: 1px; border-color: var(--secondary); }
[aria-invalid="true"] { border-color: #c9331b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; margin: 4px 0 16px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 19px; height: 19px; margin-top: 3px; accent-color: var(--secondary); }
.form-card .btn { width: 100%; }
.form-message { min-height: 24px; margin-top: 12px; font-size: .93rem; font-weight: 600; color: var(--muted); }
.form-message.error { color: #b92a14; }
.form-message.success { color: #16794a; }

/* Chân trang */
.footer { padding: 36px 0; background: #0a1830; color: #9fb0cc; font-size: .92rem; }
.footer strong { color: var(--white); }
.footer p + p { margin-top: 6px; }

/* Trang cảm ơn */
.thanks { display: grid; place-items: center; min-height: 100svh; padding: 20px; background: var(--tint); }
.thanks-card { width: min(560px, 100%); padding: clamp(28px, 6vw, 44px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.thanks-card h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.thanks-card > p { margin-top: 14px; color: var(--muted); }
.thanks-card .slot { margin: 22px 0; }
.check { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 50%; background: #e4f6ec; color: #16794a; font-size: 1.7rem; font-weight: 800; }

@media (max-width: 860px) {
  .topbar nav { display: none; }
  .grid-3, .grid-2, .split, .signup { grid-template-columns: 1fr; }
  .hero-photo { position: static; height: 240px; object-position: 80% center; }
  .hero::after { display: none; }
  .hero .wrap { padding: 32px 0 44px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Thành phần chuyển đổi của Lead Page và Sale Page */
.hero-offer { background: radial-gradient(1000px 520px at 88% 0%, #2a4a86 0%, var(--primary-deep) 62%); color: #dbe4f5; }
.hero-offer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 7vw, 84px) 0; }
.hero-offer h1 { color: var(--white); }
.hero-offer .eyebrow { color: #ffb394; }
.hero-offer .lede { margin-top: 18px; font-size: 1.14rem; color: #d3ddf0; }
.gain-list { margin: 22px 0 0; padding: 0; list-style: none; }
.gain-list li { position: relative; padding: 7px 0 7px 28px; font-weight: 500; }
.gain-list li::before { content: "✓"; position: absolute; left: 0; color: #ffb394; font-weight: 800; }
.note { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.hero-offer .note { color: #b9c6df; }
.form-card .lead-in { margin: -8px 0 16px; color: var(--muted); font-size: .95rem; }
.topbar .hotline { font-weight: 700; color: var(--primary); text-decoration: none; font-size: .95rem; }

.quote-card { position: relative; padding-top: 48px; }
.quote-card::before { content: "“"; position: absolute; top: 2px; left: 22px; font-size: 3.4rem; line-height: 1.2; color: var(--accent); font-weight: 800; }
.quote-card h3 { font-weight: 700; }
.cost-band { margin-top: 26px; padding: 20px 24px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--tint-warm); font-weight: 600; color: var(--primary); }

.old-new { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.old-new > div { padding: 24px; border-radius: var(--radius); }
.old-new .old { background: #f4f5f8; color: var(--muted); }
.old-new .new { background: var(--primary); color: #e7edf9; }
.old-new .new h3 { color: var(--white); }
.old-new ul { margin: 12px 0 0; padding-left: 18px; }
.old-new li { padding: 4px 0; }

.story { max-width: 760px; font-size: 1.06rem; }
.story p + p { margin-top: 14px; }

.before-after { display: grid; gap: 10px; }
.before-after .row { display: grid; grid-template-columns: 1fr 26px 1fr; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.before-after .row span:first-child { color: var(--muted); }
.before-after .row span:last-child { font-weight: 700; color: var(--primary); }
.before-after .arrow { color: var(--accent-deep); font-weight: 800; text-align: center; }

.stack { max-width: 760px; margin-inline: auto; overflow: hidden; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 18px 44px rgba(0, 0, 0, .24); }
.stack-row { display: flex; justify-content: space-between; gap: 18px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.stack-row strong { color: var(--primary); }
.stack-row small { display: block; color: var(--muted); font-weight: 400; }
.stack-row .value { flex: none; font-weight: 700; white-space: nowrap; }
.stack-total { display: flex; justify-content: space-between; gap: 18px; padding: 16px 24px; background: var(--tint); font-weight: 700; }
.stack-total s { color: var(--muted); }
.stack-price { padding: 26px 24px; text-align: center; }
.stack-price .amount { display: block; font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; color: var(--accent-deep); line-height: 1.15; }
.stack-price .btn { margin-top: 16px; min-width: min(340px, 100%); }

.guarantee { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; max-width: 800px; padding: 28px; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--white); }
.guarantee .badge { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--tint-warm); color: var(--accent-deep); font-size: 2rem; font-weight: 800; }
.guarantee p { margin-top: 8px; color: var(--muted); }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fit .card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.fit .card li { padding: 4px 0; }
.urgent { padding: 24px 28px; border-radius: var(--radius); background: var(--primary); color: #e7edf9; }
.urgent h3 { color: var(--white); margin-bottom: 8px; }

.sticky-cta { display: none; }

@media (max-width: 860px) {
  .hero-offer .wrap, .old-new, .fit { grid-template-columns: 1fr; }
  .before-after .row { grid-template-columns: 1fr; gap: 2px; }
  .before-after .arrow { display: none; }
  .guarantee { grid-template-columns: 1fr; }
  .stack-row { padding: 14px 18px; }
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: block;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 20px rgba(15, 34, 68, .14);
  }
  .sticky-cta .btn { width: 100%; }
  body.has-sticky { padding-bottom: 76px; }
  .topbar .hotline { display: none; }
}
