/* ==========================================================================
   PHA CHẾ 1987 — Design system v2
   Espresso · Caramel · Cream · Sage
   ========================================================================== */

:root {
  --bg: #FBF7F1;
  --bg-alt: #F4ECE1;
  --surface: #FFFFFF;
  --dark: #1C130D;
  --dark-2: #2A1D14;
  --dark-3: #3A2A1E;

  --ink: #1F150F;
  --ink-2: #4E3F35;
  --ink-3: #85746A;
  --on-dark: #FBF6EF;
  --on-dark-2: #CDBCAD;

  --accent: #C4672A;
  --accent-600: #A9531C;
  --accent-50: #FBEDE3;
  --gold: #E3A548;
  --sage: #2E6047;
  --sage-50: #E6F1EA;
  --red: #B4402F;

  --line: #E8DED2;
  --line-2: #D7C7B5;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(31, 21, 15, .05), 0 2px 8px rgba(31, 21, 15, .04);
  --sh-2: 0 8px 28px rgba(31, 21, 15, .08);
  --sh-3: 0 24px 60px rgba(31, 21, 15, .16);

  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --header-h: 68px;
  --container: 1180px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 800px; }
.container-mid { max-width: 1000px; }
.container-wide { max-width: 1400px; }

.display, .stats dt, .founder-photo span, .brand-mark { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
.display { font-family: var(--f-display); font-weight: 700; letter-spacing: -.015em; }
.display em { font-style: italic; color: var(--accent); }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.lead { font-size: 18px; color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-600); background: var(--accent-50);
  padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: 14px;
}
.eyebrow-dark { color: #F3C27A; background: rgba(227, 165, 72, .14); }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: var(--r-pill);
  background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.pill-free { background: var(--sage-50); color: var(--sage); border-color: #CBE2D4; }
.pill-vip { background: var(--dark); color: #F3C27A; border-color: var(--dark); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  transition: transform .15s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.show-sm { display: none; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(196, 103, 42, .32); }
.btn-primary:hover { background: var(--accent-600); box-shadow: 0 8px 22px rgba(196, 103, 42, .4); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: var(--on-dark); border-color: rgba(255, 255, 255, .2); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 241, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(31, 21, 15, .05); }
.nav-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--dark); color: var(--gold);
  font-family: var(--f-display); font-weight: 700; font-size: 18px; font-style: italic;
}
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 17px; line-height: 1.1; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.brand-light { color: #fff; }
.brand-light .brand-mark { background: var(--accent); color: #fff; }
.brand-light .brand-text small { color: var(--on-dark-2); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-links .nav-portal { color: var(--accent-600); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: ''; transition: transform .2s, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .display em { color: var(--gold); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head h1, .section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { color: var(--ink-2); font-size: 17px; margin: 0; }
.section-head.on-dark p { color: var(--on-dark-2); }
.section-head-left { text-align: left; margin-left: 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(227, 165, 72, .16), transparent 60%),
    radial-gradient(700px 360px at 0% 100%, rgba(46, 96, 71, .08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.3vw, 54px); line-height: 1.12; margin-bottom: 20px; text-wrap: balance; }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 600px; margin-bottom: 28px; }
.hero-lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: ''; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hero-price {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--sh-2);
}
.hero-micro { font-size: 13px; color: var(--ink-3); margin: -10px 0 20px; }

/* Sân khấu hero: ảnh quầy + điện thoại mở bài học thật */
.hero-stage { position: relative; min-height: 610px; }
.hero-photo {
  position: absolute; right: 0; top: 0; width: 74%; height: 82%; margin: 0;
  border-radius: 28px; overflow: hidden; box-shadow: var(--sh-3); background: var(--dark-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 45%, rgba(28, 19, 13, .35)); }

.phone {
  position: absolute; left: 0; top: 34px; z-index: 3; width: 292px;
  padding: 9px; border-radius: 44px; background: #17110C;
  box-shadow: 0 40px 80px -10px rgba(31, 21, 15, .45), inset 0 0 0 1.5px #4A3828;
  animation: phone-in .8s var(--ease) both;
}
.phone-screen { border-radius: 36px; overflow: hidden; background: var(--bg); }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px 8px; font-size: 11px; font-weight: 700; color: var(--ink); }
.phone-island { width: 78px; height: 22px; border-radius: 999px; background: #17110C; }
.phone-video {
  display: block; position: relative; margin: 0 10px; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  background: #2A1D14 url('/assets/img/hero-720.jpg') 4% 60% / 260% auto no-repeat;
}
.phone-video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .55)); }
.phone-video .lesson-video-meta { z-index: 1; }
.phone-body { padding: 12px 16px 16px; }
.phone-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.phone-tags .pill { font-size: 10.5px; padding: 4px 8px; }
.phone-title { font-family: var(--f-display); font-size: 21px; line-height: 1.2; margin: 10px 0 12px; }
.phone-scale { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.phone-scale em { font-style: normal; font-weight: 600; color: var(--accent-600); }
.hero-stage.is-tried .phone-scale em { visibility: hidden; }
.phone .scaler { padding: 2px; background: var(--bg-alt); }
.phone .scale-btn { min-width: 38px; height: 30px; font-size: 12.5px; position: relative; }
.phone .scale-btn[data-scale="10"]::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--accent);
  animation: pulse-ring 1.8s var(--ease) infinite; pointer-events: none;
}
.hero-stage.is-tried .scale-btn[data-scale="10"]::after { display: none; }
.phone-ing { list-style: none; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.phone-ing li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.phone-ing li:last-child { border-bottom: 0; }
.phone-ing strong, .ingredient-list strong { color: var(--accent-600); }
.phone-foot { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--dark); color: #fff; font-size: 12.5px; font-weight: 700; text-align: center; }

.float-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; max-width: 250px;
  padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-2); font-size: 12px; line-height: 1.35; color: var(--ink-3);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip b { display: block; font-size: 13.5px; color: var(--ink); }
