/* ============================================================
   AMITA — Trang chủ "Journey"
   Tokens gộp từ Amita Wellness DS (colors, semantic, typography,
   spacing) + style trang. Không phụ thuộc Bootstrap/Tailwind.
   ============================================================ */

:root {
  /* Colors */
  --primary: #5C59F3;
  --primary-dark: #3025CA;
  --primary-deep: #120088;
  --primary-tint: #C2C1FF;
  --primary-wash: #F2EFFF;
  --primary-wash-2: #F3F2FB;
  --gray-0: #1E013D;
  --gray-1: #06004C;
  --gray-2: #464551;
  --gray-3: #767583;
  --gray-4: #C5C4D3;
  --gray-5: #E1E0E9;
  --gray-6: #E7E6EF;
  --gray-7: #EDECF5;
  --gray-8: #F3F2FB;
  --white: #FFFFFF;
  --green: #ECF8A3;
  --green-strong: #D1E55F;
  --green-deep: #A2B433;
  --green-light: #FCFFEB;
  --yellow: #FFEFBB;
  --yellow-strong: #FEDE65;
  --yellow-deep: #C7A930;
  --yellow-light: #FFF9E5;
  --orange-light: #FFDFB3;
  --status-success: #95E133;
  --status-warning: #FFB23E;
  --status-error: #BA1A1A;

  /* Semantic */
  --text-strong: var(--gray-1);
  --text-body: var(--gray-2);
  --text-muted: var(--gray-3);
  --text-disabled: var(--gray-4);
  --text-on-primary: var(--white);
  --surface-sunken: var(--gray-8);
  --border-subtle: var(--gray-7);
  --border-default: var(--gray-6);
  --border-strong: var(--gray-5);
  --action-primary-hover: #4d4ae0;
  --cat-movement-bg: var(--yellow-light);
  --cat-movement-chip: var(--yellow);
  --cat-movement-ink: var(--yellow-deep);
  --cat-mind-bg: var(--primary-wash);
  --cat-mind-chip: var(--primary-tint);
  --cat-mind-ink: var(--primary-dark);
  --cat-nutrition-bg: var(--green-light);
  --cat-nutrition-chip: var(--green);
  --cat-nutrition-ink: var(--green-deep);
  --ring: 0 0 0 3px rgba(92, 89, 243, 0.25);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --title-lg: 600 22px/1.3 var(--font-sans);
  --title-md: 500 18px/24px var(--font-sans);
  --title-sm: 600 16px/22px var(--font-sans);
  --body-lg: 400 16px/24px var(--font-sans);
  --body-md: 400 14px/20px var(--font-sans);
  --label-lg: 500 14px/18px var(--font-sans);
  --label-md: 500 12px/16px var(--font-sans);
  --caption: 400 12px/16px var(--font-sans);

  /* Spacing, radius, shadow */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-hero: 0 0 130px 0;
  --radius-pill: 999px;
  --shadow-card: 0 4px 16px 0 rgba(6, 0, 76, 0.06);
  --shadow-raised: 0 8px 24px 0 rgba(6, 0, 76, 0.10);
  --shadow-button: 0 4px 12px 0 rgba(92, 89, 243, 0.24);
}

