:root {
  color-scheme: light;
  --ink: #2b1c3d;
  --muted: #62546f;
  --brand: #6943a1;
  --brand-dark: #522f84;
  --rose: #b73877;
  --page: #fffdfd;
  --line: #e9e0ef;
  --heading: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(70px, 9vw, 134px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(38px, 4.85vw, 69px); }
h3 { font-size: clamp(27px, 2.55vw, 38px); }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-inline-size: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ab4ec5; outline-offset: 5px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; flex: none; inline-size: 1.25em; block-size: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 10px; left: 10px; border-radius: 12px; padding: 12px 16px; background: white; }
.container { width: min(100% - 2 * var(--gutter), 1248px); margin-inline: auto; }
.section { padding-block: var(--section); }
.has-section-background { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.section-background { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.section-background[data-moving] { inset-block: -18px; }

.site-header { position: sticky; z-index: 5; inset-block-start: 0; background: #fcf8ff; border-bottom: 1px solid #eaddf2; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; flex: none; align-items: center; gap: 9px; font: 800 30px/.92 var(--heading); letter-spacing: -.035em; }
.wordmark span span { color: var(--rose); }
/* Logo cắt từ icon app (nền trắng): bo góc như icon trên điện thoại. */
.wordmark img, .download-copy > img { border-radius: 28%; background: #fff; box-shadow: 0 0 0 1px #ecdcf3; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 48px); color: #4e3c5b; font-size: 14px; font-weight: 600; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; transition: color .2s; }
.site-nav a:hover { color: var(--rose); }
.menu-toggle { display: none; width: 44px; height: 44px; cursor: pointer; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--brand-dark); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.25; transition: background .24s, color .24s, box-shadow .24s, transform .24s; }
.button:hover { transform: translateY(-2px); }
.button--header { background: #efe5fa; color: #512f7b; }
.button--header:hover { background: #e8d9f7; }
.button--primary { min-height: 56px; padding-inline: 23px; background: var(--brand); color: #fff; box-shadow: 0 10px 28px #683ca13d; }
.button--primary:hover { background: var(--brand-dark); box-shadow: 0 13px 32px #683ca14d; }
.button--quiet { min-height: 56px; background: #ffffff91; border-color: #e4d8ed; color: #503867; }
.button--quiet:hover { background: #fff; }
.button--web { background: #fff; color: #49276e; padding-inline: 22px; }
.button--web:hover { background: #f8e5ff; }

.hero {
  background: linear-gradient(90deg, #fff9ff26, transparent 70%),
    url("assets/hero-background.webp") center / cover no-repeat #faf6fe;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: clamp(16px, 3.2vw, 56px); padding-block: clamp(44px, 5vw, 76px) clamp(38px, 4.5vw, 70px); }
.hero-copy { position: relative; z-index: 1; animation: arrive .72s ease-out both; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid #e9d5f2; padding: 6px 13px; margin-block-end: 25px; color: #71386e; background: #ffffff75; font-size: 13px; font-weight: 700; }
.hero-kicker .icon { color: var(--rose); }
.hero h1 { font-size: clamp(57px, 6.75vw, 99px); line-height: .97; letter-spacing: -.04em; }
.hero h1 span { color: #bd508a; }
.hero-intro { max-width: 45ch; font-size: clamp(15px, 1.35vw, 18px); margin-block: 23px 27px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-block-start: 21px; color: #624f72; font-size: 12px; font-weight: 500; }
.hero-note .icon { color: #7650a9; }
.hero-art { position: relative; aspect-ratio: 1.08; isolation: isolate; }
.hero-photo { position: absolute; inset: 0 0 0 16%; overflow: hidden; border-radius: 40% 40% 30px 30px / 34% 34% 30px 30px; background: #e4cde8; animation: portrait-in .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 41%; }
.phone { background: #262038; border-radius: 13% / 6.5%; padding: 1.05%; box-shadow: 0 24px 55px #25163352, 0 0 0 1px #e7d9f1aa; }
.phone img { width: 100%; height: auto; border-radius: 11% / 5.5%; }
.hero-phone { position: absolute; left: 1.5%; bottom: -1.5%; width: 36%; transform: rotate(-9deg); animation: phone-in .95s .15s cubic-bezier(.2,.75,.25,1) both; }
.hero-spark { position: absolute; z-index: -1; top: 4%; left: 1%; width: 15%; height: auto; color: #b78ace; stroke-width: .9; transform: rotate(12deg); }
.hero-moment { position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px; right: -2.4%; bottom: 8%; padding: 10px 15px 10px 10px; border: 1px solid #fff; border-radius: 18px; background: #fff7feee; box-shadow: 0 10px 30px #43245824; color: #442751; animation: moment-in .7s .35s ease-out both; }
.hero-moment strong, .hero-moment small { display: block; }
.hero-moment strong { font-size: 13px; }
.hero-moment small { font-size: 11px; color: #695773; }
.moment-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #f4ddf2; color: var(--rose); }
.journey-rail { min-height: 79px; border-block-start: 1px solid #e7d7ef; display: grid; grid-template-columns: 1.12fr 1fr 1fr; align-items: center; gap: 12px; }
.journey-rail p { color: #644d73; font-size: 13px; font-weight: 600; }
.journey-rail a { display: flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 700; font-size: 13px; }
.journey-rail a:hover { color: var(--rose); }
.rail-dot { display: block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.rail-dot--rose { background: #d968a2; }
.rail-dot--purple { background: #9975cf; }
.rail-dot--mint { background: #50a68a; }

.journey { background: #fbf6f8; }
.journey > .section-background { background: url("assets/journey-background.webp") center / cover no-repeat; }
.section-intro { margin: 0 auto clamp(28px, 4vw, 50px); max-width: 760px; text-align: center; }
.section-tag { display: inline-block; color: #874378; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.section-intro p, .demo-heading p { margin-top: 13px; font-size: clamp(15px, 1.3vw, 17px); }
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(15px, 2vw, 26px); }
.stage-card { --card: #fcecf2; --card-accent: #8e2c60; overflow: hidden; display: flex; flex-direction: column; background: var(--card); border-radius: 26px; scroll-margin-top: 10px; }
.stage-card--purple { --card: #f2e9fa; --card-accent: #613c87; }
.stage-card--mint { --card: #e7f4ee; --card-accent: #306655; }
.stage-photo { position: relative; overflow: hidden; aspect-ratio: 1.55; }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 41%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.stage-card--purple .stage-photo img { object-position: center 22%; }
.stage-card:hover .stage-photo img { transform: scale(1.055); }
.stage-photo span { position: absolute; left: 16px; bottom: 14px; min-width: 41px; padding: 4px 8px; text-align: center; border-radius: 999px; font: 800 19px/1.35 var(--heading); color: var(--card-accent); background: var(--card); }
.stage-copy { padding: clamp(18px, 2.3vw, 30px); display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.stage-copy h3 { font-size: clamp(25px, 2.4vw, 37px); }
.stage-copy p { margin-top: 9px; margin-bottom: 13px; flex: 1; font-size: 14px; }
.stage-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--card-accent); font-size: 13px; font-weight: 700; }
.stage-link .icon { transition: transform .22s; }
.stage-link:hover .icon { transform: translateX(4px); }
.stage-link:hover { text-decoration: underline; }

.demo {
  background: #30203f;
  color: #fff8ff;
}
.demo > .section-background {
  background: linear-gradient(90deg, #24163380, #30203f24),
    url("assets/experience-background.webp") center right / cover no-repeat;
}
.demo-inner { position: relative; min-height: 652px; isolation: isolate; padding-block: clamp(60px, 7vw, 104px) 45px; }
.demo-inner::before, .demo-inner::after { content: ''; z-index: -1; position: absolute; right: 0; top: 50%; width: min(47vw, 580px); aspect-ratio: 1; border: 1px solid #e9c6f569; border-radius: 50%; transform: translateY(-50%); pointer-events: none; }
.demo-inner::after { right: 4%; width: min(39vw, 482px); border-color: #e9c6f53a; }
.demo-heading { max-width: 50%; }
.demo-heading .section-tag { color: #f4b9e0; }
.demo-heading p, .demo-copy p { color: #f0e0f3; max-width: 47ch; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 7px; width: 53%; margin-top: 26px; }
.demo-tabs a { min-height: 43px; padding: 8px 13px; display: inline-flex; gap: 7px; align-items: center; border: 1px solid #e5b8f36b; border-radius: 999px; color: #f8eafa; font-size: 13px; font-weight: 600; transition: background .24s, color .24s; }
.demo-tabs a:hover { background: #ffffff25; }
.demo-tabs a[aria-selected="true"] { color: #49276b; background: #f5e5fc; border-color: #f5e5fc; }
.demo-panel { padding-block: 27px 10px; }
.demo-panel + .demo-panel { border-top: 1px solid #f1c8fa59; }
.demo[data-enhanced] .demo-panel { border-top: 0; }
.demo-copy { width: 47%; }
.demo-copy h3 { font-size: clamp(25px, 2.7vw, 40px); }
.demo-copy p { margin-top: 9px; font-size: 14px; }
.demo-detail { display: inline-block; color: #f4c4e7; font-size: 12px; font-weight: 600; margin-top: 14px; }
.demo-phone { width: clamp(188px, 20vw, 268px); margin: 24px auto; }
.demo[data-enhanced] .demo-phone { position: absolute; right: 11%; top: 50%; margin: 0; transform: translateY(-50%) rotate(6deg); }
.demo[data-enhanced] .demo-panel:not([hidden]) .demo-phone img { animation: screen-in .42s ease-out both; }
.demo[data-enhanced] .demo-panel:not([hidden]) .demo-copy { animation: screen-in .34s ease-out both; }
.demo-caption { color: #ead4ef; font-size: 12px; margin-top: 15px; }

.together { background: #fbf3ef; }
.together > .section-background { background: url("assets/family-background.webp") center / cover no-repeat; }
.story-grid { display: grid; grid-template-columns: 1.18fr .82fr; align-items: start; gap: clamp(16px, 2vw, 26px); }
.story { overflow: hidden; background: #f5edfa; border-radius: 26px; }
.story--journal { background: #fceef2; margin-block-start: clamp(20px, 4.4vw, 68px); }
.story img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: center 37%; }
.story--journal img { aspect-ratio: 1.45; object-position: center; }
.story-copy { padding: clamp(20px, 2.4vw, 32px); }
.story-copy > .icon { color: var(--brand); width: 24px; height: 24px; margin-bottom: 9px; }
.story-copy p { margin-top: 9px; font-size: 14px; }

.faq { background: #f9f3fb; padding-block: clamp(56px, 7vw, 102px); }
.faq > .section-background { background: url("assets/faq-background.webp") center / cover no-repeat; }
.faq-inner { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(20px, 5vw, 84px); align-items: start; }
.faq-heading h2 { max-width: 9ch; }
.faq-list { border-top: 1px solid #e3d7eb; }
.faq-list details { border-bottom: 1px solid #e3d7eb; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 17px 0; font-size: 15px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #eee2f6; color: var(--brand-dark); font-size: 21px; font-weight: 400; line-height: 1; transition: transform .24s, background .24s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: #e9d6f4; }
.faq-list details p { padding: 0 30px 18px 0; font-size: 14px; }
.faq-list details[open] p { animation: screen-in .3s ease-out both; }

.download-card { display: grid; grid-template-columns: 1.12fr .88fr; overflow: hidden; border-radius: clamp(23px, 3vw, 43px); color: #fff7ff; background: #5b368d; }
.download-copy { padding: clamp(30px, 5vw, 70px); }
.download-copy > .section-background {
  background: linear-gradient(160deg, #41206350, #41206324),
    url("assets/download-background.webp") center / cover no-repeat;
}
.download-copy > img { margin-bottom: 17px; }
.download-copy h2 { font-size: clamp(39px, 4.6vw, 66px); }
.download-copy > p { color: #f3e9f9; max-width: 41ch; margin-block: 15px 23px; font-size: 15px; }
.download-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 25px; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid #ffffff57; }
.platforms li { display: flex; align-items: center; gap: 8px; }
.platforms .icon { color: #f3d7ff; }
.platforms strong, .platforms small { display: block; }
.platforms strong { font-size: 13px; }
.platforms small { color: #f3e9f9; font-size: 12px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 23px; }
.footer-inner .wordmark { font-size: 26px; }
.footer-inner p, .back-to-top { font-size: 13px; color: #685777; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; padding-block: 0 18px; font-size: 13px; color: #685777; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--rose); }
.back-to-top { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.back-to-top .icon { transform: rotate(180deg); }
.back-to-top:hover { color: var(--rose); }

@keyframes arrive { from { opacity: 0; transform: translateY(14px); } }
@keyframes portrait-in { from { opacity: .5; clip-path: inset(8% 0 0 round 28%); } to { clip-path: inset(0 round 0); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(28px) rotate(-15deg); } }
@keyframes moment-in { from { opacity: 0; transform: translateX(12px); } }
@keyframes screen-in { from { opacity: .35; transform: translateY(7px); } }
@keyframes rise { from { opacity: .5; transform: translateY(16px); } }
.is-in-view { animation: rise .62s cubic-bezier(.2,.7,.2,1) both; }
.stage-card.is-in-view:nth-child(2), .story.is-in-view:nth-child(2) { animation-delay: .065s; }
.stage-card.is-in-view:nth-child(3) { animation-delay: .13s; }

@media (max-width: 1050px) {
  .hero h1 { font-size: clamp(54px, 7vw, 78px); }
  .demo-inner { min-height: 600px; }
  .demo[data-enhanced] .demo-phone { right: 9%; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 82px; }
  .header-inner { min-height: 64px; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
  .header-inner .wordmark { font-size: 28px; }
  .header-inner .wordmark img { width: 35px; height: 35px; }
  .menu-toggle:not([hidden]) { display: grid; place-items: center; grid-area: 1 / 2; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 10px; }
  .menu-toggle:not([hidden]) ~ .site-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 8px var(--gutter) 12px; background: #fcf8ff; border-block-end: 1px solid var(--line); }
  .menu-toggle[aria-expanded="true"] ~ .site-nav { display: flex; flex-wrap: wrap; }
  .button--header { min-height: 44px; font-size: 12px; padding-inline: 12px; grid-area: 1 / 3; }
  .hero {
    background-image: linear-gradient(180deg, #fffaff52, transparent 58%),
      url("assets/hero-background-mobile.webp");
    background-position: center, 12% center;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding-block: 36px 38px; }
  .hero-kicker { margin-block-end: 16px; }
  .hero h1 { font-size: clamp(49px, 11.4vw, 78px); }
  .hero-intro { margin-block: 16px 21px; }
  .hero-note { margin-top: 14px; }
  .hero-art { width: min(100%, 520px); margin-inline: auto; }
  .hero-moment { right: -1%; }
  .journey-rail { grid-template-columns: 1fr 1fr; gap: 0 12px; padding-block: 8px; }
  .journey-rail p { font-size: 12px; grid-column: 1 / -1; padding-top: 10px; }
  .journey-rail a { font-size: 12px; }
  .section-intro { text-align: left; margin-inline: 0; }
  .stage-grid { grid-template-columns: 1fr; gap: 18px; }
  .stage-photo { aspect-ratio: 1.25; }
  .stage-copy p { margin-bottom: 4px; }
  .journey > .section-background { background-position: left center; }
  .demo > .section-background {
    background-image: linear-gradient(180deg, #24163399, #30203f36 74%),
      url("assets/experience-background.webp");
    background-position: center, 72% center;
  }
  .demo-inner { min-height: 0; padding-block: 57px 33px; }
  .demo-inner::before, .demo-inner::after { top: auto; bottom: 45px; right: 50%; width: min(83vw, 425px); transform: translateX(50%); }
  .demo-inner::after { bottom: 72px; width: min(70vw, 350px); }
  .demo-heading, .demo-tabs, .demo-copy { width: auto; max-width: none; }
  .demo-tabs { gap: 6px; }
  .demo-tabs a { min-height: 44px; }
  .demo-panel { padding-top: 22px; }
  .demo[data-enhanced] .demo-phone { position: relative; inset: auto; transform: rotate(4deg); margin: 26px auto 9px; }
  .demo-caption { text-align: center; }
  .story-grid, .faq-inner, .download-card { grid-template-columns: 1fr; }
  .story--journal { margin: 0; }
  .story--journal img { aspect-ratio: 1.6; }
  .faq-heading h2 { max-width: none; }
  .download-photo { aspect-ratio: 1.45; height: auto; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 375px) {
  :root { --gutter: 16px; }
  .header-inner { gap: 7px; }
  .header-inner .wordmark { font-size: 25px; }
  .header-inner .wordmark img { width: 30px; height: 30px; }
  .button--header .icon { display: none; }
  .hero h1 { font-size: clamp(43px, 13.4vw, 49px); }
  .hero-actions .button { font-size: 13px; padding-inline: 12px; min-height: 50px; }
  .hero-moment { gap: 6px; padding: 7px 9px 7px 7px; }
  .hero-moment strong { font-size: 11px; }
  .hero-moment small { font-size: 10px; }
  .moment-icon { width: 28px; height: 28px; }
  .demo-tabs a { font-size: 12px; padding-inline: 10px; }
  .download-copy { padding-inline: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
