/* =========================================================
   Sweetie Stickers – CSS dùng chung cho toàn bộ website
   - Bảng màu lấy theo branding hồng/đỏ lãng mạn của app
   - Đổi màu nhanh: sửa các biến trong :root
   ========================================================= */
:root {
  --rose: #ff4d8d;          /* màu chủ đạo */
  --rose-deep: #e0186c;     /* hover / nhấn mạnh */
  --rose-soft: #ffe3ee;     /* nền nhạt */
  --lilac: #a66cff;         /* màu phụ (gradient) */
  --peach: #ffb38a;
  --ink: #2b1a24;           /* chữ chính */
  --muted: #6f5a66;         /* chữ phụ */
  --bg: #fff8fb;
  --card: #ffffff;
  --line: #f6d6e3;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(224, 24, 108, .35);
  --grad: linear-gradient(135deg, var(--rose) 0%, var(--lilac) 100%);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.2; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rose-deep); background: var(--rose-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1rem; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--rose-deep); border: 2px solid var(--line); }
.play-badge img { height: 62px; width: auto; transition: transform .2s; }
.play-badge:hover img { transform: translateY(-2px) scale(1.02); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 251, .85); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.3); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img, .brand .brand-fallback { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 12px -4px rgba(224,24,108,.5); }
.brand-fallback { display: grid; place-items: center; background: var(--grad); color: #fff; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 700; }
.nav-links a:hover { color: var(--rose-deep); text-decoration: none; }
.nav-cta { padding: 10px 18px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: #ffc2d9; top: -160px; right: -120px; }
.hero::after { width: 420px; height: 420px; background: #e3d1ff; bottom: -160px; left: -140px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 700; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 30px 0 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Fredoka", sans-serif; font-size: 1.6rem; color: var(--rose-deep); }
.hero-stats span { font-size: .9rem; color: var(--muted); }

/* Mockup điện thoại bằng CSS */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19.5; border-radius: 44px;
  background: #1d1218; padding: 12px; box-shadow: 0 40px 80px -30px rgba(120, 10, 60, .55);
  transform: rotate(-4deg);
}
.phone::before { /* tai thỏ */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 999px; background: #1d1218; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(160deg, #ffe3ee, #f1e6ff);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
/* Màn hình giả lập khi ảnh không tải được */
.mock-ui { padding: 52px 16px 16px; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.mock-ui .mock-title { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--rose-deep); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-grid span { aspect-ratio: 1; border-radius: 16px; background: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 6px 14px -8px rgba(224,24,108,.4); }
.float-sticker {
  position: absolute; font-size: 2.6rem; filter: drop-shadow(0 10px 14px rgba(224,24,108,.3));
  animation: float 5s ease-in-out infinite; z-index: 3;
}
.float-sticker.s1 { top: 6%; left: 6%; }
.float-sticker.s2 { top: 42%; right: 2%; animation-delay: -1.6s; }
.float-sticker.s3 { bottom: 4%; left: 14%; animation-delay: -3.2s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; background: var(--grad); margin-bottom: 18px;
}
.card:nth-child(3n+2) .card-icon { background: linear-gradient(135deg, var(--peach), var(--rose)); }
.card:nth-child(3n) .card-icon { background: linear-gradient(135deg, var(--lilac), #6c8cff); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }

/* ---------- How to use ---------- */
.how { background: linear-gradient(180deg, #fff 0%, var(--rose-soft) 100%); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 40px 28px 30px; box-shadow: 0 10px 30px -20px rgba(0,0,0,.25); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -22px; left: 28px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.3rem; box-shadow: var(--shadow);
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }
.step i { color: var(--rose); margin-right: 6px; }

/* ---------- Screenshots slider ---------- */
.slider { position: relative; }
.slider-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 26px; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 auto; scroll-snap-align: center; height: 480px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, #ffe3ee, #f1e6ff); box-shadow: 0 20px 40px -24px rgba(120,10,60,.5);
  border: 6px solid #fff;
}
.shot img { height: 100%; width: auto; object-fit: cover; }
.shot.placeholder { width: 240px; display: grid; place-items: center; font-size: 4rem; }
.slider-btn {
  position: absolute; top: 45%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #fff; color: var(--rose-deep); box-shadow: 0 8px 20px -8px rgba(0,0,0,.3);
  cursor: pointer; font-size: 1.1rem; z-index: 2; transition: background .2s, color .2s;
}
.slider-btn:hover { background: var(--rose); color: #fff; }
.slider-btn.prev { left: -10px; }
.slider-btn.next { right: -10px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left;
  font: 700 1.05rem/1.4 "Nunito", sans-serif; color: var(--ink);
}
.faq-q i { color: var(--rose); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- Legal quick links (trên trang chủ) ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.legal-card { display: block; color: var(--ink); }
.legal-card:hover { text-decoration: none; }
.legal-card .more { color: var(--rose-deep); font-weight: 800; margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--grad); color: #fff; border-radius: 32px; padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.cta-banner p { opacity: .92; max-width: 560px; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-banner .hearts { position: absolute; inset: 0; pointer-events: none; opacity: .18; font-size: 3rem; }
.cta-banner .hearts span { position: absolute; }

/* ---------- Footer ---------- */
.site-footer { background: #22121b; color: #e9d9e1; padding: 64px 0 28px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #e9d9e1; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { margin: 0 0 10px; color: #bfa9b5; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem; color: #bfa9b5;
}

/* ---------- Trang pháp lý ---------- */
.legal-hero { background: linear-gradient(135deg, var(--rose-soft), #f1e6ff); padding: 64px 0 48px; text-align: center; }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-hero p { color: var(--muted); margin: 0; }
.legal-body { max-width: 820px; margin: 0 auto; padding: 56px 20px 0; }
.legal-body h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: .2em; }
.legal-body h3 { font-size: 1.12rem; margin-top: 1.5em; }
.legal-body p, .legal-body li { color: #4a3a43; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body li { margin-bottom: .4em; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; }
.toc strong { font-family: "Fredoka", sans-serif; }
.toc ol { margin: 10px 0 0; columns: 2; column-gap: 32px; }
.note {
  background: var(--rose-soft); border-left: 5px solid var(--rose); border-radius: 14px;
  padding: 16px 20px; margin: 22px 0; color: var(--ink);
}
table.data-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; background: #fff; border-radius: 14px; overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--rose-soft); font-family: "Fredoka", sans-serif; font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* Form yêu cầu xóa dữ liệu */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-top: 18px; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 6px; margin-bottom: 16px; }
.form-row label { font-weight: 800; font-size: .95rem; }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 18px; }
.check input { margin-top: 5px; accent-color: var(--rose); }
.form-msg { margin-top: 14px; font-weight: 700; color: var(--rose-deep); }

/* ---------- Hiệu ứng xuất hiện khi cuộn ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-sticker { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .features-grid, .legal-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; max-width: 520px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; }
  .nav-links .nav-cta { justify-content: center; margin-top: 8px; color: #fff; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .features-grid, .legal-grid, .footer-grid { grid-template-columns: 1fr; }
  .phone { width: 240px; }
  .shot { height: 400px; }
  .slider-btn { display: none; }
  .cta-banner { padding: 44px 22px; }
  .toc ol { columns: 1; }
  .play-badge img { height: 56px; }
}

/* Badge "Get it on Google Play" dạng vector (không phụ thuộc ảnh ngoài) */
.gp-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff;
  border: 1.5px solid #a6a6a6; border-radius: 12px; padding: 9px 20px 9px 14px;
  font-family: "Nunito", Arial, sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.05;
  transition: transform .2s, box-shadow .2s;
}
.gp-badge small { display: block; font-size: .62rem; letter-spacing: .06em; font-weight: 600; }
.play-badge:hover { text-decoration: none; }
.play-badge:hover .gp-badge { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.6); }
