/* ═══════════════════════════════════════════════════════════════
   SafeKids — landing gioithieu.safekids.io.vn
   Design system 2026: xanh brand + gradient indigo mềm,
   neutral ám xanh, bóng nhiều lớp, khung thiết bị, micro-interaction.
   Static thuần, system font, mobile-first.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand core */
  --blue-1: #2F6BE0;
  --blue-2: #3B82F6;
  --indigo: #6D5DF6;
  --mint: #14B8A6;
  --coral: #F0522C;
  --amber: #F59E0B;

  /* Tint surfaces (neutral ám xanh, không xám chết) */
  --blue-soft: #EAF1FE;
  --indigo-soft: #EEEDFE;
  --mint-soft: #E4F9F5;
  --coral-soft: #FEEFEA;
  --amber-soft: #FEF5E7;

  /* Neutrals */
  --ink: #0B1B33;
  --sub: #4E5F7A;
  --mute: #7C8AA5;
  --line: #E3E9F4;
  --line-strong: #CFDAF0;
  --bg: #F6F8FD;
  --bg-lav: #F5F6FE;
  --white: #FFFFFF;
  --navy: #0A1428;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #2F6BE0 0%, #4F71EE 55%, #6D5DF6 100%);
  --grad-brand-soft: linear-gradient(135deg, #3B82F6 0%, #6D5DF6 100%);
  --grad-deep: linear-gradient(140deg, #14286B 0%, #2450BE 48%, #4F62E8 100%);
  --grad-mint: linear-gradient(135deg, #2F6BE0 0%, #14B8A6 100%);

  /* Radius */
  --r-xl: 24px;
  --r-card: 20px;
  --r-btn: 14px;

  /* Bóng mềm nhiều lớp */
  --shadow-sm:
    0 1px 2px rgba(11, 27, 51, .04),
    0 3px 10px rgba(11, 27, 51, .04);
  --shadow-md:
    0 2px 4px rgba(11, 27, 51, .05),
    0 10px 24px rgba(47, 107, 224, .10),
    0 26px 52px rgba(47, 107, 224, .07);
  --shadow-lg:
    0 4px 10px rgba(11, 27, 51, .08),
    0 20px 44px rgba(47, 107, 224, .16),
    0 44px 96px rgba(109, 93, 246, .12);
  --shadow-btn: 0 4px 14px rgba(47, 107, 224, .32), inset 0 1px 0 rgba(255, 255, 255, .22);
  --shadow-btn-hover: 0 8px 22px rgba(47, 107, 224, .40), inset 0 1px 0 rgba(255, 255, 255, .22);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .3, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-1); text-decoration: none; }

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Focus bàn phím rõ ràng, đẹp */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(47, 107, 224, .55);
  outline-offset: 2px;
  border-radius: 10px;
}

::selection { background: rgba(59, 130, 246, .22); }

/* ── Khung chung ── */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 800px; }

section { padding: clamp(64px, 9vw, 100px) 0; }
section[id] { scroll-margin-top: 84px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-1);
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand-soft);
}

h2 {
  font-size: clamp(27px, 4.2vw, 40px);
  line-height: 1.18;
  letter-spacing: -.022em;
  font-weight: 800;
  max-width: 21em;
}

.sect-sub {
  color: var(--sub);
  font-size: clamp(16px, 2vw, 17.5px);
  margin-top: 12px;
  max-width: 38em;
}

/* ── Nút ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--r-btn);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { box-shadow: var(--shadow-btn-hover); transform: translateY(-2px); }

.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg); }

.btn-outline {
  color: var(--blue-1);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--blue-1); background: var(--blue-soft); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--blue-1);
  box-shadow: 0 4px 16px rgba(6, 16, 40, .22), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6, 16, 40, .28); }

.btn-glass {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }

.btn-lg { min-height: 54px; padding: 15px 30px; font-size: 16px; border-radius: 16px; }

/* ═════════ Header ═════════ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}
@media (max-width: 559px) {
  .head-in { gap: 10px; }
}
/* Màn rất nhỏ: giữ icon khiên, ẩn wordmark cho đủ chỗ nút */
@media (max-width: 479px) {
  .brand-word { display: none; }
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-shield { width: 36px; height: 36px; }
.brand-word { height: 22px; width: auto; }

.head-nav { display: none; align-items: center; gap: 2px; margin-left: 10px; }
.head-nav a {
  color: var(--sub);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 11px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.head-nav a:hover { color: var(--ink); background: var(--bg); }

/* Mục Tải xuống trong nav (desktop) */
.nav-dl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-1) !important;
  border: 1.5px solid var(--line-strong);
  margin-left: 6px;
}
.nav-dl svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-dl:hover { border-color: var(--blue-1); background: var(--blue-soft) !important; color: var(--blue-1) !important; }

