/* home.css — trang chủ kiddoshield.com, CHÉP từ landing-v2/css/style.css (kidsafe.com.vn) 09/11/2026.
   Sửa giao diện chung: sửa ở landing-v2 rồi chép lại; phần riêng kiddoshield nằm cuối file. */
/* KidSafe landing v2 — theme theo bộ quảng cáo D:\sources\kidsafe-ads (build/creatives.html), mobile first.
   Bảng màu đã làm dịu (02/10/2026): xanh bớt đen, vàng ấm hơn, chữ đen bớt gắt, header nền trắng.
   Mọi màu chữ đã chọn để đạt ≥ 4.5:1 trên nền của nó. Nút hành động chính
   luôn là vàng + chữ tối (--gold / --gold-ink) — không dùng màu này cho thứ khác. */

:root {
  --navy-950: #111c3f;
  --navy-900: #1b2c63;
  --navy-800: #22367a;
  --line-dark: #2b3f86;
  --border-dark: rgba(255, 255, 255, 0.32);
  --badge-outline: rgba(255, 255, 255, 0.35);

  --ink: #16203f;
  --body: #4a5578;
  --muted: #5b6788;
  --on-dark: #e6ecff;
  --on-dark-strong: #f2f5ff;

  --blue: #3554e0;
  --blue-dark: #2440b8;
  --surface: #f3f6ff;
  --border: #dde4f6;
  --card-border: #e3e9f8;
  --row-line: #eef0f6;
  --input-border: #9aa3bd;

  --gold: #f2b924;
  --gold-hover: #e5ac14;
  --gold-ink: #1a2445;
  --gold-border: #e0a915;

  --green: #1f7a4a;
  --red: #b8392e;
  --check: #f2b924;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1240px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
main [id] { scroll-margin-top: 80px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.ic { width: 20px; height: 20px; flex-shrink: 0; }

.only-desktop { display: none !important; }
@media (min-width: 900px) {
  .only-desktop { display: flex !important; }
  .only-mobile { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-lg { min-height: 56px; font-size: 18px; font-weight: 800; padding: 0 26px; }
.btn-block { display: flex; width: 100%; }

.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hover); color: var(--gold-ink); }
.btn-bordered { border: 1.5px solid var(--gold-border); }

.btn-outline { background: #fff; color: var(--navy-900); border: 1.5px solid #b3bedb; }
.btn-outline:hover { background: #eef2fb; color: var(--navy-900); border-color: var(--navy-900); }

.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy-900); }

.link-btn {
  background: none;
  border: 0;
  padding: 8px 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* Hàng ≥2 nút cạnh nhau: luôn cao bằng nhau khi label wrap */
.btn-pair { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Nút store: luôn cùng 1 dòng, màn hẹp thì co nhỏ */
.store-badges { display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; }
.store-badges a { display: inline-flex; flex: 0 1 auto; min-width: 0; border-radius: var(--radius); outline: 1px solid var(--badge-outline); }
.store-badges img { display: block; width: 196px; max-width: 100%; height: auto; }
.store-badges-sm a { border-radius: 8px; }
.store-badges-sm img { width: 149px; }

/* ---------- Promo + header ---------- */
.promo {
  background: #fff4d4;
  color: #3d2f05;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
  text-align: center;
}
.promo { text-decoration: none; }
.promo:hover { color: #3d2f05; }
.promo b { color: #8a5a00; }
.promo-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Mobile: thanh khuyến mại gọn 1 dòng — cả thanh là link tới bảng giá */
@media (max-width: 599px) {
  .promo { font-size: 13px; padding: 7px 12px; }
  .promo-tag, .promo-link { display: none; }
}
.promo-tag {
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; background: #fff; border-radius: 8px; padding: 5px 0; }
.logo img { display: block; height: 30px; width: auto; }
.btn-header { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
.nav-open .nav-toggle .ic-open { display: none; }
.nav-open .nav-toggle .ic-close { display: block; }

.main-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 12px 24px rgba(29, 37, 64, 0.08);
  padding: 8px 16px 20px;
  flex-direction: column;
  gap: 4px;
}
.nav-open .main-nav { display: flex; }
.nav-link, .nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
}
.nav-link:hover, .nav-phone:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.nav-phone { color: var(--navy-900); font-weight: 600; }

.lang { display: flex; gap: 6px; padding-top: 8px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--body);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn img { width: 20px; height: auto; border-radius: 2px; }
.lang-btn[aria-pressed="true"] { background: #eef2fb; color: var(--navy-900); border-color: var(--navy-900); }

@media (min-width: 1080px) {
  .header-inner { gap: 28px; min-height: 76px; }
  .logo img { height: 34px; }
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0;
    border: 0;
    flex-grow: 1;
  }
  .nav-link { min-height: 44px; font-size: 16px; }
  .nav-phone { margin-left: auto; font-size: 16px; }
  .lang { padding-top: 0; gap: 4px; }
  .lang-btn { min-height: 36px; padding: 0 8px; }
  .btn-header { margin-left: 0; min-height: 46px; padding: 0 20px; font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy-900); color: #fff; padding: 24px 0 40px; }
.hero-grid {
  display: grid;
  gap: 20px;
  grid-template-areas: "head" "media" "body";
}
.hero-head { grid-area: head; display: flex; flex-direction: column; gap: 14px; }
.hero-media { grid-area: media; display: flex; flex-direction: column; gap: 10px; }
.hero-body { grid-area: body; display: flex; flex-direction: column; gap: 20px; }

.eyebrow-pill {
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  color: #dce3fb;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.hero h1 { font-size: clamp(28px, 7.4vw, 56px); line-height: 1.14; font-weight: 800; letter-spacing: -0.015em; }
.hl { color: var(--gold); }
.hero .lead { font-size: 16px; line-height: 1.55; color: var(--on-dark); max-width: 580px; }

.video { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; outline: 1px solid #2a3a7a; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; display: block; width: 100%; }
/* <picture> mac dinh la inline => img ben trong khong co chieu cao de an theo 100%.
   Phai cho picture tu trai het o thi anh nen moi phu kin khung video. */
.video-play picture { display: block; width: 100%; height: 100%; }
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-dim { position: absolute; inset: 0; background: rgba(7, 15, 46, 0.26); transition: background 0.2s; }
.video-play:hover .video-dim { background: rgba(7, 15, 46, 0.12); }
.video-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(245, 184, 32, 0.3);
}
.video-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.video-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(7, 15, 46, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.video-caption { font-size: 14px; color: var(--on-dark); text-align: center; }

/* Mobile: tính năng dạng ô 2 cột, chỉ tiêu đề */
.hero-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hero-features li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--radius); background: var(--navy-800); }
.hero-features b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.hf-ic { flex-shrink: 0; color: var(--gold); display: inline-flex; }
.hf-ic svg { width: 18px; height: 18px; }
.hf-d { display: none; }

.hero-actions { display: flex; align-items: stretch; gap: 10px; order: -1; }
.hero-actions > .btn { flex: 1 1 0; padding: 0 12px; }
.trust { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.trust p { font-size: 14px; color: var(--on-dark); }
.trust b { color: #fff; }
.avatars { display: flex; }
.avatars img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--navy-900); object-fit: cover; }
.avatars img + img { margin-left: -10px; }

@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: "head media" "body media";
    column-gap: 56px;
    row-gap: 22px;
    align-items: center;
  }
  .hero-head { gap: 22px; align-self: end; }
  .hero-body { align-self: start; gap: 22px; }
  .eyebrow-pill { font-size: 14px; padding: 6px 14px; }
  .hero .lead { font-size: 19px; line-height: 1.6; }
  .video { border-radius: 18px; }
  .video-btn { width: 92px; height: 92px; box-shadow: 0 0 0 10px rgba(245, 184, 32, 0.3); }
  .video-btn svg { width: 36px; height: 36px; }
  .video-label { left: 16px; bottom: 16px; font-size: 14px; padding: 6px 12px; }
  .video-caption { font-size: 16px; }

  .hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
  .hero-features li { background: none; padding: 0; align-items: flex-start; gap: 12px; }
  .hf-ic { width: 36px; height: 36px; border-radius: var(--radius); background: var(--navy-800); align-items: center; justify-content: center; }
  .hf-ic svg { width: 20px; height: 20px; }
  .hero-features b { display: block; font-size: 16px; font-weight: 700; }
  .hf-d { display: block; font-size: 15px; color: var(--on-dark); line-height: 1.45; margin-top: 2px; }

  .hero-actions { flex-wrap: wrap; gap: 12px; align-items: center; order: 0; }
  .hero-actions > .btn { flex: 0 0 auto; padding: 0 28px; min-height: 58px; }
  .trust { justify-content: flex-start; gap: 16px; }
  .trust p { font-size: 16px; }
  .trust b { font-size: 18px; }
  .avatars img { width: 44px; height: 44px; border-width: 3px; }
  .avatars img + img { margin-left: -12px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); }
@media (min-width: 900px) { .section { padding: 88px 0; } }

.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 32px; }
@media (min-width: 900px) { .section-head { margin-bottom: 48px; } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--blue); }
.section h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; }
.section-lead { font-size: 17px; color: var(--body); max-width: 680px; }
@media (min-width: 900px) { .section-lead { font-size: 18px; } }

/* Cách bắt đầu */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.step { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 900px) { .step { padding: 32px; } }
.step h3 { font-size: 21px; font-weight: 800; }
.step p { font-size: 16px; color: var(--body); }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-main { background: var(--navy-900); color: #fff; }
.step-main p { color: var(--on-dark); }
.step-main .step-num { background: var(--gold); color: var(--gold-ink); }
.step-top { display: flex; align-items: center; gap: 14px; }
.step-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); }
.step-store { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.step-qr { align-items: center; gap: 12px; font-size: 14px; color: var(--on-dark); line-height: 1.4; }
.step-qr img { width: 88px; height: 88px; background: #fff; border-radius: 8px; padding: 4px; flex-shrink: 0; }
.step-links { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1.5px solid #b3bedb;
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: none;
}
.btn-row span { flex-grow: 1; }
.btn-row:hover { background: #eef2fb; border-color: var(--navy-900); }
.step-more { margin-top: auto; font-weight: 600; }

.help-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 2px dashed #b9c3e2;
  text-align: center;
}
.help-box p { font-size: 18px; font-weight: 700; }
.help-box .btn-pair .btn { flex: 1 1 220px; }
@media (min-width: 900px) { .help-box { margin-top: 32px; padding: 32px; } .help-box p { font-size: 20px; } .help-box .btn-pair .btn { flex: 0 0 auto; } }

/* Tính năng */
.features-top { display: grid; gap: 32px; align-items: center; margin-bottom: 32px; }
@media (min-width: 900px) { .features-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-bottom: 48px; } }
.features-intro { display: flex; flex-direction: column; gap: 14px; }
.features-intro .btn { align-self: flex-start; margin-top: 6px; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 10px; }
.phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 1 0; max-width: 200px; }
.phones img { width: 100%; height: auto; border-radius: 18px; border: 5px solid #2a3352; display: block; }
.phones figcaption { font-size: 13px; font-weight: 600; color: var(--body); text-align: center; line-height: 1.35; }
.phones .phone-mid { margin-bottom: 24px; max-width: 220px; }
@media (min-width: 900px) { .phones { gap: 16px; } .phones img { border-radius: 22px; border-width: 6px; } .phones figcaption { font-size: 14px; } }

.feature-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.fcard { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.fcard h3 { font-size: 19px; font-weight: 700; }
.fcard p { font-size: 16px; color: var(--body); }
.fcard-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fcard-ic { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.fcard-ic svg { width: 26px; height: 26px; }
.c-red { background: #fdecec; color: var(--red); }
.c-purple { background: #eee8ff; color: #5b3bc4; }
.c-amber { background: #fff3d6; color: #8a5a00; }
.c-blue { background: #e8eeff; color: var(--blue); }
.c-green { background: #e3f6ec; color: var(--green); }
.c-teal { background: #e6f4f7; color: #146c80; }
.badge { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 6px; line-height: 1.5; }
.badge-blue { background: #e8eeff; color: #1f3fa8; }
.badge-green { background: #e3f6ec; color: #145c34; }

/* Phản hồi */
.quotes { display: grid; gap: 16px; }
@media (min-width: 640px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .quotes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.quote { margin: 0; background: var(--surface); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: #1f2742; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* Bảng giá */
.plans { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .plan { padding: 32px; } }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan-desc { font-size: 16px; color: var(--body); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price-num { font-size: clamp(36px, 4vw, 44px); font-weight: 800; line-height: 1.1; }
.price-unit { font-size: 16px; color: var(--on-dark); }
.price-month { font-size: 17px; font-weight: 700; color: var(--gold); }
.plan-featured { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: 0 20px 50px rgba(11, 22, 64, 0.3); }
.plan-flag {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--on-dark-strong); }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ic { color: var(--check); margin-top: 2px; }

.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table th { text-align: left; padding: 8px 0; color: var(--body); font-weight: 600; border-bottom: 1px solid var(--border); }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { padding: 10px 0; border-bottom: 1px solid var(--row-line); }
.price-table td:last-child { font-weight: 700; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .off { color: var(--red); font-weight: 700; }
.price-table .best { color: var(--green); font-weight: 800; }

.promises { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 640px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .promises { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; } }
.promise { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 12px; background: #fff; border: 1px solid var(--card-border); }
.promise .ic { width: 26px; height: 26px; color: var(--blue); }
.promise b { font-size: 16px; }
.promise p { margin-top: 4px; font-size: 15px; color: var(--body); line-height: 1.5; }

/* ---------- Đăng ký dùng thử ---------- */
.final { background: var(--navy-900); color: #fff; padding: 56px 0; }
@media (min-width: 900px) { .final { padding: 80px 0; } }
.final-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.final-text { display: flex; flex-direction: column; gap: 18px; }
.final-text h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; line-height: 1.15; }
.final-text p { font-size: 17px; color: var(--on-dark); }
.final-text p a { color: #fff; font-weight: 700; }

.form-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
@media (min-width: 900px) { .form-card { padding: 32px; } }
.reg-form { display: flex; flex-direction: column; gap: 16px; }
.form-head { display: flex; flex-direction: column; gap: 4px; }
.form-head h3 { font-size: 22px; font-weight: 800; }
.form-head p { font-size: 15px; color: var(--muted); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.label-note { font-weight: 400; color: var(--muted); }
.field input, .field select {
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  width: 100%;
}
.field input:focus, .field select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy-900); }
#otp { font-size: 22px; letter-spacing: 0.3em; text-align: center; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); }
.form-note .ic { width: 16px; height: 16px; }
.otp-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.form-msg:empty { display: none; }
.form-msg p { margin: 0; padding: 12px 14px; border-radius: var(--radius); font-size: 15px; line-height: 1.5; }
.form-msg .error { background: #fdecec; color: #8c1d14; border: 1px solid #f3b8b2; }
.form-msg .success { background: #e3f6ec; color: #145c34; border: 1px solid #a9dcbf; }

/* Thẻ kết quả sau đăng ký (render bởi js/trial.js) */
.result-card { display: flex; flex-direction: column; gap: 14px; }
.result-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.result-check { width: 32px; height: 32px; border-radius: 50%; background: #e3f6ec; color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.result-check .ic { width: 18px; height: 18px; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); }
.kv-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kv-value { font-family: ui-monospace, Consolas, monospace; font-size: 17px; font-weight: 700; word-break: break-all; }
.kv-value.code { font-size: 22px; letter-spacing: 0.08em; }
.copy-btn { flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--navy-900); background: #fff; color: var(--navy-900); font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.copy-btn:hover { background: #eef2fb; }
.result-qr { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--card-border); }
.result-qr img { width: 96px; height: 96px; flex-shrink: 0; }
.result-qr p { font-size: 14px; color: var(--body); }
.result-hint { font-size: 14px; color: var(--body); line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #c3cceb; padding: 48px 0 calc(32px + var(--sticky-space, 0px)); font-size: 15px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid > div { display: flex; flex-direction: column; gap: 6px; }
.footer-grid b { color: #fff; margin-bottom: 4px; }
.footer-grid a { color: #c3cceb; text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand .logo { align-self: flex-start; }

/* ---------- Thanh CTA dính đáy (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 12px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(11, 22, 64, 0.16);
  transform: translateY(110%);
  transition: transform 0.2s ease;
}
.sticky-cta .btn { min-height: 50px; padding: 0 10px; font-size: 15px; }
.sticky-cta .btn:first-child { flex: 1 1 0; }
.sticky-cta .btn:last-child { flex: 1.6 1 0; font-size: 15px; font-weight: 800; }
.sticky-cta.is-visible { transform: none; }
body.has-sticky { --sticky-space: 76px; }
@media (min-width: 900px) { .sticky-cta { display: none; } body.has-sticky { --sticky-space: 0px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta, .btn, .video-dim { transition: none; }
}

/* Nút hẹp trên mobile: bỏ icon để nhãn nằm 1 dòng */
@media (max-width: 899px) { .hero-actions .btn .ic { display: none; } }
@media (max-width: 440px) { .sticky-cta .ic { display: none; } }

/* ======================================================================
   THEME KIDSAFE-ADS — đồng bộ với ấn phẩm quảng cáo (D:\sources\kidsafe-ads\build\creatives.html):
   3 nền thương hiệu .bg-blue / .bg-ink / .bg-light, nút vàng bo tròn có bóng, tích vàng, khung điện thoại.
   Vàng logo (#F2B924). Nền xanh = gradient quảng cáo đậm hơn một bậc (#2541C4→#3152DC→#4A73F7, phương án C
   02/10/2026) để chữ trắng ở vùng chữ đạt 6,2–8:1 và chữ vàng 4,4–5,6:1. Trước đó (#3554E0→#557EFF) chữ
   mô tả nhạt ở giữa hero chỉ 3,65:1. Chữ luôn nằm nửa trái, ảnh/video nửa phải (nơi nền sáng nhất).
   ====================================================================== */
:root {
  --ads-blue: radial-gradient(900px 620px at 88% 8%, rgba(242, 185, 36, 0.22), transparent 62%),
              radial-gradient(700px 520px at 5% 96%, rgba(255, 255, 255, 0.14), transparent 60%),
              linear-gradient(135deg, #2541c4 0%, #3152dc 55%, #4a73f7 100%);
  --ads-ink: radial-gradient(760px 560px at 92% 6%, rgba(85, 126, 255, 0.42), transparent 62%),
             radial-gradient(620px 480px at 4% 100%, rgba(242, 185, 36, 0.2), transparent 60%),
             linear-gradient(140deg, #111c3f 0%, #1b2c63 60%, #22367a 100%);
  --ads-light: radial-gradient(700px 520px at 92% 4%, rgba(85, 126, 255, 0.12), transparent 60%),
               radial-gradient(560px 460px at 2% 98%, rgba(242, 185, 36, 0.14), transparent 58%),
               linear-gradient(160deg, #f7f9ff 0%, #edf2ff 100%);
  --accent-on-dark: #ffd35c;
  --cta-shadow: 0 12px 28px rgba(242, 185, 36, 0.35);
}

/* Nền */
.hero, .page-hero { background: var(--ads-blue); }
.final, .step-main, .plan-featured { background: var(--ads-ink); }
.plan-featured { border-color: transparent; box-shadow: 0 24px 60px rgba(17, 28, 63, 0.35); }
.site-footer { background: var(--ads-ink); }
.section-alt { background: var(--ads-light); }

/* Chữ trên nền xanh */
.hero h1, .page-hero h1 { font-weight: 800; letter-spacing: -0.02em; }
.hl, .final-text .hl { color: var(--accent-on-dark); }
.hero .lead, .page-hero .page-lead, .video-caption, .trust p { color: #fff; opacity: 0.95; }
.hero-features b { color: #fff; }
.hf-d { color: #fff; font-weight: 500; }
.price-month, .step-tag { color: var(--accent-on-dark); }

/* Huy hiệu trong suốt (pill) như .badge của quảng cáo */
.eyebrow-pill {
  background: rgba(17, 28, 63, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 600;
}
.hero-features li { background: rgba(255, 255, 255, 0.12); }
.hf-ic { color: var(--accent-on-dark); }
@media (min-width: 900px) {
  .hero-features li { background: none; }
  .hf-ic { background: #fff; color: #2541c4; border-radius: 50%; }
}

/* Nút: bo tròn hẳn; nút vàng có bóng như .cta quảng cáo */
.btn, .btn-row, .copy-btn, .link-btn { border-radius: 999px; }
.btn-gold { box-shadow: var(--cta-shadow); }
.btn-gold:hover { box-shadow: 0 14px 32px rgba(242, 185, 36, 0.45); }
.btn-bordered { border-color: transparent; }
.btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.1); }
.btn-ghost-light:hover { background: #fff; color: var(--blue); }
.nav-toggle, .lang-btn { border-radius: 999px; }
.promo { background: #fff6dc; }
.promo-tag { background: var(--blue); border-radius: 999px; padding: 2px 10px; }

/* Tích vàng tròn (.tick quảng cáo) */
.checklist .ic {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  margin-top: 1px;
}
.checklist { color: #fff; }

/* Số bước, video, ảnh điện thoại */
.step-num { background: var(--blue); }
.step-main .step-num { background: var(--gold); color: var(--gold-ink); }
.video { border-radius: 22px; outline: 0; box-shadow: 0 40px 80px rgba(8, 15, 40, 0.4), 0 0 0 1.5px rgba(255, 255, 255, 0.18); }
.video-btn { box-shadow: 0 0 0 10px rgba(242, 185, 36, 0.3), var(--cta-shadow); }
.phones img {
  border: 0;
  border-radius: 24px;
  padding: 6px;
  background: #0c1430;
  box-shadow: 0 28px 56px rgba(8, 15, 40, 0.28), 0 0 0 1.5px rgba(255, 255, 255, 0.1);
}
@media (min-width: 900px) { .phones img { border-radius: 30px; padding: 8px; } }

/* Thẻ: bo lớn hơn, bóng nhẹ thay viền đậm */
.fcard, .quote, .plan, .promise, .step, .card { border-radius: 20px; }
.fcard, .plan:not(.plan-featured), .promise { box-shadow: 0 8px 24px rgba(22, 32, 63, 0.06); }
.form-card { border-radius: 24px; box-shadow: 0 30px 70px rgba(8, 15, 40, 0.35); }
.plan-flag { border-radius: 999px; box-shadow: var(--cta-shadow); }
.eyebrow { color: var(--blue); letter-spacing: 0.12em; }
/* Desktop: menu nằm trong header, bỏ nền trắng + bóng của menu thả xuống (chỉ dùng cho mobile) */
@media (min-width: 1080px) { .main-nav { background: transparent; box-shadow: none; } }

/* ---------- Phản hồi khách hàng: dải vuốt ngang + chấm chỉ trang (mobile) ---------- */
.carousel-dots { display: none; }
@media (max-width: 639px) {
  .quotes {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 4px 16px 8px;
    scroll-padding: 0 16px;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 86%; scroll-snap-align: center; }
  .carousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: 12px; }
  .carousel-dot {
    /* vùng chạm 28px, chấm hiển thị 8px */
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .carousel-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c3cde8;
    transition: width 0.2s, background-color 0.2s;
  }
  .carousel-dot.active::before { width: 22px; background: var(--blue); }
}

/* Tiêu đề hero: câu đầu ("Con dùng máy an toàn.") luôn nằm trọn 1 dòng trên màn rộng — trước đây
   chữ "toàn." rơi một mình xuống dòng 2. Cỡ chữ co theo bề rộng cột để câu dài nhất (bản EN) vẫn vừa. */
@media (min-width: 900px) {
  .hero h1 { font-size: clamp(30px, 3vw, 42px); }
  .hero h1 .h1-line { white-space: nowrap; }
}

/* Phương án C: viền avatar trắng cho tách khỏi nền xanh */
.avatars img { border-color: #fff; }

/* ---------- Hero: thẻ tải app 2 dòng (bố mẹ / máy con) — phương án 3 ---------- */
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(17, 28, 63, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.dl-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.dl-label .ic { width: 16px; height: 16px; }
.dl-actions { display: flex; gap: 10px; flex-wrap: nowrap; }
.dl-card .store-badges img { width: 136px; }
.dl-sep { height: 1px; background: rgba(255, 255, 255, 0.18); }
.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.dl-chip:hover { background: #fff; color: var(--blue); }
.dl-chip .ic { width: 18px; height: 18px; }
.dl-chip .ic-sm { width: 15px; height: 15px; }
@media (max-width: 899px) {
  /* Mobile: thẻ tải xuống cuối hero (sau nút + tính năng), video vẫn ngay dưới tiêu đề */
  .hero-grid { grid-template-areas: none; }
  .hero-head, .hero-body, .hero-media { grid-area: auto; }
  .hero-head { order: 1; }
  .hero-media { display: contents; }
  .video { order: 2; }
  .video-caption { order: 3; }
  .hero-body { order: 4; }
  .dl-card { order: 5; }
  .dl-row { flex-direction: column; align-items: stretch; }
  .dl-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dl-actions a { justify-content: center; }
  .dl-card .store-badges img { width: 100%; }
}

/* Logo trong footer: khung trắng có padding đều 4 phía (logo.svg không có lề phải — chữ SAFE chạm mép) */
.footer-brand .logo { padding: 10px 18px; border-radius: 14px; }
.footer-brand .logo img { height: 30px; }

/* Hero mobile chỉ hiện tiêu đề tính năng (ẩn mô tả) ⇒ ô đầu dùng nhãn cụ thể "Chụp ảnh màn hình"
   thay cho "Theo dõi trực tiếp" (đứng một mình không rõ nghĩa); desktop có mô tả nên giữ nhãn gốc. */
.hf-t-lg { display: none; }
@media (min-width: 900px) {
  .hf-t-lg { display: inline; }
  .hf-t-sm { display: none; }
}

/* ===================================================================================
   Riêng kiddoshield.com (Global) — không có trong landing-v2
   =================================================================================== */

/* Logo: khiên + chữ (kidsafe.com.vn dùng logo.svg chữ KidSafe) */
.brand { align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 30px; width: 30px; }
.brand-text { font-size: 20px; font-weight: 800; color: var(--navy-900); letter-spacing: -0.01em; }
@media (min-width: 1080px) { .brand img { height: 34px; width: 34px; } .brand-text { font-size: 22px; } }
.footer-brand .brand { padding: 8px 14px; }
.footer-brand .brand img { height: 26px; width: 26px; }
.footer-brand .brand-text { font-size: 18px; }

/* Chọn ngôn ngữ: EN là trang này, VI là link sang kidsafe.com.vn */
.lang a.lang-btn { text-decoration: none; }
.lang span.lang-btn { background: #eef2fb; color: var(--navy-900); border-color: var(--navy-900); cursor: default; }
.lang-btn img { width: 20px; height: 15px; object-fit: cover; }

/* Hero: bộ ảnh màn hình máy con thay cho video tiếng Việt */
.hero-shots { padding-top: 6px; }
.hero-shots figcaption { color: var(--on-dark); }
.hero-shots img { box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1.5px rgba(255, 255, 255, 0.16); }
@media (max-width: 899px) {
  .hero-shots { order: 2; }
  .hero-shots figcaption { display: none; }
}
@media (min-width: 900px) { .hero-shots .phone-mid { margin-bottom: 28px; } }

.features-cta { display: flex; justify-content: center; margin-top: 32px; }

.plain-list { margin: 0; padding-left: 20px; color: var(--body); display: flex; flex-direction: column; gap: 6px; }
.promise p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Form Global: chọn nước + SĐT có mã vùng */
@media (min-width: 560px) { .field-wide { grid-column: 1 / -1; } }
.field-label { font-size: 15px; font-weight: 600; }
.country-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.country-chip img, .country-opt img { width: 20px; height: 15px; border-radius: 2px; flex-shrink: 0; }
.country-chip:hover { border-color: var(--navy-900); }
.country-chip[aria-pressed="true"] { background: #fff6dc; border-color: var(--gold-border); color: var(--gold-ink); }
.country-browse {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.country-browse .ic { width: 16px; height: 16px; }
.country-browse.is-other { color: var(--gold-ink); background: #fff6dc; border-radius: 999px; padding: 0 12px; text-decoration: none; border: 1.5px solid var(--gold-border); }
.country-menu { border: 1.5px solid var(--input-border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.field .country-search { height: 44px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.field .country-search:focus { outline: none; border-color: var(--navy-900); }
.country-list { max-height: 240px; overflow-y: auto; }
.country-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.country-opt:hover, .country-opt:focus { background: var(--surface); outline: none; }
.country-opt .dial { margin-left: auto; color: var(--muted); font-size: 14px; }
.country-empty { padding: 12px 14px; color: var(--muted); font-size: 14px; }

.phone-row { display: flex; align-items: stretch; }
.phone-dial {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1.5px solid var(--input-border);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.phone-row input { border-radius: 0 var(--radius) var(--radius) 0; min-width: 0; }
