/* Trang giới thiệu petoo.vn. Cùng bảng màu với trang bố mẹ (style.css). */
:root {
  --bg: #fff7ec;
  --bg2: #ffe9ef;
  --card: #ffffff;
  --text: #3a2e39;
  --muted: #7d6d7b;
  --line: #f1e3e6;
  --brand: #ff6f8e;
  --brand-ink: #e0486d;
  --brand-soft: #ffe1e8;
  --ok: #2f9e5b;
  --shadow: 0 2px 10px rgba(90, 40, 60, .08);
  --shadow-lg: 0 18px 50px rgba(120, 40, 70, .18);
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1719; --bg2: #2a1f24; --card: #2a2226; --text: #f6ecef; --muted: #b8a7ad; --line: #3b3035;
    --brand: #ff8fa3; --brand-ink: #ffb0c0; --brand-soft: #4a2c35; --ok: #5fd08d;
    --shadow: 0 2px 10px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1719; --bg2: #2a1f24; --card: #2a2226; --text: #f6ecef; --muted: #b8a7ad; --line: #3b3035;
  --brand: #ff8fa3; --brand-ink: #ffb0c0; --brand-soft: #4a2c35; --ok: #5fd08d;
  --shadow: 0 2px 10px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; }
body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--brand-ink); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; max-width: 22ch; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 15px; padding: 10px 18px; min-height: 44px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.btn.big { font-size: 17px; padding: 14px 24px; min-height: 54px; border-radius: 16px; }
.btn.soft { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.btn.small { padding: 8px 16px; min-height: 40px; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); box-shadow: none; pointer-events: none; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink);
}

/* thanh trên */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { border-radius: 10px; }
.links { display: none; gap: 26px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--text); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .links { display: flex; } .nav .btn { margin-left: 8px; } }

/* hero */
.hero { background: radial-gradient(120% 90% at 85% 10%, var(--bg2) 0%, var(--bg) 60%); padding: 40px 0 56px; }
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.1fr .9fr; gap: 56px; } .hero { padding: 72px 0 88px; } }
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); font-weight: 800; margin: 16px 0 16px; letter-spacing: -.02em; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.cta .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .cta .btn { flex: 0 0 auto; } }
.meta { font-size: 14px; color: var(--muted); }

/* điện thoại minh hoạ */
.hero-art { position: relative; display: grid; place-items: center; padding: 10px 0; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
  background: #2b2229; box-shadow: var(--shadow-lg); transform: rotate(-3deg);
}
.screen {
  height: 100%; border-radius: 34px; background: linear-gradient(180deg, #fff3e3, #ffe3ea);
  display: flex; flex-direction: column; align-items: center; padding: 34px 16px 16px; gap: 10px; overflow: hidden; color: #3a2e39;
}
.pet { border-radius: 34px; animation: bob 2.4s ease-in-out infinite; box-shadow: 0 10px 24px rgba(255, 111, 142, .35); width: 44%; height: auto; }
.pet-name { font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.bubble { font-size: 13px; line-height: 1.45; padding: 9px 13px; border-radius: 16px; max-width: 88%; width: fit-content; flex: none; }
.bubble.kid { align-self: flex-end; background: #ff6f8e; color: #fff; border-bottom-right-radius: 5px; }
.bubble.pet { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; box-shadow: 0 2px 8px rgba(90, 40, 60, .08); }
.dock { margin-top: auto; display: flex; gap: 10px; background: rgba(255, 255, 255, .7); padding: 10px 14px; border-radius: 20px; }
.dock span { width: 40px; height: 40px; display: grid; place-items: center; background: #fff; border-radius: 12px; font-size: 20px; }
.float {
  position: absolute; background: var(--card); color: var(--text); font-weight: 700; font-size: 14px;
  padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); white-space: nowrap;
}
.f1 { top: 14%; left: 0; animation: bob 3s ease-in-out infinite .4s; }
.f2 { bottom: 16%; right: 0; animation: bob 3.4s ease-in-out infinite; }
@media (min-width: 900px) { .f1 { left: -4%; } .f2 { right: -2%; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* khối nội dung */
.block { padding: 64px 0; }
.block.tint { background: var(--bg2); }
@media (min-width: 900px) { .block { padding: 88px 0; } }
.grid { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-top: 6px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: 16px; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps .num {
  flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.steps p { color: var(--muted); margin-top: 6px; }

/* tính năng: mỗi dòng một chữ + một hình minh hoạ, xen kẽ trái phải */
.section-h { margin-top: 12px; }
.feat { display: grid; gap: 24px; align-items: center; margin-top: 48px; }
@media (min-width: 860px) {
  .feat { grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 72px; }
  .feat.flip .feat-text { order: 2; }
}
.feat .ico, .card .ico {
  font-size: 30px; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--brand-soft); margin-bottom: 14px;
}
.feat h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.feat p { color: var(--muted); margin-top: 10px; max-width: 54ch; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 12px; display: grid; place-items: center;
}

/* hình minh hoạ dựng bằng HTML (không cần ảnh) */
.mock {
  background: var(--card); border-radius: 26px; padding: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); display: grid; gap: 12px; min-width: 0;
}
.m-title { font-weight: 800; font-size: 15px; }
.m-chat { display: flex; flex-direction: column; gap: 8px; }
.m-bubble { font-size: 14px; line-height: 1.45; padding: 10px 14px; border-radius: 16px; max-width: 85%; width: fit-content; }
.m-bubble.kid { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.m-bubble.pet { align-self: flex-start; background: var(--bg2); border-bottom-left-radius: 5px; }
.m-notif {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, #f5b100 16%, var(--card)); border: 1px solid color-mix(in srgb, #f5b100 40%, transparent);
}
.m-notif img { border-radius: 10px; flex: none; }
.m-notif b { display: block; font-size: 14px; }
.m-notif span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.m-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.m-list li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; min-width: 0; }
.m-list li:last-child { border-bottom: 0; }
.m-list li.no { color: var(--muted); }
.m-ico { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--bg2); display: grid; place-items: center; font-size: 18px; }
.m-list i { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.m-list i.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.m-list i.bad { background: color-mix(in srgb, #e5484d 16%, transparent); color: #d93d42; }
.m-block, .m-remind { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg2); }
.m-tt { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.m-tt span { background: var(--brand-soft); color: var(--text); font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 12px; }
.m-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-scores div { text-align: center; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line); }
.m-scores b { display: block; font-size: 24px; font-weight: 800; color: var(--brand-ink); }
.m-scores span { font-size: 12px; color: var(--muted); }

.extras { margin-top: 64px; }
@media (min-width: 560px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .extras { grid-template-columns: repeat(4, 1fr); } }

/* lời mời cuối mục cách dùng */
.cta-band {
  margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); border: 2px solid var(--brand-soft);
}
.cta-band h3 { font-size: 20px; font-weight: 800; }
.cta-band p { margin-top: 4px; }
.cta-band .btn { flex: 1 1 200px; }
@media (min-width: 560px) { .cta-band .btn { flex: 0 0 auto; } }

/* niềm tin */
.trust { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .trust { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.trust p { color: var(--muted); margin-top: 14px; max-width: 60ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { background: var(--card); border-radius: 14px; padding: 12px 16px 12px 46px; position: relative; font-weight: 600; box-shadow: var(--shadow); }
.checks li::before {
  content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 13px; display: grid; place-items: center;
}

/* hỏi đáp */
.faq h2 { margin-bottom: 24px; }
.faq details { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); margin: 10px 0; max-width: 820px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 14px; }
.foot .brand { font-size: 16px; margin-right: auto; }
.foot a:not(.brand) { color: var(--muted); }