.head-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Nút Tải trên mobile/tablet (ẩn khi nav desktop hiện) */
.head-dl {
  display: inline-flex;
  border: 1.5px solid var(--line-strong);
  color: var(--blue-1);
  padding: 10px 14px;
}
.head-dl svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.head-dl:hover { border-color: var(--blue-1); background: var(--blue-soft); }

.head-login { display: none; }

@media (max-width: 559px) {
  .head-dl span { display: none; }
  .head-dl { padding: 10px 12px; }
}
@media (min-width: 720px) {
  .head-login { display: inline-flex; }
}
@media (min-width: 960px) {
  .head-nav { display: flex; }
  .head-dl { display: none; }
}

/* ═════════ Hero ═════════ */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 88px) 0 clamp(72px, 8vw, 104px);
  background:
    radial-gradient(880px 460px at 88% -12%, rgba(109, 93, 246, .13), transparent 62%),
    radial-gradient(760px 460px at -8% 34%, rgba(20, 184, 166, .09), transparent 60%),
    radial-gradient(600px 380px at 55% 110%, rgba(59, 130, 246, .08), transparent 60%),
    linear-gradient(180deg, #F4F7FE 0%, #F7F9FE 100%);
  overflow: hidden;
}
/* lưới chấm mờ tạo chất liệu */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(47, 107, 224, .07) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(720px 480px at 70% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 480px at 70% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: grid;
  gap: 52px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge strong { font-weight: 800; color: var(--blue-1); }
.hero-badge svg { width: 16px; height: 16px; fill: var(--amber); }

.hero h1 {
  font-size: clamp(33px, 5.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -.028em;
  font-weight: 800;
}

.grad-text {
  background: var(--grad-brand-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--sub);
  max-width: 33em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note { margin-top: 16px; font-size: 14px; color: var(--mute); }

/* Ảnh hero: ĐIỆN THOẠI (web quản trị) là nhân vật chính,
   app PC của con là thẻ phụ nhỏ chồng góc phía sau */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 430px;
  min-height: 300px;
}
/* quầng sáng sau cụm ảnh */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% -4% 2% 10%;
  background: var(--grad-brand-soft);
  opacity: .12;
  border-radius: 48px;
  transform: rotate(-5deg);
}
.hero-phone {
  position: relative;
  z-index: 2;
  width: clamp(220px, 62%, 268px);
  margin-left: auto;
  margin-right: 6%;
  border-radius: 34px;
  border: 7px solid #101A2E;
  background: #101A2E;
  box-shadow: var(--shadow-lg);
}
.hero-pc {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 6%;
  width: 44%;
  border-radius: 18px;
  border: 5px solid var(--white);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
}

@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.06fr .94fr; gap: 48px; }
  .hero-visual { max-width: 470px; }
}

/* ═════════ Dải số liệu ═════════ */
.stats {
  padding: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stats-in {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  padding: 30px 22px;
}

.stat { display: flex; flex-direction: column; gap: 3px; }
.stat strong {
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--grad-brand-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 13.5px; color: var(--sub); line-height: 1.45; max-width: 24em; }

@media (min-width: 860px) {
  .stats-in { grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 34px 22px; }
  .stat { padding-left: 18px; border-left: 1px solid var(--line); }
  .stat:first-child { border-left: 0; padding-left: 0; }
}

/* ═════════ Nỗi lo -> giải pháp ═════════ */
.pain { background: var(--white); }

.pain-grid {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.pain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--coral-soft);
  margin-bottom: 14px;
}
.pain-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain-card h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.pain-card p { margin-top: 8px; font-size: 15px; color: var(--sub); }