/* ---------- Keyframes ---------- */
@keyframes amitaDrift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes amitaRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes amitaPop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.92); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes amitaRing { 0% { box-shadow: 0 0 0 0 rgba(92,89,243,.45); } 100% { box-shadow: 0 0 0 16px rgba(92,89,243,0); } }
@keyframes amitaEq { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes amitaFill { from { width: 0; } }
@keyframes amitaFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes amitaKen { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes amitaBounceA { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-8px); } 60% { transform: translateY(0); } 78% { transform: translateY(-3px); } }
@keyframes amitaBounceB { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-8px); } 60% { transform: translateY(0); } 78% { transform: translateY(-3px); } }
@keyframes amitaPopIn { 0% { transform: scale(.7); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes amitaInhale { 0% { transform: scale(.82); } 45% { transform: scale(1.12); } 55% { transform: scale(1.12); } 100% { transform: scale(.82); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.j-body {
  margin: 0;
  background: var(--white);
  color: var(--text-body);
  font: var(--body-lg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.j-body a { color: var(--primary); text-decoration: none; }
.j-body a:hover { color: var(--primary-dark); }
.j-body img { max-width: none; }
.j-body button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.j-body button:focus-visible, .j-body a:focus-visible { outline: none; box-shadow: var(--ring); }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.j-nav {
  --nav-ink: #fff;
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 12px clamp(14px, 4vw, 44px);
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.j-nav.is-solid {
  --nav-ink: #06004C;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 0 var(--border-subtle);
}
.j-nav__brand { display: block; }
.j-nav__logo { height: 26px; display: block; filter: brightness(0) invert(1); transition: filter .25s ease; }
.j-nav.is-solid .j-nav__logo { filter: none; }
.j-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(14px, 2vw, 26px); margin-left: auto; }
.j-body .j-nav__links a, .j-body .j-nav__links a:hover { font: var(--label-lg); color: var(--nav-ink); }
.j-lang {
  font: var(--label-lg); color: var(--nav-ink); background: transparent;
  border: 1px solid currentColor; border-radius: var(--radius-pill);
  height: 32px; padding: 0 13px; cursor: pointer; opacity: .9;
}
.j-lang--sm { font: var(--label-md); padding: 0 11px; }
.j-body .j-nav__cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border-radius: var(--radius-pill); background: var(--primary); color: #fff;
  font: 600 14px/1 var(--font-sans); box-shadow: var(--shadow-button);
  transition: background .18s ease;
}
.j-body .j-nav__cta:hover { background: var(--action-primary-hover); color: #fff; }
.j-nav__mobile { display: none; margin-left: auto; align-items: center; gap: 8px; }
.j-burger {
  width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.j-burger span { width: 20px; height: 1.6px; border-radius: 2px; background: var(--nav-ink); }
.j-burger span:last-child { width: 14px; align-self: center; margin-left: 6px; }

/* ---------- Mobile menu sheet ---------- */
.j-menu__scrim { position: fixed; inset: 0; z-index: 80; background: rgba(6, 0, 76, .38); animation: amitaRise .2s ease both; }
.j-menu__sheet {
  position: fixed; left: 0; right: 0; top: 0; z-index: 81;
  background: var(--white); border-radius: 0 0 28px 28px; padding: 14px 20px 24px;
  box-shadow: var(--shadow-raised); animation: amitaRise .25s ease both;
}
.j-menu__head { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.j-menu__head img { height: 24px; display: block; }
.j-menu__close {
  width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  font: 300 30px/1 var(--font-sans); color: var(--text-strong);
}
.j-menu__nav { display: grid; margin-top: 8px; }
.j-body .j-menu__nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display); font-size: 24px; color: var(--text-strong);
}
.j-body .j-menu__nav a:last-child { border-bottom: none; }
.j-menu__nav a span { font: var(--label-md); color: var(--primary); }
.j-body .j-menu__cta {
  margin-top: 16px; display: flex; align-items: center; justify-content: center; height: 52px;
  border-radius: var(--radius-pill); background: var(--primary); color: #fff;
  font: 600 16px/1 var(--font-sans); box-shadow: var(--shadow-button);
}

/* ---------- Mobile download dock ---------- */
.j-dock {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55;
  display: none; align-items: center; gap: 10px; padding: 8px 8px 8px 16px;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(6, 0, 76, .16);
  transform: translateY(140%); transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.j-dock.is-visible { transform: translateY(0); }
.j-dock img { height: 18px; display: block; }
.j-dock__text { flex: 1; min-width: 0; font: var(--caption); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-body .j-dock__cta {
  flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: var(--radius-pill); background: var(--primary); color: #fff; font: 600 14px/1 var(--font-sans);
}

/* ---------- Hero ---------- */
.j-hero {
  position: relative; min-height: min(96vh, 900px);
  display: grid; place-items: center; text-align: center; overflow: hidden; background: #17163a;
}
.j-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.j-hero__shade { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(6,0,76,.18) 0%, rgba(6,0,76,.62) 100%); }
.j-hero__inner {
  position: relative; padding: 120px clamp(20px, 5vw, 40px) 96px;
  display: grid; gap: 26px; justify-items: center; max-width: 980px;
}
.j-hero__over { font: var(--label-md); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.j-hero__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.02em; color: #fff; text-wrap: pretty;
}
.j-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.j-stores a { display: block; }
.j-stores img { display: block; width: auto; }
.j-stores--hero { margin-top: 6px; }
.j-stores--hero img { height: 50px; }
.j-stores--cta img { height: 46px; }
.j-body .j-hero__more, .j-body .j-hero__more:hover {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; color: #fff; font: var(--label-lg); opacity: .9;
}
.j-hero__arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.5); animation: amitaDrift 2.8s ease-in-out infinite;
}

/* ---------- Chapter rail ---------- */
.j-rail {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 50;
  display: none; flex-direction: column; gap: 18px;
}
.j-body .j-rail a { display: flex; align-items: center; gap: 10px; font: var(--label-md); color: var(--text-disabled); transition: color .3s ease; }
.j-rail a span { width: 22px; height: 2px; background: var(--border-strong); transition: background .3s ease; }
.j-body .j-rail a.is-on { color: var(--text-strong); }
.j-rail a.is-on span { background: var(--primary); }
@media (min-width: 1180px) {
  .j-body.is-scrolled .j-rail { display: flex; }
}

/* ---------- Layout & shared type ---------- */
.j-main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); overflow-x: clip; }
.j-ch { padding: clamp(48px, 6vw, 88px) 0; }
.j-ch--first { padding: clamp(72px, 9vw, 132px) 0 clamp(48px, 6vw, 80px); }
.j-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.j-split--center { gap: clamp(28px, 5vw, 64px); align-items: center; }
.j-over { font: var(--label-md); letter-spacing: .18em; text-transform: uppercase; color: var(--primary); }
.j-h2 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.2vw, 58px); line-height: 1.03; letter-spacing: -.02em; color: var(--text-strong); text-wrap: pretty;
}
.j-lead { margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: var(--text-muted); }
.j-lead--narrow { max-width: 44ch; }
.j-head { display: grid; gap: 18px; max-width: 700px; margin-bottom: clamp(28px, 4vw, 44px); }
.j-head--wide { max-width: 720px; }
.j-head--tight { margin-bottom: clamp(24px, 3vw, 36px); }
.j-head--feat { max-width: 640px; margin-bottom: clamp(24px, 3vw, 40px); }

/* Reveal on scroll (chỉ ẩn khi JS đã chạy) */
.j-js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .3, 1);
}
.j-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Chương 01 ---------- */
.j-intro { display: grid; gap: 20px; position: sticky; top: 96px; }
.j-intro .j-lead { max-width: 46ch; }
.j-struggles { display: grid; gap: 2px; border-radius: var(--radius-xl); overflow: hidden; background: var(--border-subtle); }
.j-struggle { background: var(--white); padding: 28px clamp(20px, 3vw, 34px); display: grid; gap: 10px; transition: background .2s ease; }
.j-struggle__num { font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; }
.j-struggle--movement .j-struggle__num { color: var(--yellow-deep); }
.j-struggle--mind .j-struggle__num { color: var(--primary-dark); }
.j-struggle--nutrition .j-struggle__num { color: var(--green-deep); }
.j-struggle--movement:hover { background: var(--cat-movement-bg); }
.j-struggle--mind:hover { background: var(--cat-mind-bg); }
.j-struggle--nutrition:hover { background: var(--cat-nutrition-bg); }
.j-struggle__title { margin: 0; font: var(--title-lg); color: var(--text-strong); }
.j-struggle__text { margin: 0; font: var(--body-md); font-size: 15px; line-height: 1.65; color: var(--text-muted); }

