/* CORE+ landing — mobile first */
:root {
  --forest: #123f30;
  --deep: #0b2c22;
  --leaf: #7fa68a;
  --leaf-soft: #dce9dc;
  --cream: #efe4cd;
  --cream-2: #f7f0e1;
  --paper: #faf8f3;
  --soft: #eef3ec;
  --ink: #16352a;
  --muted: #5d6d65;
  --line: #e1e7de;
  --gold: #c9b078;
  --r: 22px;
  --shadow: 0 18px 50px rgba(18, 44, 35, .10);
  --sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
h1, h2, h3 { margin: 0; }
.wrap { width: min(1140px, calc(100% - 32px)); margin-inline: auto; }
section[id] { scroll-margin-top: 72px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.2; text-align: center; transition: transform .2s, box-shadow .2s, background .2s; }
.btn svg { font-size: 1.05em; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: #18513e; }
.btn-cream { background: var(--cream); color: var(--deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: #bccdc0; color: var(--forest); background: transparent; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(250, 248, 243, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(18, 44, 35, .05); }
.nav { height: 66px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: 0; line-height: 1.2; }
.brand.light small { color: #a9bcb0; }
.links { display: none; }
.nav-cta { display: none; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 1.35rem; color: var(--forest); }
.menu-btn .shut { display: none; }
.menu-open .menu-btn .open { display: none; }
.menu-open .menu-btn .shut { display: block; }
/* Menu mobile: thả xuống dưới header */
.menu-open .links { display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; padding: 8px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(18, 44, 35, .08); }
.menu-open .links a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.menu-open .links .menu-cta { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 90% at 85% 10%, #1d5643 0%, var(--forest) 45%, var(--deep) 100%); color: #fff; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; padding: 44px 0 56px; align-items: center; }
.pill { display: inline-block; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e6dcc4; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 13vw, 6.2rem); line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--cream); }
.lead { color: #d3e2d7; font-size: 1.05rem; max-width: 34em; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row .btn { flex: 1 1 210px; }
.hero-points { list-style: none; padding: 22px 0 0; margin: 30px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .86rem; color: #cfdcd2; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points svg { color: var(--cream); }
.hero-visual { position: relative; border-radius: 200px 200px 24px 24px; overflow: hidden; aspect-ratio: 4 / 4.6; background: linear-gradient(140deg, #738f72, #d2d4b9 60%, #7c9f88); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.floating { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255, 254, 247, .95); color: var(--deep); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.floating strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.floating span { font-size: .84rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.soft { background: var(--soft); }
.dark { background: var(--deep); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #4f7d64; }
.dark .eyebrow { color: var(--gold); }
.section h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.85rem, 6.2vw, 3rem); line-height: 1.18; letter-spacing: -.02em; margin: 10px 0 16px; }
.section p { color: var(--muted); margin: 0 0 18px; }
.dark p { color: #c9d9cf; }
.note { font-size: .8rem; color: #7a877f !important; margin-top: 18px !important; }

.grid { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.12rem; line-height: 1.35; margin: 14px 0 8px; }
.card p { font-size: .92rem; margin: 0; }
.icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--leaf-soft); color: #245540; font-size: 1.6rem; }
.value .icon { background: var(--cream-2); color: #7a6331; }
.disclaimer { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0 !important; padding: 15px 18px; background: #fff8e8; border-left: 4px solid var(--gold); border-radius: 10px; font-size: .88rem; color: #6c6146 !important; }
.disclaimer svg { font-size: 1.3rem; color: #a78a48; margin-top: 1px; }

.split { display: grid; gap: 34px; align-items: center; }
.photo-frame { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; background: #cfdcd0; box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.photo-frame:hover img { transform: scale(1.04); }

.ticks { list-style: none; padding: 0; margin: 8px 0 26px; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks li > svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--leaf-soft); color: #23573f; }
.ticks strong { display: block; }
.ticks span { color: var(--muted); font-size: .92rem; }
.ticks.light li > svg { background: #24493b; color: var(--cream); }
.ticks.light span { color: #bfd2c5; }

/* Phương pháp */
.dark .card { background: #173e31; border-color: #2a5545; color: #fff; }
.dark .card p { color: #c3d6ca; }
.num { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.method-split { margin-top: 44px; align-items: start; }
.sub { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin-bottom: 6px !important; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; padding: 17px 0; border-bottom: 1px solid #2a5545; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-size: 1.5rem; color: var(--gold); line-height: 1.2; }
.steps strong { display: block; }
.steps span { color: #bfd2c5; font-size: .92rem; }
.video-card { background: var(--cream); border-radius: var(--r); padding: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #2b5a48, #123f30); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; color: #fff; }
.video-empty span:last-child { font-size: .85rem; color: #c6d8cc; }
.play { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 8px; border-radius: 50%; background: var(--cream); color: var(--forest); font-size: 1.6rem; box-shadow: 0 0 0 10px rgba(239, 228, 205, .18); }

/* Kết quả */
.feature .icon { background: var(--forest); color: var(--cream); }
.results-cta { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 22px 24px; border-radius: var(--r); background: var(--cream-2); }
.results-cta p { margin: 0; color: #5c5a46; }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1.3; color: var(--forest); margin: 4px 0 16px; padding-left: 18px; border-left: 3px solid var(--gold); }

/* Cơ sở */
.facility { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.facility-cover { aspect-ratio: 16 / 7; background: linear-gradient(130deg, #dce9dc, #9fbca5); display: grid; place-items: center; color: #2a5a45; font-size: 2.6rem; }
.facility-cover img { width: 100%; height: 100%; object-fit: cover; }
.facility-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.facility-body h3 { margin: 0; font-size: 1.25rem; }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 800; background: var(--leaf-soft); color: #23533d; padding: 5px 11px; border-radius: 999px; }
.meta-line { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.meta-line svg { margin-top: 4px; color: var(--leaf); }
.meta-line.pending { font-style: italic; }
.facility-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.facility-actions .btn { flex: 1 1 180px; min-height: 44px; font-size: .9rem; }
.skeleton { min-height: 260px; background: linear-gradient(100deg, #f1f4ef 30%, #fff 50%, #f1f4ef 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Coach */
.coach { padding: 0; overflow: hidden; }
.coach-photo { aspect-ratio: 4 / 3; background: linear-gradient(125deg, #dbe8d9, #94ad95); display: grid; place-items: center; font-family: var(--serif); font-size: 3.4rem; color: var(--forest); }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach-body { padding: 22px 24px 24px; }
.coach-body h3 { margin-top: 10px; }
.coach-body .btn { margin-top: 18px; }

/* Tải app */
.download-panel { position: relative; overflow: hidden; display: grid; gap: 36px; align-items: center; padding: 32px 22px; border-radius: 28px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, #215c47 0%, var(--forest) 50%, var(--deep) 100%); }
.download-panel h2 { color: var(--cream-2); }
.download-panel p { color: #cfdfd4; }
.download-panel .eyebrow { color: var(--gold); }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; flex: 1 1 170px; max-width: 220px; padding: 11px 18px; border-radius: 14px; background: #fff; color: var(--deep); font-weight: 700; font-size: 1.05rem; line-height: 1.15; transition: transform .2s; }
.store-badge svg { font-size: 1.7rem; }
.store-badge small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
.store-badge:not([aria-disabled=true]):hover { transform: translateY(-2px); }
.store-badge[aria-disabled=true] { opacity: .78; cursor: default; }
.soon { font-size: .84rem; margin: 0 !important; color: #a9c1b2 !important; }
.phone { justify-self: center; width: min(250px, 78vw); padding: 10px; border-radius: 38px; background: #0a2219; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 2px #24463a; transform: rotate(-3deg); }
.phone-screen { border-radius: 29px; overflow: hidden; background: var(--paper); color: var(--ink); min-height: 400px; }
.phone-head { display: flex; align-items: center; gap: 9px; padding: 20px 16px 14px; background: var(--forest); color: #fff; }
.phone-head img { border-radius: 9px; }
.phone-head b { display: block; font-size: .95rem; }
.phone-head small { font-size: .65rem; color: #b8cdbf; }
.phone-hero { margin: 14px; padding: 16px; border-radius: 18px; background: var(--leaf-soft); }
.phone-hero small { display: block; font-size: .7rem; color: var(--muted); }
.phone-hero b { font-family: var(--serif); font-size: 1.8rem; color: var(--forest); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 10px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(#7fa68a, #3f7a5c); }
.phone-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 14px 18px; }
.phone-tiles span { padding: 14px 10px; border-radius: 13px; background: #fff; border: 1px solid var(--line); font-size: .75rem; font-weight: 700; text-align: center; }

/* FAQ */
.faq { border-top: 1px solid #d3ddd4; }
.faq details { border-bottom: 1px solid #d3ddd4; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 19px 0; cursor: pointer; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--forest); font-size: 1.2rem; font-weight: 500; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 20px; font-size: .94rem; }

/* Form */
.register { align-items: start; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-row .btn { min-height: 44px; font-size: .9rem; }
.form { background: #fff; color: var(--ink); border-radius: 26px; padding: 26px 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.form .eyebrow { color: #4f7d64; }
.form h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 6px 0 22px; color: var(--forest); }
.field { margin-bottom: 15px; }
.field-row { display: grid; gap: 0 14px; }
.field label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfdad0; border-radius: 12px; background: #fff; font-size: 16px; /* 16px: iOS không tự zoom */ transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23123f30' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field input:focus, .field select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(127, 166, 138, .22); }
.field.invalid input { border-color: #c0483b; }
.field .err { display: block; margin-top: 5px; font-size: .8rem; color: #b23b2f; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 20px; font-size: .82rem; color: #5f6f66; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--forest); flex-shrink: 0; }
.consent.invalid span { color: #b23b2f; }
.form-status { margin: 12px 0 0 !important; font-size: .9rem; color: var(--muted) !important; }
.form-status:empty { display: none; }
.form-status.ok { padding: 14px 16px; border-radius: 12px; background: #e5f2e6; color: #1f5a3b !important; }
.form-status.fail { padding: 14px 16px; border-radius: 12px; background: #fbeae7; color: #8d2f25 !important; }

/* Footer */
.footer { background: #0a271e; color: #d5e2d8; padding: 48px 0 110px; }
.footer-grid { display: grid; gap: 28px; }
.footer strong { display: block; color: var(--cream); margin-bottom: 10px; }
.footer a:not(.brand) { display: block; padding: 4px 0; font-size: .9rem; color: #b9cbbf; }
.footer a:not(.brand):hover { color: #fff; }
.footer p { font-size: .88rem; color: #a9bcb0; margin: 14px 0 0; }
.copyright { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #8ea597; }

/* Thanh CTA dưới cùng (mobile) */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; gap: 10px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: rgba(255, 254, 248, .97); box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .3s; }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 46px; padding: 10px; font-size: .88rem; }
.mobile-cta .btn-outline { flex: 0 0 auto; padding-inline: 18px; }

/* Hiện dần khi cuộn */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .grid.cols2, .grid.cols3, .grid.cols4 { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form { padding: 34px; }
  .results-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .floating { right: auto; max-width: 280px; left: 22px; bottom: 22px; }
}
@media (min-width: 820px) {
  .section { padding: 96px 0; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; padding: 72px 0 84px; gap: 56px; }
  .cta-row .btn { flex: 0 0 auto; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .grid.cols3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols4 { grid-template-columns: repeat(4, 1fr); }
  .download-panel { grid-template-columns: 1.3fr .7fr; padding: 56px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .method-split { grid-template-columns: .9fr 1.1fr; }
}
/* ---------- Desktop ---------- */
@media (min-width: 1040px) {
  .nav { height: 74px; }
  section[id] { scroll-margin-top: 80px; }
  .links { display: flex; gap: 26px; align-items: center; font-size: .9rem; font-weight: 600; }
  .links a:not(.btn) { position: relative; padding: 6px 0; }
  .links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--leaf); transform: scaleX(0); transition: transform .25s; }
  .links a:not(.btn):hover::after, .links a.active::after { transform: scaleX(1); }
  .links .menu-cta { display: none; }
  .nav-cta { display: inline-flex; min-height: 44px; padding: 10px 18px; font-size: .88rem; }
  .menu-btn { display: none; }
  .mobile-cta { display: none; }
  .footer { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