@media (min-width: 640px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pain-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.pain-bridge {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-top: 44px;
  background:
    radial-gradient(560px 280px at 88% -20%, rgba(255, 255, 255, .16), transparent 60%),
    var(--grad-deep);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.pain-bridge h3 { font-size: clamp(21px, 3vw, 27px); font-weight: 800; letter-spacing: -.018em; }
.pain-bridge p { margin-top: 10px; color: rgba(255, 255, 255, .87); font-size: 16px; max-width: 42em; }

@media (min-width: 880px) {
  .pain-bridge { grid-template-columns: 1fr auto; }
}

/* ═════════ Showcase tính năng chính ═════════ */
.showcase {
  background:
    radial-gradient(720px 420px at 100% 6%, rgba(109, 93, 246, .07), transparent 60%),
    radial-gradient(720px 420px at 0% 70%, rgba(20, 184, 166, .06), transparent 60%),
    var(--bg);
}

.show-item {
  display: grid;
  gap: 34px;
  align-items: center;
  margin-top: clamp(52px, 7vw, 84px);
}

.show-media {
  position: relative;
  display: flex;
  justify-content: center;
}
/* nền blob mềm sau ảnh */
.show-media::before {
  content: "";
  position: absolute;
  inset: 8% 14%;
  background: var(--grad-brand-soft);
  opacity: .10;
  border-radius: 44px;
  transform: rotate(-5deg);
}

.phone-shot {
  position: relative;
  z-index: 1;
  width: clamp(210px, 58vw, 246px);
  border-radius: 32px;
  border: 7px solid #101A2E;
  background: #101A2E;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.show-item:hover .phone-shot { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.show-chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.sc-blue  { background: var(--blue-soft);  color: #1D50B8; }
.sc-teal  { background: var(--mint-soft);  color: #0B7A6E; }
.sc-navy  { background: var(--indigo-soft); color: #4A3DD1; }
.sc-coral { background: var(--coral-soft); color: #C23A18; }

.show-copy h3 {
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: 1.22;
}
.show-copy > p { margin-top: 12px; color: var(--sub); font-size: 16px; max-width: 34em; }

/* Danh sách tick dùng chung (showcase + riêng tư) */
.tick-list {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.tick-list li {
  position: relative;
  padding-left: 34px;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.55;
}
.tick-list li strong { color: var(--ink); }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5 9-10"/></svg>') center/12px no-repeat,
    var(--grad-mint);
}

@media (min-width: 880px) {
  .show-item { grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 6vw, 76px); }
  .show-item:nth-of-type(even) .show-media { order: 2; }
}

/* ═════════ Grid tất cả tính năng ═════════ */
.features { background: var(--white); }

.feat-grid {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}

.feat-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
/* mái màu nhận diện trên đầu card */
.feat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand-soft);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.feat-card:hover::before { opacity: 1; }

.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  margin-bottom: 16px;
}
.feat-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fi-blue { background: var(--blue-soft); }
.fi-blue svg { stroke: var(--blue-1); }
.fi-teal { background: var(--mint-soft); }
.fi-teal svg { stroke: #0D9488; }
.fi-navy { background: var(--indigo-soft); }
.fi-navy svg { stroke: #5A4BE8; }
.fi-coral { background: var(--coral-soft); }
.fi-coral svg { stroke: var(--coral); }

.feat-card h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.feat-card p { margin-top: 8px; font-size: 14.5px; color: var(--sub); }

@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ═════════ Cách hoạt động ═════════ */
.how { background: var(--bg-lav); }

.how-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.how-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 5px 14px rgba(47, 107, 224, .32);
}

.how-step h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -.012em; }
.how-step p { margin-top: 8px; font-size: 15px; color: var(--sub); }

.how-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  color: var(--blue-1);
  background: var(--white);
  font-weight: 700;
  font-size: 13.5px;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.how-dl:hover { background: var(--blue-1); border-color: var(--blue-1); color: var(--white); transform: translateY(-1px); }
.how-dl svg { flex-shrink: 0; }

/* Ảnh thật từng bước, đóng khung thiết bị */
.step-shot {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.step-shot img {
  width: clamp(170px, 46vw, 196px);
  border-radius: 26px;
  border: 6px solid #101A2E;
  background: #101A2E;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease);
}
.how-step:hover .step-shot img { transform: translateY(-4px); }

/* Bước 1: màn ghép nối chạy trên MÁY TÍNH của con -> khung cửa sổ máy tính (không phải điện thoại) */
.step-shot.pc-frame { flex-direction: column; align-items: center; }
.step-shot.pc-frame .pc-bar { width: clamp(210px, 56vw, 250px); height: 26px; border-radius: 12px 12px 0 0;
  background: #E9EEF6; border: 1px solid var(--border, #DCE3EE); border-bottom: 0; display: flex; align-items: center; gap: 6px; padding: 0 12px; box-sizing: border-box; }
.step-shot.pc-frame .pc-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C7D0DE; }
.step-shot.pc-frame .pc-bar i:first-child { background: #F87171; }
.step-shot.pc-frame .pc-bar i:nth-child(2) { background: #FBBF24; }
.step-shot.pc-frame .pc-bar i:nth-child(3) { background: #34D399; }
.step-shot.pc-frame img { width: clamp(210px, 56vw, 250px); border: 1px solid var(--border, #DCE3EE); border-radius: 0 0 14px 14px; background: #fff; box-shadow: var(--shadow-md); }
.how-step:hover .step-shot.pc-frame img { transform: none; }
.how-step:hover .step-shot.pc-frame { transform: translateY(-4px); transition: transform .25s var(--ease); }

@media (min-width: 800px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step-shot { margin-top: auto; padding-top: 24px; }
}

/* ═════════ Vì sao chọn SafeKids ═════════ */
.why { background: var(--white); }

.why-grid {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}

.why-item {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--blue-soft);
  margin-bottom: 14px;
}
.why-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--blue-1);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-item h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.why-item p { margin-top: 7px; font-size: 14.5px; color: var(--sub); }

@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ═════════ Phù hợp với ai ═════════ */
.fit { background: var(--bg); }

.fit-grid {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}

.fit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.fit-age {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--grad-brand-soft);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.fit-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.012em; }
.fit-card p { margin-top: 8px; font-size: 15px; color: var(--sub); }

@media (min-width: 800px) {
  .fit-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ═════════ Bảng giá ═════════ */
.pricing { background: var(--white); }

.price-free {
  position: relative;
  display: grid;
  gap: 26px;
  align-items: center;
  margin-top: 40px;
  background:
    radial-gradient(620px 320px at 90% -24%, rgba(255, 255, 255, .15), transparent 60%),
    var(--grad-deep);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.price-free-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.price-free h3 { font-size: clamp(23px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.018em; }
.price-free-copy > p {
  margin-top: 10px;
  color: rgba(255, 255, 255, .86);
  font-size: 15.5px;
  max-width: 32em;
}
.price-free-copy .btn { margin-top: 24px; }

.price-free-shot {
  width: clamp(150px, 30vw, 178px);
  justify-self: center;
  border-radius: 26px;
  border: 6px solid rgba(255, 255, 255, .92);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(4, 10, 30, .38);
  transform: rotate(3deg);
}

@media (min-width: 800px) {
  .price-free { grid-template-columns: 1fr auto; }
  .price-free-shot { margin-right: 12px; }
}

.price-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  grid-template-columns: repeat(2, 1fr);
}

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card h3 { font-size: 14.5px; font-weight: 700; color: var(--sub); letter-spacing: .01em; }
.price-num {
  font-size: clamp(24px, 3.6vw, 31px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 6px;
}
.price-per { font-size: 13px; color: var(--mute); margin-top: 4px; }

.price-hot {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--grad-brand-soft) border-box;
  box-shadow: var(--shadow-md);
}
.price-hot .price-num {
  background: var(--grad-brand-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand-soft);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 4px 15px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(79, 98, 232, .38);
}

@media (min-width: 800px) {
  .price-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.price-note {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--sub);
}

/* ═════════ Riêng tư ═════════ */
.privacy {
  background:
    radial-gradient(680px 380px at 6% 10%, rgba(20, 184, 166, .07), transparent 60%),
    var(--bg-lav);
}

.privacy-in {
  display: grid;
  gap: 34px;
  align-items: center;
  justify-items: center;
}

.privacy-shield {
  width: 124px;
  height: 124px;
  filter: drop-shadow(0 14px 30px rgba(47, 107, 224, .32));
}

.privacy-copy h2 { max-width: 19em; }
.privacy-copy .tick-list { margin-top: 24px; gap: 14px; }
.privacy-copy .tick-list li { font-size: 15.5px; }

@media (min-width: 860px) {
  .privacy-in { grid-template-columns: auto 1fr; gap: 60px; justify-items: start; }
  .privacy-shield { width: 156px; height: 156px; }
}

/* ═════════ FAQ ═════════ */
.faq { background: var(--white); }

.faq-item {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item:first-of-type { margin-top: 36px; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 19px 22px;
  min-height: 44px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.005em;
  transition: background .15s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg); }

.faq-mark {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  transition: transform .22s var(--ease), background .22s var(--ease);
}
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-1);
  transform: translate(-50%, -50%);
}
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-mark { background: var(--blue-1); transform: rotate(45deg); }
.faq-item[open] .faq-mark::before, .faq-item[open] .faq-mark::after { background: var(--white); }

.faq-item > p {
  padding: 0 22px 22px;
  color: var(--sub);
  font-size: 15.5px;
  max-width: 62ch;
}

/* ═════════ CTA cuối ═════════ */
.cta-final {
  position: relative;
  background:
    radial-gradient(760px 400px at 82% -6%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(560px 320px at 8% 110%, rgba(109, 93, 246, .35), transparent 62%),
    var(--grad-deep);
  color: var(--white);
  text-align: center;
  padding: clamp(76px, 9vw, 104px) 0;
  overflow: hidden;
}

.cta-in h2 { margin: 0 auto; }
.cta-in > p {
  margin: 16px auto 0;
  max-width: 33em;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.cta-note { margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.cta-note a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ═════════ Footer ═════════ */
.site-foot {
  background: var(--navy);
  color: #93A5C4;
  padding: 52px 0 30px;
}

.foot-in {
  display: grid;
  gap: 30px;
}

.foot-brand p { margin-top: 14px; font-size: 14px; max-width: 30em; }
.foot-brand .brand-word { filter: brightness(0) invert(1); opacity: .92; }

.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; align-content: start; }
.foot-links a {
  color: #C4D0E6;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .15s var(--ease);
}
.foot-links a:hover { color: var(--white); }
.foot-links a:focus-visible { outline-color: rgba(255, 255, 255, .6); }

.foot-copy {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(147, 165, 196, .16);
  font-size: 13px;
}

@media (min-width: 800px) {
  .foot-in { grid-template-columns: 1fr auto; gap: 44px; }
}

/* ── Tôn trọng giảm chuyển động ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ═════════ Nút Zalo nổi (nhảy nhót) ═════════ */
.zalo-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 7px; border-radius: 999px; background: #fff; color: #0068FF; font-weight: 700; font-size: 13.5px;
  text-decoration: none; box-shadow: 0 12px 30px -8px rgba(0,104,255,.5), 0 3px 10px rgba(0,0,0,.14);
  animation: zaloBounce 1.6s ease-in-out infinite; }
.zalo-fab:hover { filter: brightness(1.02); }
.zalo-ic { position: relative; display: inline-flex; }
.zalo-ic svg { display: block; border-radius: 12px; }
.zalo-ring { position: absolute; inset: 0; border-radius: 12px; background: #0068FF; z-index: -1;
  animation: zaloPulse 1.8s ease-out infinite; }
.zalo-txt { white-space: nowrap; }
@keyframes zaloBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes zaloPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.3); opacity: 0; } }
@media (max-width: 560px) {
  .zalo-fab { padding: 10px; gap: 0; right: 14px; bottom: 14px; }
  .zalo-txt { display: none; }
  .zalo-ic svg { width: 58px; height: 58px; border-radius: 17px; }
  .zalo-ring { border-radius: 17px; }
}
@media (prefers-reduced-motion: reduce) { .zalo-fab { animation: none; } .zalo-ring { animation: none; opacity: 0; } }