/* ---------- Chương 02 ---------- */
.j-grow {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--yellow-light);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch;
}
.j-grow__media { position: relative; overflow: hidden; }
.j-grow__media img { display: block; width: 100%; height: auto; }
.j-grow__tag {
  position: absolute; left: 20px; top: 20px; display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,.92); font: var(--label-md); color: var(--primary);
}
.j-grow__body { padding: clamp(28px, 4vw, 52px); display: grid; gap: 26px; align-content: center; }
.j-grow__count { display: flex; align-items: baseline; gap: 14px; }
.j-grow__step { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 7vw, 92px); line-height: .9; color: var(--primary); }
.j-grow__hint { font: var(--label-lg); color: var(--text-muted); }
.j-grow__copy { display: grid; gap: 8px; }
.j-grow__title { margin: 0; font: var(--title-lg); font-size: 24px; color: var(--text-strong); }
.j-grow__desc { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-body); max-width: 44ch; }
.j-grow__bars { display: flex; gap: 8px; }
.j-grow__bars span { height: 4px; flex: 1; border-radius: var(--radius-pill); background: var(--border-strong); transition: background .4s ease; }
.j-grow__bars span.is-on { background: var(--primary); }

/* ---------- Chương 03: intro & chips ---------- */
.j-app-intro { display: grid; gap: 20px; }
.j-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.j-chip {
  display: inline-flex; align-items: center; flex: none; height: 36px; padding: 0 16px;
  font: var(--label-lg); color: var(--text-body); background: var(--white);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  cursor: pointer; white-space: nowrap; transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.j-chip.is-on { color: var(--text-on-primary); background: var(--primary); border-color: var(--primary); }
.j-tab-hint { margin: 6px 0 0; font: var(--body-md); color: var(--text-muted); max-width: 40ch; }
.j-auto { display: flex; align-items: center; gap: 10px; font: var(--label-md); color: var(--text-muted); }
.j-auto__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat-nutrition-ink); transition: background .3s ease; }
.j-auto__dot.is-touched { background: var(--primary); }

