/* GrooTalk — site giới thiệu (grootalk.com). Làm lại 11/10/2026 theo bố cục chủ sản phẩm chọn (ailearna.com): nền sáng, thanh điều
   hướng dính trên cùng, nhãn viền bo tròn, tiêu đề HAI TÔNG (xanh sáng + navy), minh hoạ dựng bằng HTML. Màu + chữ theo app. */
:root {
  --bg: #fff; --soft: #f3f9ff; --navy: #0f3557; --text: #24415c; --mut: #6a7f95; --ink: #0a84c8; --ink-deep: #006ba8;
  --sky: #3aa8f0; --tint: #e3f2ff; --line: #dcebf7; --gold: #ffd43b; --good: #1f9d63; --good-bg: #e4f6ec; --warn: #b7791f; --warn-bg: #fff4d9;
  --display: "Baloo 2", system-ui, sans-serif; --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 44px rgba(15, 53, 87, .10); --shadow-sm: 0 6px 18px rgba(15, 53, 87, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 span, h2 span { color: var(--sky); }
p { margin: 0; text-wrap: pretty; }

/* Thanh điều hướng — dính trên cùng, nền trắng mờ */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 30px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 25px var(--display); color: var(--navy); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { color: var(--ink); font-weight: 800; }
.nav .links { display: flex; gap: 28px; font-weight: 600; font-size: 15.5px; }
.nav .links a { color: var(--mut); }
.nav .links a:hover { color: var(--navy); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 13px;
  font-weight: 600; font-size: 14.5px; color: var(--navy); background: #fff; }
.lang svg { width: 17px; height: 17px; color: var(--mut); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 13px; background: var(--sky);
  color: #fff; font: 700 15.5px var(--body); box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }

/* Nhãn viền + tiêu đề phần */
.pill { display: inline-block; border: 1.5px solid var(--sky); color: var(--ink); border-radius: 999px; padding: 4px 14px;
  font: 700 12px var(--body); letter-spacing: .09em; text-transform: uppercase; background: #fff; }
section { padding: 96px 0; }
section.soft { background: linear-gradient(180deg, var(--soft), #fff); }
h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; margin-top: 16px; }
.sub { color: var(--mut); font-size: 18px; margin-top: 16px; max-width: 620px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* Phần đầu */
.hero { background: radial-gradient(900px 520px at 78% 30%, #dff0ff 0%, rgba(223, 240, 255, 0) 70%), linear-gradient(180deg, #f7fbff, #fff);
  padding: 64px 0 84px; overflow: hidden; }
.hero .split { grid-template-columns: 1.08fr .92fr; gap: 40px; }
.hero h1 { font-size: clamp(42px, 5vw, 66px); font-weight: 800; margin-top: 20px; color: var(--navy); }
.hero h1 span { display: block; }
.hero .lead { font-size: clamp(18px, 1.9vw, 20.5px); margin-top: 22px; max-width: 500px; color: var(--mut); }

/* Huy hiệu App Store + Google Play (ảnh chính thức). Ảnh của Google có lề trong suốt quanh huy hiệu → to hơn + lề âm cho bằng Apple. */
.stores { margin-top: 32px; display: inline-flex; flex-direction: column; gap: 12px; }
.stores .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stores a, .stores .row > span { display: block; line-height: 0; flex: none; }
.stores img { max-width: none; width: auto; }
.stores img.apple { height: 54px; }
.stores img.google { height: 81px; margin: -13.5px; }
.stores small { font: 600 14px var(--body); color: var(--mut); display: inline-flex; align-items: center; gap: 8px; }
.stores small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 212, 59, .28); }

/* Cụm nhân vật ở phần đầu — như màn chào của app */
.art { position: relative; width: min(520px, 92vw); aspect-ratio: 1 / 1; margin: 0 auto; }
.art::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #d3ebff, #eaf5ff 62%, rgba(234, 245, 255, 0) 72%); }
.art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed #cfe6f8; }
.art .av { position: absolute; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--shadow); }
.art .a0 { width: 44%; left: 28%; top: 25%; z-index: 2; }
.art .a1 { width: 25%; left: 6%; top: 12%; }
.art .a2 { width: 25%; right: 5%; top: 9%; }
.art .a3 { width: 21%; left: 2%; bottom: 20%; }
.art .a4 { width: 21%; right: 3%; bottom: 23%; }
.art .ring { position: absolute; z-index: 3; left: 61%; top: 60%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--good); color: #fff;
  display: grid; place-items: center; border: 4px solid #fff; box-shadow: var(--shadow-sm); }
.art .ring svg { width: 46%; height: 46%; }
.chip { position: absolute; z-index: 4; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 11px 15px; box-shadow: var(--shadow);
  font-size: 14.5px; line-height: 1.35; color: var(--navy); max-width: 250px; }
.chip b { display: block; font-weight: 700; }
.chip small { color: var(--mut); font-size: 12.5px; }
.chip.say { left: -2%; bottom: 5%; border-bottom-left-radius: 5px; }
.chip.fix { right: -3%; bottom: -3%; background: var(--warn-bg); border-color: #f3deaa; }
.chip.fix small { color: var(--warn); font-weight: 700; }
.chip.ok { right: 2%; top: 39%; display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--good); background: var(--good-bg); border-color: #c5ebd5; padding: 8px 13px; }
.chip.ok svg { width: 16px; height: 16px; }

/* Nhân vật */
.people { display: grid; gap: 14px; }
.person { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px 18px 14px 14px; box-shadow: var(--shadow-sm); }
.person:nth-child(2) { margin-left: 44px; }
.person:nth-child(3) { margin-left: 12px; }
.person img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex: none; }
.person h3 { font-size: 22px; font-weight: 700; }
.person p { font-size: 14.5px; color: var(--mut); line-height: 1.4; }
.person .tag { margin-left: auto; flex: none; font: 700 12.5px var(--body); color: var(--ink); background: var(--tint); border-radius: 999px; padding: 5px 12px; }
.accents { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.accent { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px; box-shadow: var(--shadow-sm); min-width: 170px; }
.accent b { display: block; font: 700 21px var(--display); color: var(--navy); line-height: 1.2; }
.accent small { color: var(--mut); font-size: 14px; }
.faces { display: flex; margin-top: 26px; padding-left: 10px; }
.faces img { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; margin-left: -10px; box-shadow: var(--shadow-sm); }
.faces span { align-self: center; margin-left: 12px; font-weight: 600; font-size: 14.5px; color: var(--mut); }

/* Cuộc gọi theo chủ đề — thẻ chuyển bằng radio (không cần JavaScript) */
.topics { margin-top: 36px; }
.topics > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tabs label { cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 9px 20px; font-weight: 600;
  font-size: 15.5px; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, background .15s, color .15s; }
.tabs label svg { width: 18px; height: 18px; color: var(--sky); }
.tabs label:hover { border-color: var(--sky); }
#t1:checked ~ .tabs label[for=t1], #t2:checked ~ .tabs label[for=t2], #t3:checked ~ .tabs label[for=t3], #t4:checked ~ .tabs label[for=t4] {
  border-color: var(--sky); background: var(--tint); color: var(--ink); }
#t1:focus-visible ~ .tabs label[for=t1], #t2:focus-visible ~ .tabs label[for=t2], #t3:focus-visible ~ .tabs label[for=t3], #t4:focus-visible ~ .tabs label[for=t4] {
  outline: 3px solid rgba(58, 168, 240, .45); outline-offset: 2px; }
.calls { margin: 34px auto 0; max-width: 760px; }
.call { display: none; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 26px 28px 30px; text-align: left; }
#t1:checked ~ .calls .c1, #t2:checked ~ .calls .c2, #t3:checked ~ .calls .c3, #t4:checked ~ .calls .c4 { display: block; }
.call header { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.call header img { width: 56px; height: 56px; border-radius: 50%; }
.call header h3 { font-size: 22px; font-weight: 700; }
.call header p { color: var(--mut); font-size: 14.5px; line-height: 1.35; }
.call header .lvl { margin-left: auto; font: 700 13px var(--body); color: var(--ink); background: var(--tint); border-radius: 999px; padding: 5px 13px; }
.task { margin-top: 18px; border-left: 4px solid var(--sky); background: var(--soft); border-radius: 4px 14px 14px 4px; padding: 10px 14px; font-size: 15px; color: var(--navy); }
.task small { display: block; font: 700 11.5px var(--body); letter-spacing: .08em; color: var(--ink); text-transform: uppercase; }
.bubble { margin-top: 14px; max-width: 78%; padding: 12px 16px; border-radius: 18px; font-size: 16.5px; line-height: 1.45; }
.bubble.ai { background: var(--soft); color: var(--navy); border-bottom-left-radius: 6px; }
.bubble.me { background: var(--sky); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.more { margin-top: 26px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.more span { font-size: 14px; font-weight: 600; color: var(--mut); background: var(--soft); border-radius: 999px; padding: 6px 14px; }

/* Sửa câu + điểm */
.review { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 26px; }
.review .bubble { margin-top: 0; max-width: 88%; }
.review .bubble u { text-decoration: underline wavy #ffb4a8; text-underline-offset: 4px; }
.fixcard { margin-top: 14px; background: var(--warn-bg); border: 1px solid #f3deaa; border-radius: 18px; padding: 14px 16px; }
.fixcard small { font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.fixcard b { display: block; color: var(--navy); font-size: 17px; margin-top: 2px; }
.fixcard p { font-size: 14.5px; color: var(--text); margin-top: 6px; }
.scores { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center; }
.total { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--good) 0 87%, #e4eef6 87% 100%); position: relative; }
.total::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.total b { position: relative; font: 800 34px var(--display); color: var(--navy); }
.bars { display: grid; gap: 9px; }
.bars div { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; font-size: 14px; font-weight: 600; color: var(--navy); }
.bars i { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: #e4eef6; overflow: hidden; }
.bars i::after { content: ""; display: block; height: 100%; width: var(--v); background: var(--good); border-radius: 99px; }
.bars em { font-style: normal; color: var(--good); font-weight: 700; }
.note { color: var(--mut); font-size: 14px; margin-top: 14px; }

/* Ba bước */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px 24px 0; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.step:nth-child(2) { background: var(--tint); border-color: #bfe0f8; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--ink); display: grid; place-items: center; font: 800 20px var(--display); }
.step:nth-child(2) .n { background: #fff; }
.step h3 { font-size: 26px; font-weight: 700; margin-top: 14px; }
.step p { color: var(--mut); font-size: 16px; margin-top: 6px; }
.step .phone { margin: 26px auto -150px; width: min(236px, 80%); }
.phone { aspect-ratio: 1206 / 2622; border-radius: 40px; padding: 8px; background: #0b1b2c; box-shadow: 0 22px 44px rgba(15, 53, 87, .22); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; }

/* Ngôn ngữ */
.translate { margin: 40px auto 0; max-width: 560px; text-align: left; display: grid; gap: 12px; }
.translate .row { display: flex; gap: 12px; align-items: flex-end; }
.translate img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.translate .box { background: #fff; border: 1px solid var(--line); border-radius: 20px; border-bottom-left-radius: 6px; padding: 14px 18px; box-shadow: var(--shadow-sm); font-size: 16.5px; color: var(--navy); }
.translate .box i { display: block; font-style: normal; color: var(--mut); border-top: 1px solid var(--line); margin-top: 9px; padding-top: 9px; }
.marquee { margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee div { display: flex; gap: 12px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 20px; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Chỉ trang tiếng Việt: Mẫu câu + Phản xạ */
.drill ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.drill li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-sm); color: var(--mut); }
.drill li b { color: var(--navy); }
.drill .phone { width: min(280px, 76vw); margin: 0 auto; }

/* Hỏi đáp */
.faq { max-width: 820px; margin: 44px auto 0; display: grid; gap: 12px; text-align: left; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font: 700 21px var(--display); color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--sky); border-bottom: 2.5px solid var(--sky);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding: 0 22px 20px; color: var(--mut); }

/* Lời mời cuối + chân trang */
.cta { padding: 0 0 96px; }
.cta .box { background: linear-gradient(135deg, #2aa9ee, #0a7fc2 70%, #086aa6); border-radius: 36px; padding: 64px 32px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta .box::before, .cta .box::after { content: ""; position: absolute; border-radius: 50%; border: 44px solid rgba(255, 255, 255, .07); width: 340px; height: 340px; }
.cta .box::before { left: -130px; top: -150px; }
.cta .box::after { right: -120px; bottom: -170px; }
.cta h2 { color: #fff; margin: 0; }
.cta .sub { color: #dff1ff; margin-inline: auto; }
.cta .stores { align-items: center; position: relative; z-index: 1; }
.cta .stores .row { justify-content: center; }
.cta .stores small { color: #eaf6ff; }
footer { border-top: 1px solid var(--line); padding: 52px 0 36px; color: var(--mut); font-size: 15.5px; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
footer .about p { margin-top: 12px; max-width: 300px; }
footer h4 { font: 700 15px var(--body); color: var(--navy); margin: 6px 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer li a { color: var(--mut); }
footer li a:hover { color: var(--ink); }
footer .stores { margin-top: 0; }
footer .stores img.apple { height: 42px; }
footer .stores img.google { height: 63px; margin: -10.5px; }
footer .stores small { display: none; }
footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; }
footer .legal span { margin-right: auto; }
footer .company { margin-top: 10px; font-size: 13.5px; line-height: 1.6; }
footer .company a { color: inherit; text-decoration: underline; }

/* Trang lỗi 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 940px) {
  .split, .hero .split { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 44px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .stores { align-items: center; }
  .hero .stores .row { justify-content: center; }
  .nav .links { display: none; }
  .steps { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .person:nth-child(n) { margin-left: 0; }
  section { padding: 68px 0; }
  .cta { padding-bottom: 68px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .chip.say { left: 0; }
  .chip.fix { right: 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav .btn { display: none; }
  .call { padding: 20px 18px 24px; }
  .bubble { max-width: 90%; }
  .scores { grid-template-columns: 1fr; justify-items: center; }
  .bars { width: 100%; }
  .chip { font-size: 13px; max-width: 200px; padding: 9px 12px; }
  .chip.ok { top: 36%; }
  footer .cols { grid-template-columns: 1fr; }
  .person .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee div { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .btn { transition: none; }
}
