/* Web KiDoSo — theo giao diện kidoso.vn cũ: nền trắng, xanh lá #486C33, cam #ED6D0D, chữ Roboto (phông hệ thống,
   không tải phông ngoài), ảnh app thật, footer xanh có đường sóng. Không JavaScript. */

:root {
  --green: #486C33;
  --green-dark: #3a5829;
  --green-soft: #eef4ea;
  --orange: #ED6D0D;
  --orange-dark: #d65f08;
  --orange-soft: #fff1e6;
  --heading: #111;
  --text: #3d3d3d;
  --muted: #707070;
  --line: #ececec;
  --bg-alt: #f8f8f8;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3 { color: var(--heading); margin: 0 0 16px; line-height: 1.25; }
h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 400; }
h3 { font-size: 20px; font-weight: 500; }
p { margin: 0 0 16px; }
ul { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--muted); font-size: 14px; }
[id] { scroll-margin-top: 90px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-inline { flex: none; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 500; line-height: 1.4; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 8px 18px; font-size: 15px; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(237, 109, 13, .3); }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(72, 108, 51, .28); }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { color: var(--orange); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow { margin: 0 0 8px; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--orange); }
.eyebrow-green { color: var(--green); font-weight: 700; }

.badge { display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; }
.badge-soon { background: var(--orange-soft); color: var(--orange-dark); }
.badge-live { background: var(--green-soft); color: var(--green); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; }
.brand img { width: 126px; height: auto; }
.nav-desktop { display: flex; gap: 4px; margin-left: auto; }
.nav-desktop a, .nav-mobile-panel nav a { color: #555; padding: 8px 12px; font-size: 15px; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"],
.nav-mobile-panel nav a:hover, .nav-mobile-panel nav a[aria-current="page"] { color: var(--green); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; font-size: 13px; text-transform: uppercase; }
.lang-switch a { color: var(--muted); padding: 4px 6px; }
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a[aria-current="true"] { color: var(--green); font-weight: 700; }

.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 8px; color: var(--heading); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  padding: 8px 16px 20px; border-top: 1px solid var(--line);
}
.nav-mobile-panel nav { display: flex; flex-direction: column; }
.nav-mobile-panel nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.nav-mobile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }

/* ---------- Trang chủ ---------- */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 18px; margin-bottom: 28px; }
.hero-visual { position: relative; }