/* ---------- Chương 03: phone frame ---------- */
.j-phone-wrap { position: relative; justify-self: center; width: 100%; max-width: 340px; }
.j-phone-glow { position: absolute; inset: 8% -18% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(92,89,243,.18), rgba(92,89,243,0)); pointer-events: none; }
.j-phone {
  position: relative; width: 100%; aspect-ratio: 9 / 19.2; border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #2a2752, #12103a);
  box-shadow: 0 30px 60px -20px rgba(6,0,76,.35), var(--shadow-raised);
}
.j-phone__screen { position: relative; width: 100%; height: 100%; border-radius: 39px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.j-phone__notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #12103a; z-index: 5; }
.j-phone__status {
  flex: none; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
  font: 600 12px/1 var(--font-sans); color: var(--text-strong); position: relative; z-index: 4;
}
.j-phone__sig { letter-spacing: .1em; }
.j-phone__view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.j-phone__nav {
  flex: none; position: relative; z-index: 2; display: flex; padding: 6px 2px 12px; background: #fff;
  border-top: 1px solid var(--border-subtle); border-radius: 12px 12px 0 0;
}
.j-pnav {
  flex: 1; min-width: 0; border: none; background: transparent; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.j-pnav:active { transform: scale(.94); }
.j-pnav__pill { width: 46px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: transparent; transition: background .2s ease; }
.j-pnav__pill img { width: 24px; height: 24px; display: block; }
.j-pnav__label { font: 500 10px/1.2 var(--font-sans); color: var(--text-muted); white-space: nowrap; transition: color .2s ease; }
.j-pnav.is-on .j-pnav__pill { background: rgba(92,89,243,.14); }
.j-pnav.is-on .j-pnav__label { color: var(--primary); }

/* Screens */
.j-scr { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; }
.j-scr::-webkit-scrollbar { display: none; }
.j-scr--home { inset: -44px 0 0; }
.j-scr--pad { padding: 8px 14px 90px; }
.j-scr--tight { padding-bottom: 24px; }
.j-scr--tree { padding: 4px 14px 24px; }
.j-rise { animation: amitaRise .5s ease both; }
.j-scr--home .j-rise { animation-duration: .6s; }
.j-p-title-wrap { padding: 0 4px; }
.j-p-title { font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: var(--text-strong); }
.j-p-title--27 { font-size: 27px; line-height: 1.15; }
.j-p-sub { font: var(--body-md); color: var(--text-muted); margin-top: 4px; }
.j-p-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.8); overflow: hidden; }
.j-p-track--water { background: rgba(255,255,255,.85); }
.j-p-track__fill { height: 100%; border-radius: 6px; background: var(--primary); transition: width .45s cubic-bezier(.2, .7, .3, 1); }
.j-fill { animation: amitaFill 1.4s .5s cubic-bezier(.2, .7, .3, 1) both; }