.chip-star { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font-size: 15px; }
.chip-ico { font-size: 20px; }
.chip-menu { right: -14px; top: 30%; }
.chip-support { right: 6%; top: -18px; animation-delay: -3s; }

.hero-stage .hero-price { position: absolute; right: 0; bottom: 0; z-index: 4; width: calc(100% - 316px); max-width: 260px; margin: 0; flex-direction: column; align-items: stretch; gap: 12px; }
.hero-stage .hero-price .btn { width: 100%; }
.hero-price > div { display: flex; flex-direction: column; line-height: 1.3; }
.hero-price-old { font-size: 12.5px; color: var(--ink-3); }
.hero-price-new { font-size: 24px; font-weight: 800; color: var(--accent-600); letter-spacing: -.01em; }
.hero-price-note { font-size: 12.5px; color: var(--sage); font-weight: 600; }

/* Video bài học */
.lesson-video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: var(--r-md); overflow: hidden; background: var(--dark) center / cover no-repeat;
  color: #fff; text-align: left;
}
button.lesson-video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); transition: background .2s; }
button.lesson-video:hover::after { background: linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .6)); }
.lesson-video-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s var(--ease);
}
.lesson-video-play::after { content: ''; position: absolute; left: 26px; top: 21px; border-left: 17px solid var(--accent); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
button.lesson-video:hover .lesson-video-play { transform: scale(1.08); }
.phone-video .lesson-video-play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.phone-video .lesson-video-play::after { left: 19px; top: 15px; border-left-width: 13px; border-top-width: 9px; border-bottom-width: 9px; }
.lesson-video-meta {
  position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(4px);
}
.lesson-video.is-playing { background: #000; }
.lesson-video.is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-video-pending { margin: 0 0 18px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink-3); }
#recipeBody .lesson-video { margin: 0 0 18px; }
.recipe-video { margin: 0 0 28px; }
.recipe-video .lesson-video { border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.pill-hot { background: #FDE6D5; color: var(--accent-600); border-color: #F5CCAE; }
.pill-video { background: var(--dark); color: #fff; border-color: var(--dark); }

.is-flash strong { animation: flash 0.7s var(--ease); }

@keyframes phone-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulse-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes flash { 0% { background: rgba(227, 165, 72, .45); } 100% { background: transparent; } }

.stats {
  margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1);
}
.stats > div { padding: 20px 22px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats dt { font-family: var(--f-display); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stats dd { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); font-weight: 500; }

/* ---------- Personas ---------- */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; box-shadow: var(--sh-1); }
.persona-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-50); font-size: 26px; margin-bottom: 18px; }
.persona h3 { font-size: 19px; }
.persona p { color: var(--ink-2); font-size: 15px; margin: 0; }
.honest-note { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 14.5px; color: var(--ink-3); }
.honest-note strong { color: var(--ink-2); }

/* ---------- Compare table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare-table thead th { border-top: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--bg); }
.compare-table tbody th { font-weight: 700; width: 18%; color: var(--ink); }
.compare-table td { color: var(--ink-2); }
.compare-table .is-us { background: #FFF8F1; color: var(--ink); }
.compare-table thead .is-us { background: var(--dark); color: #F3C27A; }
.compare-table .yes, .compare-table .no, .compare-table .mid { display: flex; gap: 8px; }
.compare-table .yes::before, .compare-table .no::before, .compare-table .mid::before { flex-shrink: 0; font-weight: 800; }
.compare-table .yes::before { content: '✓'; color: var(--sage); }
.compare-table .no::before { content: '✕'; color: var(--red); }
.compare-table .mid::before { content: '~'; color: var(--gold); }

/* ---------- Curriculum ---------- */
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: box-shadow .2s, border-color .2s; }
.module[open] { box-shadow: var(--sh-2); border-color: var(--line-2); }
.module summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; }
.module summary::-webkit-details-marker { display: none; }
.module-ico { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; font-size: 24px; background: var(--bg-alt); border-radius: 12px; }
.module-head { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.module-head strong { font-size: 16.5px; }
.module-head small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.module-chevron { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt); position: relative; flex-shrink: 0; transition: transform .25s var(--ease); }
.module-chevron::before { content: ''; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); }
.module[open] .module-chevron { transform: rotate(180deg); }
.module-body { padding: 0 20px 20px; }
.module-body > p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.module-list { list-style: none; display: grid; gap: 2px; }
.module-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
.module-list li:nth-child(odd) { background: var(--bg); }
.module-list li.is-free { color: var(--ink); font-weight: 600; }
.module-list li.is-free a { flex: 1; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.module-list li.is-free a:hover { color: var(--accent-600); }
.module-list li.more { color: var(--ink-3); font-style: italic; }
.lock {
  width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385746A' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2.5'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Recipe cards ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.recipe-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
a.recipe-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.recipe-card-top { display: flex; flex-wrap: wrap; gap: 6px; }
.recipe-card h3 { font-size: 17px; margin: 0; line-height: 1.35; }
.recipe-card p { font-size: 14px; color: var(--ink-3); margin: 0; flex: 1; }
.recipe-cost { font-size: 13px; font-weight: 700; color: var(--sage); }
.recipe-more { font-size: 14px; font-weight: 700; color: var(--accent-600); }
.recipe-card-locked { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.recipe-card-locked h3 { color: #fff; }
.locked-list { list-style: none; flex: 1; display: grid; gap: 6px; font-size: 14px; color: var(--on-dark-2); }
.locked-list li { display: flex; gap: 8px; }
.locked-list li::before { content: '🔒'; font-size: 11px; margin-top: 3px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 22px; }
.step-no { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--dark); color: var(--gold); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 17px; }
.steps p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.video-card { position: relative; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--dark); text-align: left; aspect-ratio: 16/10; }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .4s var(--ease); }
.video-card:hover img { opacity: 1; transform: scale(1.03); }
.video-play { position: absolute; left: 50%; top: 45%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: var(--sh-2); }
.video-play::after { content: ''; position: absolute; left: 24px; top: 19px; border-left: 16px solid var(--accent); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; color: #fff; font-weight: 700; font-size: 15px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.modal-video { max-width: 900px; padding: 0; background: #000; }
.video-frame { aspect-ratio: 16/9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Trust ---------- */
.demo-tag { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7A4E08; background: #FFE7B8; border: 1px dashed #D99B38; padding: 3px 8px; border-radius: 6px; }
.founder { position: relative; display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--sh-1); margin-bottom: 28px; }
.founder-photo { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, var(--dark-2), var(--dark-3)); display: grid; place-items: center; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo span { font-family: var(--f-display); font-size: 96px; color: var(--gold); font-style: italic; }
.founder-body h3 { font-family: var(--f-display); font-size: 30px; margin-bottom: 2px; }
.founder-role { color: var(--accent-600); font-weight: 700; margin-bottom: 14px; }
.founder-body p { color: var(--ink-2); }
.founder-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.founder-stats li { font-size: 13.5px; font-weight: 700; background: var(--bg-alt); border-radius: var(--r-pill); padding: 8px 14px; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial { position: relative; margin: 0; display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--sh-1); }
.testimonial blockquote { margin: 0; flex: 1; font-size: 15px; color: var(--ink-2); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.testimonial figcaption small { display: block; color: var(--ink-3); font-size: 13px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-600); font-weight: 800; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; max-width: 1040px; margin: 0 auto; }
.calc-inputs { background: var(--dark-2); border: 1px solid var(--dark-3); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 26px; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; color: var(--on-dark-2); margin-bottom: 12px; }
.calc-field output { color: #fff; font-weight: 800; font-size: 17px; white-space: nowrap; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--gold) var(--fill, 50%), rgba(255, 255, 255, .14) var(--fill, 50%)); }
input[type='range']::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
input[type='range']::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--gold); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); }
.calc-out { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--sh-3); }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-2); }
.calc-row strong { color: var(--ink); font-size: 17px; white-space: nowrap; }
.calc-row-main strong { color: var(--sage); font-size: 22px; }
.calc-row-main strong.neg { color: var(--red); }
.calc-insight { margin: 14px 0 18px; padding: 16px; border-radius: var(--r-md); background: var(--accent-50); display: flex; flex-direction: column; gap: 2px; }
.calc-insight-label { font-size: 13px; font-weight: 600; color: var(--accent-600); }
.calc-insight strong { font-size: 22px; color: var(--ink); }
.calc-insight small { font-size: 13px; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.offer-banner { display: flex; align-items: center; gap: 14px; max-width: 880px; margin: 0 auto 28px; padding: 16px 20px; border-radius: var(--r-md); background: #FFF6E6; border: 1px solid #F2D8A7; }
.offer-ico { font-size: 28px; }
.offer-banner div { display: flex; flex-direction: column; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.offer-banner strong { color: #7A4E08; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--sh-1); }
.price-card.is-featured { border: 2px solid var(--accent); box-shadow: var(--sh-3); }
.price-flag { position: absolute; top: -14px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); }
.price-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-tagline { font-size: 14.5px; color: var(--ink-3); margin-bottom: 18px; }
.price-amount { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.price-sub { font-size: 13.5px; color: var(--ink-3); margin: 8px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-features { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 14.5px; }
.price-features li::before { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; margin-top: 2px; }
.price-features li.on::before { content: '✓'; background: var(--sage-50); color: var(--sage); }
.price-features li.off { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.price-features li.off::before { content: '–'; background: var(--bg-alt); color: var(--ink-3); }
.guarantee { display: flex; align-items: center; gap: 22px; max-width: 880px; margin: 28px auto 0; padding: 22px 26px; border-radius: var(--r-md); background: var(--sage-50); border: 1px solid #CBE2D4; }
.guarantee-seal { width: 76px; height: 76px; flex-shrink: 0; border-radius: 50%; background: var(--sage); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #CBE2D4; }
.guarantee-seal strong { font-size: 28px; }
.guarantee-seal span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.guarantee h3 { font-size: 18px; margin-bottom: 4px; color: var(--sage); }
.guarantee p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.guarantee a { color: var(--sage); font-weight: 700; text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 16px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--bg-alt); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 7px; right: 7px; top: 11px; height: 2px; background: var(--ink-2); border-radius: 2px; transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; }

/* ---------- Signup ---------- */
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.signup-copy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.check-list { list-style: none; display: grid; gap: 12px; margin: 22px 0 28px; }
.check-list li { display: flex; gap: 12px; color: var(--on-dark-2); }
.check-list li::before { content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(227, 165, 72, .18); color: var(--gold); font-weight: 900; font-size: 13px; }
.zalo-cta { display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); font-size: 14.5px; color: var(--on-dark-2); transition: background .2s; }
.zalo-cta:hover { background: rgba(255, 255, 255, .12); }
.zalo-cta strong { color: #fff; display: block; }
.ico-zalo { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: #0068FF; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: -.02em; }

.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-3); }
.lead-form h3 { font-family: var(--f-display); font-size: 26px; margin-bottom: 4px; }
.form-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.optional { font-weight: 500; color: var(--ink-3); }
.field input[type='text'], .field input[type='tel'], .field select {
  width: 100%; height: 50px; padding: 0 16px; font-size: 16px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234E3F35' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") right 14px center/18px no-repeat; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(196, 103, 42, .14); }
.field.is-invalid input { border-color: var(--red); background: #FFF6F4; }
.field-error { display: block; min-height: 0; color: var(--red); font-size: 13px; font-weight: 600; margin-top: 4px; }
.field-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--bg); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; text-align: center; }
.form-consent a { text-decoration: underline; }
.form-error { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #FFF1EE; color: var(--red); font-size: 14px; font-weight: 600; }
.form-error a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #140D09; color: var(--on-dark-2); padding: 64px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-about { margin: 16px 0 0; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #8E7D70; }

/* ---------- Floating ---------- */
.mobile-bar { display: none; }
.zalo-float { position: fixed; right: 22px; bottom: 22px; z-index: 55; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 104, 255, .35); transition: transform .2s; }
.zalo-float:hover { transform: translateY(-2px); }
.zalo-float .ico-zalo { width: 56px; height: 56px; border-radius: 16px; font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; max-width: calc(100% - 32px);
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--dark); color: #fff; padding: 14px 20px; border-radius: 14px; font-size: 14.5px; font-weight: 600;
  box-shadow: var(--sh-3); transition: transform .3s var(--ease), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 13, 9, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.modal.is-open { opacity: 1; }
.modal-dialog { position: relative; width: 100%; max-width: 760px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-3); transform: translateY(16px) scale(.98); transition: transform .25s var(--ease); }
.modal.is-open .modal-dialog { transform: none; }
.modal-sm { max-width: 460px; }
.modal-sm h2 { font-size: 26px; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-alt); font-size: 24px; line-height: 1; color: var(--ink-2); }
.modal-close:hover { background: var(--line); }
.modal-foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.modal-foot a { color: var(--accent-600); font-weight: 700; }
body.modal-lock { overflow: hidden; }

/* ---------- Recipe page ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin: 24px 0 20px; }
.breadcrumb a:hover { color: var(--accent-600); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 600; }
.recipe-header { margin-bottom: 28px; }
.recipe-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.recipe-header h1 { font-size: clamp(30px, 4vw, 44px); }
.recipe-cost-lg { display: inline-block; font-size: 15px; background: var(--sage-50); padding: 6px 12px; border-radius: 8px; }
.recipe-intro { color: var(--ink-2); font-size: 16.5px; max-width: 720px; }
.recipe-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.recipe-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--sh-1); }
.recipe-box h2 { font-size: 18px; margin: 0; }
.recipe-box > h2 { margin-bottom: 16px; }
.recipe-box-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.scaler { display: inline-flex; padding: 3px; background: var(--bg-alt); border-radius: var(--r-pill); gap: 2px; }
.scale-btn { min-width: 44px; height: 34px; border: 0; border-radius: var(--r-pill); background: transparent; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.scale-btn.is-active { background: var(--dark); color: #fff; }
.ingredient-list, .step-list { display: grid; gap: 10px; font-size: 15px; }
.ingredient-list { list-style: none; }
.ingredient-list li { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.ingredient-list strong, .detail-list strong { color: var(--accent-600); }
.step-list { padding-left: 22px; }
.step-list li { padding-left: 4px; }
.step-list li::marker { font-weight: 800; color: var(--accent-600); }
.note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #FFF6E6; border: 1px solid #F2D8A7; font-size: 14.5px; color: #5E3E0A; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 36px 0; padding: 30px; border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); }
.cta-box h2 { font-family: var(--f-display); font-size: 26px; color: #fff; margin-bottom: 6px; }
.cta-box p { margin: 0; color: var(--on-dark-2); max-width: 520px; }
.cta-box-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.recipe-related { margin-bottom: 64px; }
.recipe-related h2 { font-size: 20px; margin-bottom: 14px; }

/* ---------- Thanks ---------- */
.thanks-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px 32px; box-shadow: var(--sh-2); }
.thanks-ico { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; font-size: 34px; font-weight: 900; box-shadow: 0 0 0 8px var(--sage-50); }
.thanks-card h1 { font-size: clamp(28px, 4vw, 40px); }
.thanks-steps { list-style: none; counter-reset: t; display: grid; gap: 12px; margin: 28px 0 0; text-align: left; }
.thanks-steps li { counter-increment: t; display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.thanks-steps li::before { content: counter(t); flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--gold); font-weight: 800; }
.thanks-steps li > div { flex: 1; display: flex; flex-direction: column; font-size: 14.5px; color: var(--ink-2); }
.thanks-steps strong { color: var(--ink); font-size: 15.5px; }
.pay-box { margin-top: 16px; text-align: left; padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); }
.pay-plans { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pay-plans button { min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--bg); font-weight: 700; font-size: 14px; }
.pay-plans button.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.pay-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.pay-body img { width: 220px; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.pay-info { flex: 1; min-width: 220px; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.pay-info div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.pay-info dt { color: var(--ink-3); }
.pay-info dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Prose ---------- */
.prose h1 { font-size: clamp(30px, 4vw, 42px); }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }

/* ==========================================================================
   PORTAL
   ========================================================================== */
.page-portal { background: var(--bg); }
.portal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; padding-top: 24px; padding-bottom: 64px; align-items: start; }
.portal > * { min-width: 0; }
.portal-side { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-bottom: 8px; }
.status-box { background: var(--dark); color: var(--on-dark); border-radius: var(--r-md); padding: 18px; margin-bottom: 22px; }
.status-box.is-unlocked { background: var(--sage); }
.status-head { display: flex; justify-content: space-between; font-size: 15.5px; margin-bottom: 6px; }
.status-box p { font-size: 13.5px; color: var(--on-dark-2); margin-bottom: 14px; }
.status-box.is-unlocked p { color: #D7EBDF; }
.side-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 8px 10px; }
.cat-nav { list-style: none; display: grid; gap: 2px; }
.cat-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.cat-btn:hover { background: var(--bg-alt); color: var(--ink); }
.cat-btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.cat-btn .cat-ico { font-size: 18px; }
.cat-btn .cat-name { flex: 1; }
.cat-btn .cat-count { font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--bg-alt); border-radius: var(--r-pill); padding: 2px 8px; }
.cat-btn.is-active .cat-count { background: var(--accent-50); color: var(--accent-600); }

.portal-head h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 4px; }
.portal-head p { color: var(--ink-3); margin-bottom: 18px; }
.portal-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 320px; }
.search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); font-size: 15.5px; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(196, 103, 42, .12); }
.search-ico { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385746A' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.tabs { display: inline-flex; padding: 4px; gap: 2px; background: var(--bg-alt); border-radius: var(--r-pill); }
.tab { height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.tab-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 11.5px; line-height: 20px; text-align: center; }
.group-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.group-chips::-webkit-scrollbar { display: none; }
.gchip { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.gchip.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }
.prep { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; }
.prep summary { padding: 14px 18px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.prep[open] summary { border-bottom: 1px solid var(--line); }
.prep-body { padding: 14px 18px 18px; }
.detail-list { padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.result-info { font-size: 13.5px; color: var(--ink-3); margin: 0 0 12px; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.p-card { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; transition: box-shadow .2s, border-color .2s, transform .2s var(--ease); }
.p-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.p-card.is-locked { background: #FCFAF7; }
.p-card.is-locked h3 { color: var(--ink-2); }
.p-card-top { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 36px; }
.p-card h3 { font-size: 16px; line-height: 1.35; margin: 0; }
.p-card p { margin: 0; font-size: 13.5px; color: var(--ink-3); flex: 1; }
.p-card .p-more { font-size: 13.5px; font-weight: 700; color: var(--accent-600); }
.p-card .recipe-cost { font-size: 12.5px; }
.star { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; line-height: 1; color: var(--line-2); }
.star:hover { background: var(--bg-alt); color: var(--gold); }
.star.is-on { color: var(--gold); }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--ink-2); }
.empty p { margin-bottom: 14px; }

.r-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding-right: 44px; }
.r-title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin-bottom: 22px; border-radius: var(--r-md); background: var(--bg); }
.r-actions .scaler { background: var(--surface); }
.r-actions .r-label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.r-actions .r-spacer { flex: 1; }
.r-section { margin-bottom: 22px; }
.r-section h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-600); margin-bottom: 10px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 9px; font-size: 14px; }
  .hide-md { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 62px; }
  .section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 59;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s var(--ease);
  }
  .nav-links a { padding: 14px 8px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-actions { margin-left: auto; }

  .hero { padding: 28px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stage { min-height: 0; max-width: 520px; width: 100%; margin: 0 auto; padding-top: 40px; display: flex; flex-direction: column; align-items: center; }
  .hero-photo { top: 0; left: 0; right: 0; width: auto; height: 340px; border-radius: 24px; }
  .phone { position: relative; top: 0; left: 0; }
  .float-chip { display: none; }
  .hero-stage .hero-price { position: relative; width: 100%; max-width: none; margin-top: 18px; flex-direction: row; align-items: center; }
  .hero-stage .hero-price .btn { width: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .persona-grid, .testimonials { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; padding: 24px; gap: 22px; }
  .founder-photo { max-width: 200px; }
  .calc { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 540px; gap: 28px; }
  .price-card.is-featured { order: -1; }
  .signup-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .recipe-layout { grid-template-columns: 1fr; }

  .portal { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .portal-side { position: sticky; top: var(--header-h); z-index: 20; max-height: none; overflow: visible; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: rgba(251, 247, 241, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .status-box, .side-label { display: none; }
  .cat-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-btn { white-space: nowrap; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); }
  .cat-btn.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
  .cat-btn.is-active .cat-count { background: rgba(255, 255, 255, .16); color: #fff; }
  .portal-head { padding-top: 20px; }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .phone { width: 264px; }
  .phone-title { font-size: 19px; }
  .chip-menu { right: -6px; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: 15.5px; }
  .brand-text small { display: none; }
  .brand-mark { width: 36px; height: 36px; font-size: 16px; }
  .nav-actions .btn-sm { padding: 0 14px; }

  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 16px; margin-bottom: 22px; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .hero-price { padding: 14px; }
  .hero-price-new { font-size: 21px; }
  .stats dt { font-size: 24px; }
  .stats > div { padding: 16px; }

  .steps { grid-template-columns: 1fr; }
  /* Bảng so sánh → thẻ xếp dọc */
  .compare-wrap { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table tr { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; }
  .compare-table tbody th { width: auto; border: 0; padding: 12px 14px 8px; font-size: 15px; }
  .compare-table td { border-top: 1px solid var(--line); padding: 10px 14px; font-size: 14px; }
  .compare-table td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
  .compare-table td.is-us { order: -1; border-top: 1px solid #F2D8A7; }
  .compare-table td.is-us::before { color: var(--accent-600); }
  .compare-table tbody th { order: -2; }
  .calc-inputs, .calc-out { padding: 22px; }
  .price-card { padding: 28px 22px; }
  .price-amount { font-size: 34px; }
  .guarantee { flex-direction: column; text-align: center; }
  .lead-form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-box { padding: 24px; }
  .cta-box-actions, .cta-box-actions .btn { width: 100%; }
  .recipe-box { padding: 20px; }
  .thanks-card { padding: 32px 20px; }
  .thanks-steps li { flex-wrap: wrap; }
  .thanks-steps li .btn { width: 100%; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog { max-height: 92dvh; border-radius: 22px 22px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(40px); }
  .modal-video { border-radius: 0; padding: 0; }
  .modal-sheet .modal-dialog { max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .portal-grid { grid-template-columns: 1fr; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { flex: 1; padding: 0 10px; }

  body.has-mobile-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(31, 21, 15, .08);
    transition: transform .25s var(--ease);
  }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar .btn { flex: 1.25; --h: 50px; padding: 0 12px; font-size: 15px; }
  .mobile-bar-alt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); font-weight: 700; font-size: 14.5px; }
  .mobile-bar-alt .ico-zalo { width: 28px; height: 28px; border-radius: 8px; font-size: 9px; }
  .zalo-float { display: none; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}

@media print {
  .site-header, .site-footer, .mobile-bar, .zalo-float, .portal-side, .portal-tools, .group-chips, .portal-head, .result-info, .portal-grid, #prepBox, .modal-close, .r-actions, .toast { display: none !important; }
  body { background: #fff; }
  .modal { position: static; background: none; padding: 0; opacity: 1; }
  .modal-dialog { box-shadow: none; max-height: none; overflow: visible; padding: 0; transform: none; }
}

/* Video ở điện thoại hero: chưa có ảnh bìa riêng thì dùng ảnh quầy */
.lesson-video.phone-video { width: calc(100% - 20px); aspect-ratio: 16 / 10; border-radius: 18px; background: #2A1D14 url('/assets/img/hero-720.jpg') 4% 60% / 260% auto no-repeat; }
.lesson-video.phone-video[style] { background-size: cover; background-position: center; }

/* ==========================================================================
   Dữ liệu mở rộng: thông tin nhanh, giá vốn, lỗi hay gặp, trang chuyên đề, nguyên liệu
   ========================================================================== */
.recipe-intro a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.recipe-facts div { padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.recipe-facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.recipe-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.recipe-layout-extra { margin-top: 20px; }
.recipe-side { display: grid; gap: 20px; }
.recipe-side:empty { display: none; }
.cost-box .cost-big { margin: 0; font-family: var(--f-display); font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.cost-big small { font-family: var(--f-sans); font-size: 14px; font-weight: 600; color: var(--ink-3); }
.cost-sell { margin: 8px 0 12px; font-size: 14.5px; color: var(--ink-2); }
.cost-sell strong { color: var(--sage); }
.cost-box details summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--accent-600); padding: 6px 0; }
.cost-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
.cost-table th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.cost-table td { padding: 7px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.cost-table td:nth-child(2), .cost-table td:nth-child(3), .cost-table th:nth-child(2), .cost-table th:nth-child(3) { text-align: right; white-space: nowrap; }
.cost-table tr.is-extra td { color: var(--ink-3); font-style: italic; }
.cost-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.cost-note a { color: var(--accent-600); font-weight: 600; }
.mistake-box ul, .tools-box ul { padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.mistake-box { border-color: #F2D8A7; background: #FFFBF3; }
.module-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent-600); }
.pill-sm { padding: 2px 8px; font-size: 11.5px; }

/* Chip điều hướng trên trang tĩnh */
.link-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; margin: 18px 0; scrollbar-width: none; }
.link-chips::-webkit-scrollbar { display: none; }
.lchip { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.lchip:hover { border-color: var(--ink-3); color: var(--ink); }
.lchip.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }

/* Trang chuyên đề */
.cat-hero { display: flex; gap: 18px; align-items: flex-start; margin-top: 8px; }
.cat-hero-ico { flex-shrink: 0; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 34px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.cat-hero h1 { margin: 4px 0 10px; }
.cat-hero-intro { color: var(--ink-2); font-size: 16px; max-width: 72ch; }
.cat-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; }
.cat-stats li { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.cat-stats strong { display: block; font-family: var(--f-display); font-size: 24px; line-height: 1.15; }
.cat-stats span { font-size: 13px; color: var(--ink-3); }
.cat-content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cat-menu h2 { font-size: 22px; margin: 0 0 6px; }
.cat-menu-hint { font-size: 14px; color: var(--ink-3); margin: 0 0 8px; }
.cat-menu-hint a { color: var(--accent-600); font-weight: 600; }
.cat-group { font-size: 16px; margin: 22px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.cat-group small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.cat-list li { flex-wrap: wrap; align-items: center; }
.cat-row-name { flex: 1 1 260px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cat-row-meta { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.cat-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.cat-aside .recipe-box { padding: 20px; }
.cat-aside p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* Trang nguyên liệu */
.ing-disclaimer { margin-top: 0; }
.ing-group { margin-top: 34px; }
.ing-group h2 { font-size: 22px; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; }
.ing-group h2 small { font-size: 13px; color: var(--ink-3); font-family: var(--f-sans); font-weight: 600; }
.ing-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.ing-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.ing-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ing-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.ing-table tr:last-child td { border-bottom: 0; }
.ing-table td:nth-child(3), .ing-table td:nth-child(4) { white-space: nowrap; }
.ing-table td strong { color: var(--ink); }
.ing-table td p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.ing-table .ing-sub { color: var(--sage); }
.tool-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tool-list li { padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.tool-list small { color: var(--ink-3); font-weight: 500; white-space: nowrap; }

@media (max-width: 980px) {
  .cat-content { grid-template-columns: 1fr; }
  .cat-aside { position: static; }
  .cat-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .cat-hero { gap: 12px; flex-direction: column; }
  .cat-hero-ico { width: 48px; height: 48px; font-size: 26px; border-radius: 14px; }
  .cost-box .cost-big { font-size: 28px; }
  .recipe-facts div { flex: 1 1 calc(50% - 8px); }
}
.ing-src { color: var(--sage) !important; font-weight: 600; }

/* ==========================================================================
   Trang chủ: phần Sổ tay trên điện thoại + gọn trang trên điện thoại
   ========================================================================== */
.app-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-feats li { padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.app-feats li > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-50); font-size: 20px; margin-bottom: 10px; }
.app-feats strong { display: block; font-size: 16.5px; margin-bottom: 4px; }
.app-feats p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.app-try { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 24px; text-align: center; }
.app-try span { font-size: 14px; color: var(--ink-3); }
.module-list li.more a { color: var(--accent-600); font-weight: 600; font-style: normal; }
.calc-field label small { font-weight: 500; opacity: .75; }

@media (max-width: 980px) {
  .app-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  /* 6 tính năng: 2 cột gọn */
  .app-feats { gap: 10px; }
  .app-feats li { padding: 14px; }
  .app-feats li > span { width: 36px; height: 36px; font-size: 18px; margin-bottom: 8px; }
  .app-feats strong { font-size: 15px; }
  .app-feats p { font-size: 13px; }
  .app-try .btn { width: 100%; }

  /* Công thức xem thử: vuốt ngang thay vì xếp dọc 9 thẻ */
  #xem-thu .recipe-grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 12px; scrollbar-width: none;
  }
  #xem-thu .recipe-grid::-webkit-scrollbar { display: none; }
  #xem-thu .recipe-grid > * { scroll-snap-align: start; }
  #xem-thu .section-head p::after { content: ' Vuốt ngang để xem các món.'; font-weight: 600; }

  /* Bảng so sánh: giữ dạng bảng, cuộn ngang, cột tiêu chí cố định */
  .compare-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); margin: 0 calc(-1 * var(--gutter)); border-radius: 0; border-left: 0; border-right: 0; }
  .compare-table { display: table; min-width: 600px; font-size: 13px; }
  .compare-table thead { display: table-header-group; }
  .compare-table tbody { display: table-row-group; }
  .compare-table tr { display: table-row; margin: 0; border: 0; border-radius: 0; background: none; }
  .compare-table th, .compare-table td { display: table-cell; padding: 10px 10px; font-size: 13px; border-top: 1px solid var(--line); }
  .compare-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); width: 92px; padding: 10px; font-size: 13px; box-shadow: 1px 0 0 var(--line); }
  .compare-table td::before { content: none !important; }
  #so-sanh .section-head p::after { content: ' Vuốt ngang để xem đủ 3 cột.'; font-weight: 600; }

  /* Nhóm "dành cho ai": gọn hơn */
  .persona { padding: 18px; }
  .persona p { font-size: 14.5px; }
}
.feat-soon { color: var(--ink-3); font-weight: 500; white-space: nowrap; }

/* ---------- Ảnh chuyên đề (src/media → assets/img/m) ---------- */
.module-ico.has-photo, .cat-hero-ico.has-photo { padding: 0; overflow: hidden; background: var(--bg-alt); }
.module-ico.has-photo { width: 56px; height: 56px; border-radius: 14px; }
.module-ico.has-photo img, .cat-hero-ico.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-banner { margin: 20px 0 4px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; background: var(--bg-alt); box-shadow: var(--sh-1); }
.cat-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .cat-banner { aspect-ratio: 4 / 3; margin: 16px -4px 0; border-radius: var(--r-md); } }

/* ---------- Ảnh màn hình app thật trong #so-tay ---------- */
.app-shots { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.app-shots figure { margin: 0; }
.shot-phone { padding: 7px; border-radius: 30px; background: var(--dark); box-shadow: var(--sh-2); }
.shot-phone img { display: block; width: 100%; height: auto; border-radius: 23px; background: var(--bg); }
.app-shots figcaption { margin-top: 12px; text-align: center; line-height: 1.35; }
.app-shots figcaption strong { display: block; font-size: 15.5px; }
.app-shots figcaption span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 760px) {
  /* Điện thoại: vuốt ngang từng màn hình */
  .app-shots { display: flex; gap: 14px; margin: 0 calc(-1 * var(--gutter)) 22px; padding: 4px var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .app-shots::-webkit-scrollbar { display: none; }
  .app-shots li { flex: 0 0 62%; max-width: 250px; scroll-snap-align: center; }
  .shot-phone { border-radius: 26px; padding: 6px; }
  .shot-phone img { border-radius: 20px; }
}

/* Ảnh món trên trang công thức miễn phí */
.recipe-cover { position: relative; margin: 20px 0 8px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt); box-shadow: var(--sh-1); }
.recipe-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-cover figcaption { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(20, 12, 6, .55); color: #fff; font-size: 12px; font-weight: 600; }
@media (max-width: 640px) { .recipe-cover { aspect-ratio: 4 / 3; border-radius: var(--r-md); } }

/* Phễu: lối vào nhóm Zalo cộng đồng */
.hero-group { display: inline-flex; align-items: center; gap: 12px; margin: -6px 0 18px; padding: 8px 14px 8px 8px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); box-shadow: var(--sh-1); }
.hero-group strong { color: var(--ink); }
.hero-group .ico-zalo { width: 36px; height: 36px; border-radius: 10px; font-size: 10px; }
.zalo-cta + .zalo-cta { margin-top: 10px; }
.zalo-cta-group { border-color: rgba(0, 104, 255, .55); }
/* Mã QR nhóm Zalo: chỉ hiện trên máy tính */
.group-qr { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .group-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-left: auto; padding: 8px; border-radius: 12px; background: #fff; flex-shrink: 0; }
  .group-qr img { width: 112px; height: 112px; display: block; }
  .group-qr small { font-size: 11px; color: #555; font-weight: 600; }
  .thanks-steps .group-qr { margin: 10px 0 0; }
}
