:root {
  --primary-500: #F48FA8;
  --primary-600: #CC3B69;
  --accent-ttc: #B79DDB;
  --accent-pregnancy: #F6A77B;
  --accent-parenting: #7AB8E8;
  --accent-ai: #E0B64F;
  --accent-mom: #F48FA8;
  --text: #1F1E19;
  --text-soft: #5b5950;
  --bg: #ffffff;
  --bg-soft: #FFF5F8;
  --border: #f0d9e2;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(204, 59, 105, 0.08);

  /* Phase chapters: a pale tint for the band, a dark ink (AA on the tint) for labels and numbers. */
  --ttc-tint: #F5F0FB;
  --ttc-ink: #6A4C9C;
  --preg-tint: #FFF3EC;
  --preg-ink: #A24A17;
  --child-tint: #EEF6FD;
  --child-ink: #23649A;
  --ai-tint: #FFF8E6;
  --ai-ink: #8A6410;
  --free-bg: #E4F4EA;
  --free-ink: #1E6B3A;
  --premium-bg: #FDE4EC;
  --premium-ink: #A3214D;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  padding: 10px 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.brand-name { letter-spacing: 0.2px; }

/* Mobile: the nav is a second, horizontally scrolling row under the brand. */
.site-nav {
  display: flex;
  gap: 4px;
  width: calc(100% + 40px);
  margin: 6px -20px 0;
  padding: 0 14px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--primary-600); text-decoration: none; }
.site-nav a[aria-current="true"] { color: var(--primary-600); border-bottom-color: var(--primary-600); }

.lang-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-toggle:hover { background: #ffe4ec; }
.lang-toggle .lang-sep { margin: 0 6px; color: var(--text-soft); }
.lang-toggle .lang-vi,
.lang-toggle .lang-en {
  opacity: 0.45;
  transition: opacity 0.15s ease, color 0.15s ease;
}
html[lang="vi"] .lang-toggle .lang-vi,
html[lang="en"] .lang-toggle .lang-en {
  opacity: 1;
  color: var(--primary-600);
}

@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; padding: 10px 20px; }
  .site-nav { order: 2; width: auto; margin: 0; padding: 0; overflow: visible; gap: 2px; }
  .site-nav a { font-size: 14.5px; padding: 8px 9px; }
  .lang-toggle { order: 3; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 48px;
}
.btn-primary {
  background: var(--primary-600);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: #b22f5a;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  padding: 48px 0 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero-text h1 {
  font-size: 38px;
  margin: 0 0 6px;
  color: var(--primary-600);
  letter-spacing: -0.5px;
}
.tagline {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--text);
}
.hero-desc {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0 0 24px;
  max-width: 540px;
}
.hero-visual { display: flex; justify-content: center; }
.phone-frame {
  width: 250px;
  max-width: 80vw;
  padding: 10px;
  background: #1F1E19;
  border-radius: 42px;
  box-shadow: 0 20px 40px rgba(204, 59, 105, 0.18);
}
.phone-frame img {
  width: 100%;
  border-radius: 32px;
}

@media (min-width: 768px) {
  .hero { padding: 80px 0 96px; }
  .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .hero-text h1 { font-size: 56px; }
  .tagline { font-size: 24px; }
  .phone-frame { width: 300px; }
}

/* ---------- Section common ---------- */
.section-title {
  font-size: 28px;
  margin: 0 0 8px;
  text-align: center;
  color: var(--text);
}
.section-sub {
  text-align: center;
  color: var(--text-soft);
  margin: 0 auto 36px;
  max-width: 640px;
  font-size: 15px;
}
@media (min-width: 768px) {
  .section-title { font-size: 36px; }
  .section-sub { font-size: 17px; margin-bottom: 48px; }
}

/* ---------- Anchored sections clear the sticky header ---------- */
section[id] { scroll-margin-top: 104px; }
@media (min-width: 900px) {
  section[id] { scroll-margin-top: 72px; }
}