/* Home screen */
.j-p-hero { position: relative; height: 230px; border-bottom-right-radius: 90px; overflow: hidden; }
.j-p-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: amitaKen 14s ease-in-out infinite alternate; }
.j-p-hero__fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.92) 100%); }
.j-p-hero__text { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.j-p-hero__hi { font-family: var(--font-display); font-size: 26px; line-height: 1.1; color: var(--text-strong); }
.j-p-home { padding: 14px 14px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.j-p-moods { display: flex; justify-content: space-between; padding: 0 2px; }
.j-p-mood {
  border: none; background: transparent; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .15s ease;
}
.j-p-mood:active { transform: scale(.92); }
.j-p-mood img { width: 42px; height: 42px; display: block; }
.j-p-mood.is-on img { animation: amitaPopIn .4s ease both; }
.j-p-mood__label { font: var(--label-md); color: var(--primary); min-height: 14px; }
.j-p-regimen { padding: 14px; border-radius: var(--radius-lg); background: var(--cat-nutrition-bg); display: flex; gap: 12px; align-items: center; }
.j-p-regimen > img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.j-p-regimen__body { flex: 1; min-width: 0; }
.j-p-regimen__over { font: var(--label-md); color: var(--cat-nutrition-ink); }
.j-p-regimen__title { font: var(--title-sm); color: var(--text-strong); margin: 2px 0 8px; }
.j-p-section { font: var(--title-sm); color: var(--text-strong); margin-bottom: 10px; }
.j-p-cards { display: flex; gap: 10px; overflow: hidden; }
.j-ccard { width: 96px; flex: none; }
.j-ccard__media { position: relative; width: 96px; height: 96px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunken); }
.j-ccard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.j-ccard__title { font: var(--title-sm); color: var(--text-strong); margin-top: 10px; }
.j-ccard__meta { font: var(--caption); color: var(--text-muted); margin-top: 2px; }

/* Wellness screen */
.j-p-filters { display: flex; gap: 8px; margin: 14px 4px; }
.j-p-filter {
  border: none; cursor: pointer; padding: 7px 14px; border-radius: var(--radius-pill); font: var(--label-lg);
  background: var(--surface-sunken); color: var(--text-strong); transition: background .18s ease, color .18s ease;
}
.j-p-filter:active { transform: scale(.95); }
.j-p-filter.is-on { background: var(--primary); color: #fff; }
.j-p-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.j-p-track-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 4px 16px rgba(6,0,76,.06); }
.j-p-track-item > img { width: 58px; height: 58px; border-radius: var(--radius-md); object-fit: cover; flex: none; }
.j-p-track-item__body { flex: 1; min-width: 0; }
.j-p-track-item__title { font: 500 14px/1.3 var(--font-sans); color: var(--text-strong); }
.j-p-track-item__sub { font: var(--caption); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0; }
.j-p-track-item__meta { font: var(--label-md); color: var(--primary); }
.j-p-play {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(92,89,243,.35); transition: background .18s ease;
}
.j-p-play:active { transform: scale(.92); }
.j-p-play.is-on { background: var(--primary); }
.j-p-play__icon { display: flex; margin-left: 2px; }
.j-eq { display: none; align-items: center; gap: 2px; }
.j-eq span { width: 3px; height: 14px; border-radius: 2px; background: #fff; animation: amitaEq .8s ease-in-out infinite; }
.j-eq span:nth-child(2) { animation-delay: .2s; }
.j-eq span:nth-child(3) { animation-delay: .4s; }
.j-p-play.is-on .j-eq { display: flex; }
.j-p-play.is-on .j-p-play__icon { display: none; }

/* Habit hub */
.j-p-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.j-hub {
  position: relative; display: block; width: 100%; height: 112px; padding: 0; border: none;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; text-align: left; transition: transform .15s ease;
}
.j-hub:active { transform: scale(.97); }
.j-hub > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.j-hub__fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.75) 48%, rgba(255,255,255,0) 82%); }
.j-hub__body { position: relative; padding: 14px 16px; max-width: 72%; display: grid; gap: 4px; }
.j-hub__new { justify-self: start; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--primary); color: #fff; font: 600 10px/1.4 var(--font-sans); letter-spacing: .04em; }
.j-hub__title { font: 500 15px/1.3 var(--font-sans); color: var(--text-strong); }
.j-hub__sub { font: var(--caption); color: var(--text-muted); line-height: 1.35; }
.j-water { padding: 14px 16px; border-radius: var(--radius-lg); background: var(--cat-mind-bg); display: flex; align-items: center; gap: 12px; }
.j-water__body { flex: 1; min-width: 0; }
.j-water__title { font: 500 15px/1.3 var(--font-sans); color: var(--text-strong); }
.j-water__label { font: var(--caption); color: var(--text-muted); margin: 2px 0 8px; }
.j-water__add { flex: none; padding: 9px 12px; border: none; border-radius: var(--radius-pill); background: var(--primary); color: #fff; font: 600 12px/1 var(--font-sans); cursor: pointer; }
.j-water__add:active { transform: scale(.94); }

/* Habit tree */
.j-back { border: none; background: transparent; padding: 4px 0; cursor: pointer; font: var(--label-lg); color: var(--primary); display: flex; align-items: center; gap: 4px; }
.j-tree-head { display: flex; align-items: center; gap: 14px; padding: 4px 4px 0; }
.j-tree-head__body { flex: 1; }
.j-tree-stage { display: inline-flex; margin-top: 8px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--cat-nutrition-bg); color: var(--cat-nutrition-ink); font: var(--label-md); }
.j-tree-ring { width: 70px; height: 70px; border-radius: 50%; padding: 4px; background: conic-gradient(var(--primary) var(--pct), var(--surface-sunken) 0); }
.j-tree-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; display: block; transition: transform .5s cubic-bezier(.2, .8, .3, 1.3); }
.j-p-list--habits { margin-top: 16px; }
.j-habit { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; border-radius: var(--radius-lg); }
.j-habit--movement { --cat-bg: var(--cat-movement-bg); --cat-chip: var(--cat-movement-chip); --cat-ink: var(--cat-movement-ink); }
.j-habit--mind { --cat-bg: var(--cat-mind-bg); --cat-chip: var(--cat-mind-chip); --cat-ink: var(--cat-mind-ink); }
.j-habit--nutrition { --cat-bg: var(--cat-nutrition-bg); --cat-chip: var(--cat-nutrition-chip); --cat-ink: var(--cat-nutrition-ink); }
.j-habit { background: var(--cat-bg); }
.j-habit__body { flex: 1; min-width: 0; }
.j-habit__tag { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; background: var(--cat-chip); color: var(--cat-ink); font: var(--label-md); border-radius: var(--radius-pill); }
.j-habit__name { font: var(--title-sm); color: var(--text-strong); margin: 8px 0 6px; }
.j-habit__when { display: flex; align-items: center; gap: 6px; font: var(--body-md); color: var(--text-muted); }
.j-habit__check {
  flex: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid var(--primary); background: transparent;
  display: flex; align-items: center; justify-content: center; transition: background .14s ease;
}
.j-habit__check svg { display: none; }
.j-habit__check.is-done { border: none; background: var(--primary); }
.j-habit__check.is-done svg { display: block; }