.stats-band { background: linear-gradient(#fff 50%, var(--bg-alt) 50%); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 0; text-align: center;
}
.stats li + li { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 26px; font-weight: 700; color: var(--green); }
.stats span { color: var(--heading); }

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-top { align-items: start; }
.split-img { margin: 0 auto; }

.icon-list { margin-top: 32px; display: grid; gap: 22px; }
.icon-list li { display: flex; gap: 20px; align-items: flex-start; }
.icon-list p { margin: 0; }
.icon-box {
  flex: none; width: 64px; height: 64px; display: grid; place-items: center;
  background: #fff; border-radius: 6px; box-shadow: var(--shadow);
}

.features { display: grid; grid-template-columns: 1fr minmax(220px, 340px) 1fr; gap: 40px; align-items: center; }
.features-img { margin: 0 auto; }
.feature-col { display: grid; gap: 36px; }
.feature-col li { display: flex; gap: 18px; align-items: flex-start; }
.feature-col p { margin: 0; }
.feature-icon { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; }
.fi-1 { background: #f1e6fb; } .fi-2 { background: #e2f1fb; } .fi-3 { background: #fbe9e9; }
.fi-4 { background: #e6f4ee; } .fi-5 { background: #fde8ec; } .fi-6 { background: #ececf6; }

.cta-gradient { padding: 72px 0; color: #fff; background: linear-gradient(100deg, var(--green) 0%, #8a6b23 55%, var(--orange) 100%); }
.cta-gradient h2 { color: #fff; }
.cta-gradient p { font-size: 18px; margin-bottom: 28px; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-4 .card { padding: 24px 22px; }
.card { background: #fff; border-radius: 10px; padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 18px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.card-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.app-card .card-links { flex-wrap: nowrap; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.card-meta-links {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted);
}
.card-meta-links a { color: var(--muted); }
.card-meta-links a:hover { color: var(--green); }
.app-card { display: flex; flex-direction: column; }
.app-card > p:not(.app-tag) { flex: 1; }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.app-card-top img { width: 64px; height: 64px; border-radius: 14px; }
.app-card h3 { margin-bottom: 4px; }
.app-tag { color: var(--green); font-size: 14px; font-weight: 500; }
.app-bullets { margin: 0 0 14px; display: grid; gap: 6px; font-size: 14px; color: var(--text); }
.app-bullets li { display: flex; align-items: center; gap: 8px; }
.app-bullets .icon-inline { color: var(--green); }

.guides h3 { margin-bottom: 12px; }
.guides li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.guides .muted { margin: 14px 0 0; }

/* ---------- Trang sản phẩm ---------- */
.hero-product { padding: 64px 0; background: var(--green-soft); }
.product-hero { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.product-hero-icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: var(--shadow); }
.hero-product .lead { font-size: 18px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 99px; padding: 6px 16px; font-size: 15px; }
.facts .icon { width: 18px; height: 18px; color: var(--green); }
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-store { background: #000; color: #fff; padding: 9px 18px; border: 1.5px solid #a6a6a6; border-radius: 8px; gap: 12px; text-align: left; }
.btn-store:hover { background: #1a1a1a; color: #fff; border-color: #d0d0d0; }
.btn-store .store-badge-icon { width: 24px; height: 24px; flex-shrink: 0; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.btn-store small { font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; opacity: .9; }
.soon-note { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.product-meta-links {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
}
.product-meta-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.callout { background: #fff; border-radius: 10px; padding: 28px; box-shadow: var(--shadow); }
.screens-grid { align-items: start; }
.screen-card { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.screen-card img { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto 14px; }
.screen-card figcaption { display: flex; flex-direction: column; gap: 4px; max-width: 250px; }
.screen-card figcaption strong { font-size: 17px; font-weight: 500; color: var(--heading); }
.screen-card figcaption span { font-size: 14px; line-height: 1.5; color: var(--text); }
.cta-band { color: #fff; background: linear-gradient(100deg, var(--green) 0%, #8a6b23 55%, var(--orange) 100%); padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner p { margin: 0; }
.cta-band .btn-store { background: #000; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta-band .btn-store:hover { background: #1a1a1a; color: #fff; border-color: #fff; }
.cta-band .soon-note .badge { background: #fff; }

/* ---------- Trang pháp lý, 404 ---------- */
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal h2 { font-size: 22px; font-weight: 500; margin-top: 36px; }
.legal-meta { color: var(--muted); font-size: 14px; }
.legal-summary { background: var(--green-soft); border-radius: var(--radius); padding: 20px 24px; }
.legal-summary h2 { margin-top: 0; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.notfound { text-align: center; }
.notfound .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; padding-top: 150px; color: rgba(255, 255, 255, .88); background: var(--green); }
.site-footer::before {  /* đường sóng trắng của web cũ phủ lên mép trên nền xanh */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 103px;
  background: url("/static/img/footer-wave.png") center top / auto 103px no-repeat;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer-brand img { width: 126px; margin-bottom: 14px; }
.footer-brand p { font-size: 15px; }
.footer-company { color: #fff; font-weight: 500; margin-bottom: 8px; }
.footer-social { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.footer-title { font-size: 19px; font-weight: 400; color: #fff; margin: 0 0 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, .85); font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding: 18px 0; font-size: 14px; }
.footer-bottom-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { margin: 0; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1080px) {
  .nav-desktop, .header-actions { display: none; }
  .nav-mobile { display: block; }
  .header-row { position: relative; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
  .features-img { grid-column: 1 / -1; grid-row: 1; max-width: 260px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { padding-top: 32px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .features, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature-col { gap: 28px; }
  .stats { padding: 20px 0; }
  .stats b { font-size: 22px; }
  .product-hero { grid-template-columns: 1fr; gap: 24px; }
  .product-hero-icon { width: 96px; height: 96px; border-radius: 22px; }
  .site-footer { padding-top: 110px; }
  .footer-grid { grid-template-columns: 1fr; }
}