/* ---------- Store buttons ---------- */
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.store-buttons.centered { justify-content: center; margin-bottom: 0; }
.store-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 156px;
  min-height: 52px;
  padding: 8px 20px;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  line-height: 1.15;
  transition: transform 0.1s ease, background 0.15s ease;
}
.store-btn:hover { background: #000; text-decoration: none; transform: translateY(-1px); }
.store-btn-small { font-size: 11.5px; opacity: 0.85; }
.store-btn-big { font-size: 18px; font-weight: 700; }

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-row li {
  font-size: 13px;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- Journey ---------- */
.journey { padding: 64px 0; }
.journey-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.journey-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  height: 100%;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.journey-step:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.journey-num {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
}
.journey-name { font-weight: 700; font-size: 17px; color: var(--ink); }
.journey-desc { font-size: 14.5px; color: var(--text-soft); }

.profiles-card {
  border: 1px dashed var(--primary-500);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg-soft);
}
.profiles-card h3 { margin: 0 0 6px; font-size: 18px; }
.profiles-card p { margin: 0; color: var(--text-soft); font-size: 15px; }

@media (min-width: 768px) {
  .journey { padding: 96px 0; }
  .journey-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .journey-step { grid-template-columns: 1fr; }
  .journey-num { grid-row: auto; margin-bottom: 8px; }
  .profiles-card { padding: 28px 32px; }
}

/* ---------- Phase colours ---------- */
.step-ttc, .chapter-ttc             { --tint: var(--ttc-tint);   --ink: var(--ttc-ink);   --accent: var(--accent-ttc); }
.step-pregnancy, .chapter-pregnancy { --tint: var(--preg-tint);  --ink: var(--preg-ink);  --accent: var(--accent-pregnancy); }
.step-parenting, .chapter-parenting { --tint: var(--child-tint); --ink: var(--child-ink); --accent: var(--accent-parenting); }

/* ---------- Chapters ---------- */
.chapter { padding: 64px 0; background: var(--tint); }
.chapter-head { max-width: 760px; margin: 0 0 40px; }
.chapter-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.chapter-title { margin: 0 0 12px; font-size: 30px; line-height: 1.2; }
.chapter-lead { margin: 0 0 24px; font-size: 16px; color: var(--text-soft); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}
.stat-row > div {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  border-bottom: 4px solid var(--accent);
}
.stat-row dt { font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.stat-row dd { margin: 4px 0 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.4; }

@media (min-width: 768px) {
  .chapter { padding: 96px 0; }
  .chapter-title { font-size: 40px; }
  .chapter-lead { font-size: 17px; }
  .stat-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* ---------- Feature rows (screenshot + details) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}
.feature-shot { display: flex; justify-content: center; }
.feature-shot img {
  width: 240px;
  max-width: 72vw;
  border: 8px solid var(--text);
  border-radius: 34px;
  box-shadow: 0 18px 36px rgba(31, 30, 25, 0.14);
  background: #fff;
}
.feature-body h3 { margin: 10px 0 8px; font-size: 22px; line-height: 1.25; }
.feature-lead { margin: 0 0 14px; font-size: 16px; color: var(--text); }
.feature-source {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 15px;
  color: var(--text-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent, var(--primary-500));
}

.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-free    { background: var(--free-bg);    color: var(--free-ink); }
.badge-premium { background: var(--premium-bg); color: var(--premium-ink); }

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 300px 1fr;
    gap: 56px;
    margin-bottom: 72px;
  }
  .feature-row:nth-of-type(even) { grid-template-columns: 1fr 300px; }
  .feature-row:nth-of-type(even) .feature-shot { order: 2; }
  .feature-shot img { width: 280px; }
  .feature-body h3 { font-size: 26px; }
}

/* ---------- Mini cards ---------- */
.mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.mini-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent, var(--primary-500));
  border-radius: var(--radius);
  padding: 20px;
}
.mini-card h3 { margin: 8px 0 6px; font-size: 18px; }
.mini-card .badge + h3 { margin-top: 10px; }
.mini-card p { margin: 0; font-size: 14.5px; color: var(--text-soft); }
.mini-card .feature-source { margin-top: 10px; font-size: 12.5px; }
@media (min-width: 768px) {
  .mini-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
}