/* Track */
.j-streak { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--cat-movement-bg); display: flex; align-items: center; gap: 12px; }
.j-streak img { width: 36px; height: 36px; animation: amitaFloat 2.4s ease-in-out infinite; }
.j-streak__num { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--text-strong); }
.j-streak__sub { font: var(--caption); color: var(--text-muted); margin-top: 4px; }
.j-p-card { margin-top: 12px; padding: 14px 12px; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 4px 16px rgba(6,0,76,.06); }
.j-p-card__title { font: var(--title-sm); color: var(--text-strong); margin: 0 4px 10px; }
.j-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.j-week__day { display: grid; justify-items: center; gap: 6px; }
.j-week__day img { width: 28px; height: 28px; animation: amitaPopIn .45s ease both; }
.j-week__day img.is-empty { opacity: .35; }
.j-week__day span, .j-bars__col span { font: var(--caption); color: var(--text-muted); }
.j-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 92px; padding: 0 4px; }
.j-bars__col { display: grid; gap: 6px; justify-items: center; align-self: end; }
.j-bars__bar { width: 100%; max-width: 18px; border-radius: 6px; background: rgba(92,89,243,.3); transform-origin: bottom; animation: amitaRise .6s cubic-bezier(.2, .7, .3, 1) both; }
.j-bars__bar.is-today { background: var(--primary); }

/* Regimen */
.j-reg-head { display: flex; align-items: flex-end; gap: 10px; }
.j-reg-head__text { flex: 1; }
.j-cart { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-sunken); display: flex; align-items: center; justify-content: center; }
.j-cart img { width: 20px; height: 20px; }
.j-cart__badge {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--primary); color: #fff; font: 600 10px/17px var(--font-sans); text-align: center; animation: amitaPopIn .35s ease both;
}
.j-reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.j-reg { border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 4px 16px rgba(6,0,76,.07); overflow: hidden; display: flex; flex-direction: column; }
.j-reg__media { aspect-ratio: 1; overflow: hidden; background: var(--surface-sunken); }
.j-reg__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.j-reg__body { padding: 8px 10px 10px; display: grid; gap: 2px; flex: 1; }
.j-reg__title { font: 500 13px/1.3 var(--font-sans); color: var(--text-strong); }
.j-reg__sub { font: 400 10.5px/1.35 var(--font-sans); color: var(--text-muted); min-height: 28px; }
.j-reg__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.j-reg__price { font: 600 11.5px/1.2 var(--font-sans); color: var(--primary); }
.j-reg__add {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: none; padding: 0; background: var(--primary); color: #fff;
  font: 600 16px/1 var(--font-sans); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.j-reg__add:active { transform: scale(.88); }
.j-reg__add.is-on { background: var(--cat-nutrition-ink); }

/* Mini player, toast, tap hint */
.j-player {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; padding: 8px 10px; border-radius: 16px;
  background: var(--gray-1); color: #fff; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 24px rgba(6,0,76,.3); overflow: hidden; animation: amitaRise .4s ease both;
}
.j-player > img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.j-player__body { flex: 1; min-width: 0; }
.j-player__title { font: 500 13px/1.3 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-player__sub { font: 400 11px/1.3 var(--font-sans); opacity: .7; }
.j-player__stop { width: 30px; height: 30px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,.14); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 3px; }
.j-player__stop span { width: 3px; height: 11px; background: #fff; border-radius: 1px; }
.j-player__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--primary); animation: amitaFill 30s linear both; }
.j-toast {
  position: absolute; left: 50%; bottom: 16px; z-index: 3; white-space: nowrap; padding: 10px 16px;
  border-radius: var(--radius-pill); background: var(--white); color: var(--text-strong); font: var(--label-lg);
  box-shadow: 0 10px 30px rgba(6,0,76,.18); animation: amitaPop .35s cubic-bezier(.2, .8, .3, 1.2) both;
}
.j-taphint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 8px; padding: 11px 18px; border: none; border-radius: var(--radius-pill);
  background: #06004C; color: #fff; font: 600 14px/1 var(--font-sans); white-space: nowrap; cursor: pointer;
  animation: amitaRing 1.8s ease-out infinite;
}
.j-taphint svg { animation: amitaFloat 1.8s ease-in-out infinite; }

/* Floating cards beside the phone */
.j-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-raised);
  animation: amitaFloat 5s ease-in-out infinite; pointer-events: none;
}
.j-float--a { left: -34%; top: 13%; }
.j-float--b { right: -36%; bottom: 3%; animation: amitaFloat 6s 1.2s ease-in-out infinite; }
.j-float__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--cat-movement-bg); display: flex; align-items: center; justify-content: center; }
.j-float__icon img { width: 20px; height: 20px; }
.j-float__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.j-float__text { font: var(--label-md); color: var(--text-strong); line-height: 1.3; }
.j-float__text span { color: var(--text-muted); }