/* ---------- Every phase ---------- */
.everyday { padding: 64px 0; background: #fff; --accent: var(--primary-500); }
@media (min-width: 768px) {
  .everyday { padding: 96px 0; }
}

/* ---------- Góc Mây ---------- */
.ailab { padding: 64px 0; background: var(--ai-tint); --accent: var(--accent-ai); }
.ailab-inner { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.section-title.align-left { text-align: left; }
.ailab-lead { margin: 0 0 20px; color: var(--text-soft); font-size: 16px; }
.ailab-visual { display: flex; justify-content: center; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.price-table th { font-size: 13px; color: var(--text-soft); font-weight: 700; background: #fffaf0; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td strong { display: block; font-size: 15.5px; }
.price-table td span { display: block; font-size: 13.5px; color: var(--text-soft); }
.price-table .num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ai-ink); }
.price-table th.num { color: var(--text-soft); }

.coins-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
}
.coins-card h3 { margin: 0 0 6px; font-size: 17px; }

@media (min-width: 768px) {
  .ailab { padding: 96px 0; }
  .ailab-inner { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .ailab-visual { position: sticky; top: 96px; }
}
@media (max-width: 420px) {
  .price-table th, .price-table td { padding: 10px 12px; }
  .price-table .num { white-space: normal; }
}

/* ---------- Free vs Premium ---------- */
.premium { padding: 64px 0; background: var(--bg-soft); }
.compare { display: grid; grid-template-columns: 1fr; gap: 20px; }
.compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: #fff;
  --accent: #9AA59C;
}
.compare-col h3 { margin: 0 0 10px; font-size: 20px; }
.compare-premium {
  border: 2px solid var(--primary-600);
  --accent: var(--primary-600);
}
.compare-premium h3 { color: var(--primary-600); }
@media (min-width: 768px) {
  .premium { padding: 96px 0; }
  .compare { grid-template-columns: 1fr 1fr; gap: 24px; }
  .compare-col { padding: 32px 30px; }
}

/* ---------- Data ---------- */
.data { padding: 64px 0; background: #fff; }
.data .section-title { margin-bottom: 32px; }
.data-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.data-item { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.data-item h3 { margin: 0 0 6px; font-size: 17px; }
.data-item p { margin: 0; font-size: 14.5px; color: var(--text-soft); }
@media (min-width: 768px) {
  .data { padding: 96px 0; }
  .data-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1000px) {
  .data-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Download ---------- */
.download { padding: 64px 0; text-align: center; background: #fff; }
.download .section-sub { margin-bottom: 24px; }
@media (min-width: 768px) {
  .download { padding: 96px 0; }
}

/* ---------- FAQ ---------- */
.faq { padding: 64px 0; background: var(--bg-soft); }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--primary-600);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

@media (min-width: 768px) {
  .faq { padding: 96px 0; }
}

/* ---------- Contact ---------- */
.contact { padding: 64px 0; text-align: center; }
.contact-inner p {
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 24px;
}
@media (min-width: 768px) {
  .contact { padding: 96px 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #f4eaea;
  padding: 28px 0;
}
.site-footer .container { padding: 0 20px; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  text-align: center;
}
.site-footer a { color: var(--primary-500); }
.site-footer a:hover { color: #fff; }
.site-footer nav span { margin: 0 6px; opacity: 0.5; }

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; text-align: left; }
}

/* ---------- Legal pages (privacy/terms) ---------- */
.legal { padding: 48px 0 80px; }
.legal h1 {
  color: var(--primary-600);
  font-size: 32px;
  margin: 0 0 8px;
}
.legal .updated {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 20px;
  margin: 28px 0 10px;
}
.legal p, .legal li {
  color: var(--text-soft);
  font-size: 15px;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--primary-600); }

@media (min-width: 768px) {
  .legal { padding: 64px 0 96px; }
  .legal h1 { font-size: 40px; }
  .legal h2 { font-size: 22px; }
}