/* ---------- Chương 04 ---------- */
.j-well { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.j-breath { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 380px; display: grid; place-items: center; background: #1d1b3f; }
.j-breath__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.j-breath__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,0,76,.25), rgba(6,0,76,.7)); }
.j-breath__body { position: relative; display: grid; justify-items: center; gap: 18px; padding: 32px; text-align: center; }
.j-breath__btn {
  position: relative; width: 132px; height: 132px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.14); color: #fff; font: var(--label-lg); cursor: pointer; transition: background .18s ease;
}
.j-breath__btn:hover { background: rgba(255,255,255,.22); }
.j-breath__btn.is-on { animation: amitaInhale 8s ease-in-out infinite; }
.j-breath__copy { display: grid; gap: 6px; }
.j-breath__copy h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 400; color: #fff; }
.j-breath__copy p { margin: 0; font: var(--body-md); font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.86); max-width: 34ch; }
.j-well__side { display: grid; gap: clamp(20px, 3vw, 32px); }
.j-card { border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 32px); display: grid; gap: 16px; }
.j-card--mind { background: var(--primary-wash); }
.j-card--journal { background: var(--green-light); gap: 14px; }
.j-card__copy { display: grid; gap: 6px; }
.j-card__title { margin: 0; font: var(--title-lg); color: var(--text-strong); }
.j-card__text { margin: 0; font: var(--body-md); font-size: 15px; line-height: 1.6; color: var(--text-body); }
.j-card__ask { margin: 0; font-family: var(--font-display); font-size: 20px; color: var(--text-strong); }
.j-card__echo { margin: 0; font: var(--caption); color: var(--primary-dark); }
.j-card__when { display: flex; align-items: center; gap: 10px; font: var(--caption); color: var(--green-deep); }
.j-card__when span { width: 8px; height: 8px; border-radius: 50%; background: var(--status-success); }
.j-moods { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.j-mood { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.j-mood__disc { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--gray-3); transition: background .15s ease; }
.j-mood__label { font: var(--label-lg); min-height: 16px; color: transparent; }
.j-mood.is-on .j-mood__disc { background: var(--primary); color: #fff; }
.j-mood.is-on .j-mood__label { color: var(--primary); }

/* ---------- Chương 05 ---------- */
.j-day { display: grid; gap: 10px; }
.j-day__row { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); border-radius: var(--radius-md); padding: 16px clamp(14px, 2vw, 22px); transition: transform .18s ease; }
.j-day__row:hover { transform: translateX(4px); }
.j-day__row--mind { background: var(--cat-mind-bg); }
.j-day__row--nutrition { background: var(--cat-nutrition-bg); }
.j-day__row--movement { background: var(--cat-movement-bg); }
.j-day__time { flex: none; width: 54px; font-family: var(--font-display); font-size: 17px; color: var(--text-strong); }
.j-day__thumb { flex: none; width: 54px; height: 54px; border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.j-day__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.j-day__body { flex: 1 1 auto; display: grid; gap: 3px; min-width: 0; }
.j-day__title { font: var(--title-sm); color: var(--text-strong); }
.j-day__meta { font: var(--caption); color: var(--text-muted); }
.j-day__play { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--primary); box-shadow: var(--shadow-card); }

/* ---------- Tính năng chính ---------- */
.j-feats { display: grid; gap: 0; }
.j-feat { display: flex; flex-wrap: wrap; gap: 6px clamp(12px, 2vw, 32px); align-items: baseline; padding: clamp(20px, 2.6vw, 30px) 0; border-top: 1px solid var(--border-default); }
.j-feat:last-child { border-bottom: 1px solid var(--border-default); }
.j-feat__num { flex: 0 0 44px; font-family: var(--font-display); font-size: 22px; color: var(--primary); }
.j-feat__title { flex: 1 1 190px; margin: 0; font: var(--title-md); font-size: 20px; color: var(--text-strong); }
.j-feat__text { flex: 1 1 300px; margin: 0; font: var(--body-md); font-size: 15px; line-height: 1.65; color: var(--text-muted); }

/* ---------- CTA ---------- */
.j-cta { margin-top: clamp(32px, 4vw, 56px); padding: clamp(64px, 8vw, 116px) clamp(20px, 5vw, 40px); background: var(--primary); border-radius: var(--radius-hero); text-align: center; }
.j-cta__inner { max-width: 720px; margin: 0 auto; display: grid; gap: 24px; justify-items: center; }
.j-cta__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.02em; color: #fff; text-wrap: pretty; }
.j-cta__text { margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: #fff; max-width: 48ch; }
.j-body .j-cta__btn { display: inline-flex; align-items: center; height: 52px; padding: 0 30px; border-radius: var(--radius-pill); background: #fff; color: var(--primary-dark); font: 600 16px/1 var(--font-sans); transition: background .18s ease; }
.j-body .j-cta__btn:hover { background: var(--primary-wash); color: var(--primary-dark); }
.j-cta__label { font: var(--label-lg); color: #fff; opacity: .88; }

/* ---------- Footer ---------- */
.j-foot { padding: clamp(32px, 4vw, 48px) clamp(20px, 5vw, 40px); }
.j-foot__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.j-foot__logo { height: 22px; display: block; }
.j-foot__copy { font: var(--caption); color: var(--text-muted); }
.j-foot__links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-left: auto; }
.j-body .j-foot__links a { font: var(--label-lg); color: var(--text-muted); }
.j-body .j-foot__links a:hover { color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .j-float { display: none; }
}
@media (max-width: 768px) {
  .j-nav__links, .j-body .j-nav__cta { display: none; }
  .j-nav__mobile { display: flex; }
  .j-dock { display: flex; }
  .j-stores--hero { gap: 10px; }
  .j-stores--hero img { height: 44px; }
  .j-chips { flex-wrap: nowrap; gap: 8px; margin: 4px -20px 0; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
  .j-chips::-webkit-scrollbar { display: none; }
  .j-foot { padding: 36px 20px 104px; }
  .j-foot__inner { display: grid; gap: 20px; }
  .j-foot__links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-left: 0; }
  .j-foot__copy { order: 3; }
}
@media (max-width: 759px) {
  .j-intro { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .j-p-hero__img, .j-float, .j-streak img, .j-taphint, .j-taphint svg, .j-hero__arrow { animation: none; }
  .j-p-mood img { animation: none !important; }
  .j-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
