/* Làm Chủ Tư Duy — Editorial Warm (Ali fidelity) — nền kem + 5 accent playful.
   Tokens: ../design-system/tokens.css */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* chặn tràn ngang do blob absolute + crisp shadow ở mép */
html, body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Texture nền toàn trang: dot-grid mực rất nhạt (không ảnh) */
  background-image: radial-gradient(rgba(29, 24, 50, 0.05) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
}

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

a { color: var(--link); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-h2); font-weight: 700; }
h3 { font-size: var(--text-h3); font-weight: 600; }

/* Chữ ký hệ: squiggle vẽ tay dưới keyword heading — "tự vẽ" khi reveal
   (background-size 0→100% thay cho stroke-draw, rẻ và không cần JS riêng) */
h1 em, h2 em, h3 em, blockquote em, .hl {
  font-style: normal;
  color: inherit;
  text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q16 2 30 5.5 Q45 9 60 5 Q75 1.5 90 5.5 Q105 9 118 4.5' fill='none' stroke='%23FD976D' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  /* đáy content-box của inline em = ngay dưới descender, không tràn dòng dưới */
  background-position: 0 100%;
  background-size: 100% 0.13em;
}
.section--dark h1 em, .section--dark h2 em, .section--dark h3 em {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q16 2 30 5.5 Q45 9 60 5 Q75 1.5 90 5.5 Q105 9 118 4.5' fill='none' stroke='%23FD976D' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .reveal em, .reveal.hl-draw .hl {
    background-size: 0% 0.13em;
    transition: background-size 0.7s var(--ease-out) 0.25s;
  }
  .reveal.is-visible em, .reveal.hl-draw.is-visible .hl {
    background-size: 100% 0.13em;
  }
}

.section--dark h2, .section--dark h3 { color: var(--text-on-dark); }

p + p { margin-top: 0.9em; }

/* Số luôn tabular */
.num, .plan-price, .reason-num { font-variant-numeric: tabular-nums; }

/* Micro-caps label (chữ ký Clean) */
.microcaps {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--label-45);
}
.section--dark .microcaps { color: rgba(245, 241, 236, 0.55); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Nhịp nền: section alternate lavender / trắng / lavender nhạt.
   position:relative để chứa lớp trang trí; content nổi trên (z-index). */
.section { padding-block: var(--section-y); position: relative; overflow-x: clip; }
.section--tight { padding-block: var(--section-y-tight); position: relative; overflow-x: clip; }
.section--white { background: var(--surface-0); }
.section--soft { background: var(--surface-1); }
.section > .container, .section--tight > .container { position: relative; z-index: 1; }

/* Section trắng đục dot-grid nền (che dot-grid body cho sạch) */
.section--white {
  background-image:
    radial-gradient(rgba(29, 24, 50, 0.045) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  background-color: var(--surface-0);
}

/* Tint blob pastel blur — chiều sâu cho các band sáng */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
.blob-pink { background: var(--coral-soft); }
.blob-indigo { background: var(--lavender); }

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
}
.section--dark .muted { color: rgba(245, 241, 236, 0.72); }

/* Wave divider: mép trên section tối lượn sóng (khôi phục chữ ký web cũ).
   Đặt bên TRONG section (top:0) để không bị overflow:hidden cắt; fill màu
   section sáng phía trên (surface-2) rủ xuống theo sóng. */
.section--dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  background: var(--surface-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V22 Q1260 46 1080 26 Q900 6 720 26 Q540 46 360 26 Q180 6 0 24 Z'/%3E%3C/svg%3E") no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V22 Q1260 46 1080 26 Q900 6 720 26 Q540 46 360 26 Q180 6 0 24 Z'/%3E%3C/svg%3E") no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 3;
}
/* Section tối đầu tiên (Benefits) đứng sau chart-section nền surface-2 → khớp.
   Testimonials đứng sau personas nền surface-2 → cũng khớp. */

/* Motif doodle nhỏ trang trí (span rỗng, dùng SVG bg) */
.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background-repeat: no-repeat;
  background-size: contain;
}
.doodle-spark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 l2.4 7.2 l7.2 2.4 l-7.2 2.4 l-2.4 7.2 l-2.4 -7.2 l-7.2 -2.4 l7.2 -2.4 Z' fill='%23FD976D'/%3E%3C/svg%3E");
}
.doodle-q {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40'%3E%3Cpath d='M6 12 Q6 4 16 4 Q26 4 26 13 Q26 21 16 25 V30' fill='none' stroke='%23C9B1FB' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='37' r='3' fill='%23C9B1FB'/%3E%3C/svg%3E");
}
.doodle-arc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40'%3E%3Cpath d='M4 36 Q40 -6 74 24' fill='none' stroke='%23FDC7B1' stroke-width='4' stroke-linecap='round' stroke-dasharray='2 9'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .doodle-spark { animation: twinkle 3.6s ease-in-out infinite alternate; }
  .doodle-float { animation: cardFloat 5s ease-in-out infinite; }
}
@media (max-width: 620px) { .doodle { display: none; } }

/* Mobile: crisp shadow gọn hơn (theo DS: 4px 4px trên mobile) */
@media (max-width: 640px) {
  :root { --shadow-crisp: 4px 4px 0 #000; --shadow-crisp-hover: 6px 6px 0 #000; }
  .btn-primary { box-shadow: var(--shadow-crisp); }
}

.section-head { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.1rem; color: var(--text-muted); }
.section--dark .section-head p { color: rgba(245, 241, 236, 0.78); }

.muted { color: var(--text-muted); }
/* Giữ cụm từ không tách dòng (tránh "Tư / Duy" xấu trên mobile) */
.nb { white-space: nowrap; }

/* ---------- Buttons: pill + crisp hard shadow (chữ ký cơ học) ---------- */
.btn {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 0.85em 2em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  transition: transform var(--dur-quick) ease,
              box-shadow var(--dur-quick) ease,
              background-color var(--dur-quick) ease;
}

/* CTA chính: Mint + text mực + crisp shadow, hover nhấc lên / active nhấn xuống */
.btn-primary {
  background: var(--mint);
  color: var(--ink);
  box-shadow: var(--shadow-crisp);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-crisp-hover); background: var(--mint-hover); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: var(--shadow-crisp-sm); }

/* Secondary: outline mực, không shadow */
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; transform: translate(-1px, -1px); }

/* Nav CTA: shadow nhỏ hơn cho gọn */
.nav .btn-primary { box-shadow: var(--shadow-crisp-sm); }
.nav .btn-primary:hover { box-shadow: 6px 6px 0 #000; }

/* Trên nền tối: CTA trắng + text mực + colored shadow mint (pop trên mực) */
.section--dark .btn-primary { background: #fff; box-shadow: var(--shadow-crisp-mint); }
.section--dark .btn-primary:hover { background: #fff; box-shadow: 8px 8px 0 var(--mint); }
.section--dark .btn-outline { color: var(--text-on-dark); border-color: var(--text-on-dark); }
.section--dark .btn-outline:hover { background: var(--text-on-dark); color: var(--ink); }

/* ---------- Card: 24px radius, hairline (grid), crisp cho featured ---------- */
.card {
  background: var(--surface-0);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  transition: transform var(--dur-quick) var(--ease-out),
              box-shadow var(--dur-quick) var(--ease-out),
              border-color var(--dur-quick) var(--ease-out);
}
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-crisp); border-color: var(--ink); }

/* Card featured: crisp shadow sẵn (credibility bar, guarantee) */
.card--pop {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-crisp);
}
.card--pop:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-crisp-hover); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(243, 237, 233, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  font-size: 1.1rem;
}
.nav-logo img { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ink); }
.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--dur-quick);
}
.nav-links a:hover { color: var(--heading); }
.nav .btn { padding: 0.6em 1.5em; font-size: 0.9rem; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section-y-tight);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero-sub strong { color: var(--pink-600); font-weight: 700; }
.hero-art img { width: 100%; }

/* ---------- Illustration SVG ---------- */
.illus { width: 100%; height: auto; display: block; color: var(--ink); }
.pain-art .illus, .guarantee-art .illus { max-width: 300px; margin-inline: auto; }
.decline-chart .illus { max-width: 100%; }

/* Hero "bộ não + mạng lưới" — não trôi, node pulse, synapse tín hiệu chạy */
@media (prefers-reduced-motion: no-preference) {
  .hero-brain .brain-float { animation: brainFloat 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes brainFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(0.6deg); } }
  .hero-brain .node { transform-box: fill-box; transform-origin: center; animation: nodePulse 2.6s ease-in-out infinite; }
  .hero-brain .node.n2 { animation-delay: -0.4s; }
  .hero-brain .node.n3 { animation-delay: -0.8s; }
  .hero-brain .node.n4 { animation-delay: -1.2s; }
  .hero-brain .node.n5 { animation-delay: -1.6s; }
  .hero-brain .node.n6 { animation-delay: -2s; }
  @keyframes nodePulse { 0%,100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.28); opacity: 1; } }
  .hero-brain .synapse { animation: synapseFlow 1.6s linear infinite; }
  @keyframes synapseFlow { to { stroke-dashoffset: -11; } }
  .hero-brain .spk { transform-box: fill-box; transform-origin: center; animation: spkTwinkle 3s ease-in-out infinite; }
  .hero-brain .spk2 { animation-delay: -1.5s; }
  @keyframes spkTwinkle { 0%,100% { opacity: 0.5; transform: scale(0.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(90deg); } }
  /* nhấn mạnh khi vào viewport: não scale nhẹ vào */
  .reveal .hero-brain .brain-float { opacity: 0; }
  .reveal.is-visible .hero-brain .brain-float { opacity: 1; transition: opacity 0.6s ease; }
}

/* Thẻ mini hero float lệch pha + nét đứt tự vẽ (giữ cho các illus khác) */
@media (prefers-reduced-motion: no-preference) {
  .il-card { animation: cardFloat 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .il-card:nth-of-type(2) { animation-delay: -1.4s; }
  .il-card:nth-of-type(3) { animation-delay: -2.6s; }
  @keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  .il-fog { animation: fogDrift 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes fogDrift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
  /* nét đứt tự vẽ khi hero vào viewport */
  .reveal .il-dash { stroke-dasharray: 2 12; stroke-dashoffset: 140; transition: stroke-dashoffset 1.4s var(--ease-out) 0.3s; }
  .reveal.is-visible .il-dash { stroke-dashoffset: 0; }
}

/* Hero entrance: chữ + nút bay lên so le, não fade+scale, blob trôi nhẹ */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-sub, .hero .btn-primary, .hero-art {
    opacity: 0; animation: heroUp 0.7s var(--ease-out) forwards;
  }
  .hero h1 { animation-delay: 0.05s; }
  .hero-sub { animation-delay: 0.2s; }
  .hero .btn-primary { animation-delay: 0.35s; }
  .hero-art { animation: heroArtIn 0.8s var(--ease-out) 0.25s forwards; }
  @keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes heroArtIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

  .hero .blob { animation: blobDrift 8s ease-in-out infinite; }
  .hero .blob-indigo { animation-duration: 10s; animation-delay: -3s; }
  @keyframes blobDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-32px, 26px) scale(1.12); } }

  /* Glow thở phía sau não — hiệu ứng liên tục, dễ thấy nhất trong hero */
  .hero-art { position: relative; }
  .hero-art::before {
    content: ""; position: absolute; inset: 8% 12%; z-index: -1;
    background: radial-gradient(circle, var(--lavender-soft) 0%, transparent 70%);
    animation: heroGlow 3.2s ease-in-out infinite;
  }
  @keyframes heroGlow { 0%,100% { opacity: 0.5; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.08); } }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin-inline: auto; }
}

/* ---------- Credibility bar ---------- */
.cred-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-0);
  box-shadow: var(--shadow-crisp);
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 1.8rem;
}
.cred-item + .cred-item { border-left: 1px solid var(--hairline-row); }
.cred-item img { width: 72px; flex-shrink: 0; }
.cred-item .ic { width: 60px; height: 60px; flex-shrink: 0; color: var(--ink); }

/* Lockup GMAT/mba.com vẽ lại theo hệ: chữ mực Gilroy, gạch pastel
   (bar vàng gốc → hồng, bar xanh lá gốc → indigo) */
.gmat-mark {
  flex-shrink: 0;
  min-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  line-height: 1;
  color: var(--ink);
  font-family: var(--font-body);
}
.gmat-mark .l1 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.gmat-mark .l1 sup { font-size: 0.4em; vertical-align: super; font-weight: 600; }
.gmat-mark .g {
  border-bottom: 5px solid var(--pink-500);
  padding-bottom: 1px;
  border-radius: 0 0 2px 2px;
}
.gmat-mark .l2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.gmat-mark .mba {
  border-bottom: 5px solid var(--indigo-300);
  padding-bottom: 2px;
  border-radius: 0 0 2px 2px;
}
.cred-item strong { color: var(--heading); display: block; font-size: 1.05rem; }
/* chỉ span mô tả, không đụng span trong lockup .gmat-mark */
.cred-item > div:not(.gmat-mark) > span { color: var(--text-muted); font-size: 0.92rem; }
@media (max-width: 768px) {
  .cred-bar { grid-template-columns: 1fr; }
  .cred-item + .cred-item { border-left: 0; border-top: 1px solid var(--hairline-row); }
}

/* ---------- Pain points ---------- */
.pain-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 3rem;
}
.pain-col { display: grid; gap: 1.25rem; }
.pain-card {
  padding: 1.1rem 1.4rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.pain-card .q {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pink-500);
  font-size: 1.3rem;
  line-height: 1;
}
.pain-art { max-width: 250px; }
@media (max-width: 900px) {
  .pain-layout { grid-template-columns: 1fr; }
  .pain-art { margin-inline: auto; max-width: 190px; order: -1; }
}

/* ---------- Decline ---------- */
.decline-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.decline-chart { padding: 1.6rem; }
.decline-chart figcaption {
  text-align: center;
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-top: 0.8rem;
}
.callout {
  border-left: 3px solid var(--pink-500);
  background: var(--pink-50);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  padding: 1rem 1.3rem;
  margin-top: 1.3rem;
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  .decline-grid { grid-template-columns: 1fr; }
}

/* ---------- Benefits (dark) ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.benefit-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.benefit-card .ic {
  width: 104px;
  height: 104px;
  margin: 0 auto 0.9rem;
  color: #f3f2fd;   /* stroke trắng ngà trên nền tối */
  display: block;
}
.benefit-card h3 { font-size: 1.08rem; color: var(--text-on-dark); }

/* Icon floating badge: trôi rất chậm, tắt theo reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .ic-float { animation: icFloat 3.8s ease-in-out infinite; }
  .benefit-card:nth-child(2n) .ic-float,
  .persona-card:nth-child(2n) .ic-float { animation-delay: -1.9s; }
  .benefit-card:nth-child(3n) .ic-float,
  .persona-card:nth-child(3n) .ic-float { animation-delay: -2.8s; }
  @keyframes icFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
  /* Icon pop khi reveal: nhún nhẹ vào */
  .reveal .ic { transform: scale(0.7); opacity: 0; transition: transform 0.55s var(--ease-out) 0.15s, opacity 0.4s ease 0.15s; }
  .reveal.is-visible .ic { transform: scale(1); opacity: 1; }
}

/* Hover tilt nhẹ cho card có icon (CSS thuần) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .benefit-card, .persona-card { transition: transform var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out); }
  .benefit-card:hover { transform: translateY(-3px) rotate(-0.4deg); border-color: rgba(255,255,255,0.34); }
  .persona-card:hover .ic-float { animation-play-state: paused; }
}
@media (max-width: 900px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ---------- AI statement ---------- */
.ai-statement { text-align: center; }
.ai-statement h2 { max-width: 820px; margin-inline: auto; }
.ai-statement .btn { margin-top: 2rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-photo img {
  border-radius: var(--radius-anchor);
  border: 1px solid var(--hairline);
}
.about-body h2 { margin-bottom: 1.2rem; }
.about-body strong { color: var(--heading); }
.milestones { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.9rem; }
.milestones li { position: relative; padding-left: 1.6rem; font-size: 0.99rem; }
.milestones li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-200);
  border: 1.5px solid var(--ink);
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
}

/* ---------- Insight quote ---------- */
.insight { text-align: center; }
.insight blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 600;
  color: var(--heading);
  max-width: 820px;
  margin-inline: auto;
  line-height: 1.3;
}
.insight-points {
  margin: 2.2rem auto 0;
  max-width: 620px;
  display: grid;
  gap: 0.8rem;
  text-align: left;
  list-style: none;
}
.insight-points li {
  padding: 0.85rem 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 0.98rem;
}
.insight-points .tick { color: var(--pink-600); font-weight: 700; }

/* ---------- Frameworks ---------- */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
.framework-card { padding: 1.9rem 1.7rem; }
.framework-card .microcaps { display: block; margin-bottom: 0.8rem; }
.framework-card h3 { margin-bottom: 0.35rem; }
.framework-card .fw-tagline {
  color: var(--pink-600);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}
.framework-card ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.96rem; }
.framework-card ul li { padding-left: 1.4rem; position: relative; }
.framework-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indigo-100);
  border: 1px solid var(--ink);
}
.fw-apply {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--hairline);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.fw-apply strong { color: var(--heading); }
@media (max-width: 820px) { .framework-grid { grid-template-columns: 1fr; } }

/* ---------- Badge (soft tint) ---------- */
.tag {
  display: inline-block;
  background: var(--pink-50);
  color: var(--pink-600);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.3em 1em;
  border-radius: var(--radius-pill);
}

/* ---------- Personas ---------- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 3rem;
}
.persona-card { padding: 1.7rem 1.5rem; text-align: center; }
.persona-card .ic {
  width: 112px;
  height: 112px;
  margin: 0 auto 0.9rem;
  color: var(--ink);
  display: block;
}
.persona-card h3 { font-size: 1.05rem; margin-bottom: 0.7rem; }
.persona-card ul {
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.4rem;
  text-align: left;
}
.persona-card ul li { padding-left: 1.2rem; position: relative; }
.persona-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-200);
}
@media (max-width: 900px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .persona-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials (dark, trời sao + 2 carousel như web cũ) ---------- */
.testi-panel { position: relative; overflow: hidden; }
.testi-panel .sparkle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle 1.6px at 8% 22%, rgba(255,255,255,0.9) 99%, transparent),
    radial-gradient(circle 1.2px at 22% 68%, rgba(255,200,215,0.8) 99%, transparent),
    radial-gradient(circle 1.8px at 34% 14%, rgba(255,255,255,0.7) 99%, transparent),
    radial-gradient(circle 1.1px at 47% 82%, rgba(255,255,255,0.75) 99%, transparent),
    radial-gradient(circle 1.5px at 58% 30%, rgba(255,200,215,0.85) 99%, transparent),
    radial-gradient(circle 1.2px at 71% 74%, rgba(255,255,255,0.8) 99%, transparent),
    radial-gradient(circle 1.9px at 83% 18%, rgba(255,255,255,0.65) 99%, transparent),
    radial-gradient(circle 1.3px at 92% 58%, rgba(255,200,215,0.8) 99%, transparent),
    radial-gradient(circle 1.4px at 15% 44%, rgba(255,255,255,0.6) 99%, transparent),
    radial-gradient(circle 1.2px at 64% 8%, rgba(255,255,255,0.85) 99%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .testi-panel .sparkle { animation: twinkle 4.5s ease-in-out infinite alternate; }
  @keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }
}

/* Carousel scroll-snap dùng chung cho quote + chat */
.carousel-wrap { position: relative; margin-top: 3rem; }
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.6rem) / 3);
  gap: 1.3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 14px 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
@media (max-width: 900px) { .carousel { grid-auto-columns: calc((100% - 1.3rem) / 2); } }
@media (max-width: 620px) { .carousel { grid-auto-columns: 88%; } }

/* Mũi tên carousel: vai trò spot (indigo nhạt + viền mực) */
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--indigo-100);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: transform var(--dur-quick) var(--ease-out), background-color var(--dur-quick);
}
.car-btn:hover { background: var(--pink-200); transform: translateY(-50%) scale(1.06); }
.car-btn:active { transform: translateY(-50%) scale(0.95); }
.car-btn.prev { left: -10px; }
.car-btn.next { right: -10px; }
@media (max-width: 620px) { .car-btn { display: none; } }

/* ---------- Auto-marquee (feedback tự chạy) ---------- */
.auto-marquee {
  display: block;
  overflow: hidden;
  scroll-snap-type: none;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.3rem;
  width: max-content;
  will-change: transform;
}
.marquee-track > * { flex: 0 0 auto; width: 360px; }
.chat-marquee .marquee-track > * { width: 300px; }
@media (max-width: 620px) {
  /* Card gần full-width + bỏ fade mép để chữ không bị mờ/cắt khi đọc trên mobile */
  .marquee-track > * { width: 90vw; }
  .chat-marquee .marquee-track > * { width: 82vw; }
  .auto-marquee { -webkit-mask-image: none; mask-image: none; padding-inline: 0; }
}
/* Marquee giờ do JS (requestAnimationFrame) điều khiển transform — vừa auto
   chạy chậm, vừa bấm nút back/forward được. Nút .car-btn hiện lại. */
.carousel-wrap:has(.auto-marquee) .car-btn { display: grid; }
@media (max-width: 620px) { .carousel-wrap:has(.auto-marquee) .car-btn { display: none; } }

/* Quote card: 5 sao + ngoặc kép + footer avatar-initials, như web cũ */
.quote-card {
  background: var(--surface-0);
  border-radius: var(--radius-card);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.quote-body { padding: 1.4rem 1.4rem 1.2rem; flex: 1; position: relative; }
.quote-stars { display: flex; gap: 4px; margin-bottom: 0.8rem; }
.quote-stars svg { width: 17px; height: 17px; fill: var(--pink-500); }
.quote-mark {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 0.6;
  color: var(--pink-200);
}
.quote-body p { font-size: 0.92rem; color: var(--ink-2); }
.quote-foot {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--hairline);
  font-weight: 600;
  font-size: 0.92rem;
}
.avatar-init {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--pink-50);
  color: var(--pink-600);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.quote-card:nth-child(3n) .avatar-init { background: var(--indigo-100); color: var(--indigo-700); }
.quote-card:nth-child(3n+1) .avatar-init { background: var(--surface-1); color: var(--indigo-500); }

/* Chat screenshots: khung điện thoại mini, click phóng to */
.chat-shot {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-0);
  border: 1.5px solid var(--ink);
  cursor: zoom-in;
  max-height: 460px;
  transition: transform var(--dur-quick) var(--ease-out);
}
.chat-shot:hover { transform: translateY(-3px); }
.chat-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(29, 24, 50, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 620px);
  max-height: 92vh;
  border-radius: var(--radius-card);
  border: 2px solid #fff;
}

/* Khung ảnh thật: browser-frame mini + polaroid */
.shot-frame {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-0);
  margin-top: 1rem;
}
.shot-frame .bar {
  display: flex;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--indigo-100);
}
.shot-frame .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-0);
  border: 1.2px solid var(--ink);
}
.shot-frame .bar i:first-child { background: var(--pink-200); }
.shot-frame img { border: none; border-radius: 0; margin: 0; width: 100%; }
.shot-frame + .shot-frame { margin-top: 0.8rem; }

.polaroid {
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--surface-0);
  padding: 8px 8px 0;
  margin-top: 1rem;
  transform: rotate(-1.2deg);
  transition: transform var(--dur-quick) var(--ease-out);
}
.polaroid.tilt-r { transform: rotate(1.2deg); }
.polaroid:hover { transform: rotate(0deg) translateY(-3px); }
.polaroid img { border: none; border-radius: 4px; margin: 0; width: 100%; }
.polaroid figcaption {
  font-size: 0.82rem;
  color: var(--ink-3);
  text-align: center;
  padding: 6px 4px 8px;
}

/* ---------- Curriculum: danh sách dày 2 cột (Layout D, kiểu mục lục) ---------- */
.curri-dense {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}
.cd-row {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--surface-3);
}
.cd-n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
  min-width: 1.7rem;
  font-size: 1.05rem;
}
.cd-row h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.cd-row p { font-size: 0.88rem; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 760px) { .curri-dense { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 5 lý do ---------- */
.reasons {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.3rem;
}
.reason-card { padding: 1.8rem 1.6rem; grid-column: span 2; }
.reason-card:nth-child(4), .reason-card:nth-child(5) { grid-column: span 3; }
.reason-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--indigo-100);
  border: 1.5px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.reason-card h3 { font-size: 1.08rem; margin-bottom: 0.8rem; }
.reason-card ul { list-style: none; display: grid; gap: 0.45rem; font-size: 0.93rem; color: var(--text-muted); }
.reason-card ul li { padding-left: 1.2rem; position: relative; }
.reason-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-200);
}
.reason-card img {
  border-radius: var(--radius-input);
  border: 1px solid var(--hairline);
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .reasons { grid-template-columns: 1fr; }
  .reason-card, .reason-card:nth-child(4), .reason-card:nth-child(5) { grid-column: auto; }
}

/* ---------- Pricing: 2 plan card, Complete = ANCHOR (shadow duy nhất/trang) ---------- */
/* ============ PRICING — bảng so sánh ============ */
.ptable-scroll { margin-top: 3rem; overflow-x: auto; overflow-y: visible; padding: 6px 6px 10px; }
.ptable-wrap { position: relative; }

/* 2 lớp grid trùng cột: frames (nền cột) dưới, nội dung trên */
.ptable, .ptable-frames {
  display: grid;
  grid-template-columns: minmax(200px, 1.25fr) minmax(150px, 1fr) minmax(150px, 1fr);
}
.ptable-frames { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ptable { position: relative; z-index: 1; }

.ptf { border-radius: var(--radius-card); grid-row: 1 / -1; }
.ptf-basic {
  grid-column: 2;
  background: var(--surface-0);
  border: 1.5px solid var(--hairline);
}
.ptf-complete {
  grid-column: 3;
  background: var(--pink-50);              /* lavender nhạt */
  border: 2px solid var(--ink);
  border-radius: var(--radius-anchor);
  box-shadow: var(--shadow-crisp);         /* shadow neo của trang */
}

/* ---- Header cột ---- */
.pt-corner { grid-column: 1; }
.pt-head {
  grid-column: auto;
  text-align: center;
  padding: 1.9rem 1.2rem 1.4rem;
  position: relative;
}
.pt-illus { width: 62px; height: 62px; margin: 0 auto 0.5rem; color: var(--ink); display: block; }
.pt-head h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; line-height: 1.2; margin: 0;
}
.pt-tier { display: block; color: var(--coral-600); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }
.pt-chip {
  display: inline-block; margin-top: 0.7rem;
  font-size: 0.78rem; font-weight: 600; color: var(--ink-2);
  background: var(--lavender-soft);
  border-radius: var(--radius-pill);
  padding: 0.32em 0.9em;
}
.pt-price { margin-top: 0.7rem; font-size: 0.95rem; color: var(--ink-2); font-weight: 500; }
.pt-price b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--coral-600); }
.pt-price .per { color: var(--ink-3); font-size: 0.85rem; }
.pt-flag {
  position: absolute; top: 0.7rem; right: 0.8rem;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink); background: var(--mint);
  border: 1.5px solid var(--ink); border-radius: var(--radius-pill);
  padding: 0.25em 0.7em;
}

/* ---- Ô nhãn (cột trái) ---- */
.pt-label {
  grid-column: 1;
  padding: 1rem 1.3rem 1rem 0.4rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
  border-bottom: 1px solid var(--hairline-row);
  font-size: 0.95rem;
}
.pt-label b { font-weight: 700; color: var(--ink); }
.pt-label span { font-size: 0.85rem; color: var(--ink-3); line-height: 1.45; }

/* ---- Ô giá trị ---- */
.pt-cell {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--hairline-row);
}
.pt-cell--txt { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.pt-cell--goal { display: block; text-align: left; font-size: 0.88rem; }
.pt-cell--goal b { color: var(--ink); font-weight: 700; }

/* dấu tick tròn mint */
.chk {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mint); color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 0.9rem; font-weight: 800; line-height: 1;
}

/* ---- Band phân đoạn ---- */
.pt-band {
  grid-column: 1 / -1;
  background: color-mix(in srgb, var(--sky) 24%, #fff);
  border-block: 1.5px solid var(--ink);
  font-weight: 700; font-size: 0.95rem; color: var(--ink);
  padding: 0.7rem 0.4rem; margin-top: 0.2rem;
}

/* ---- Footer ---- */
.pt-foot {
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  padding: 1.6rem 1.1rem 1.9rem;
}
.pt-foot .btn { width: 100%; max-width: 220px; text-align: center; }
.pt-sub { margin-top: 0.35rem; font-size: 0.8rem; color: var(--ink-3); }
.pt-more {
  font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 0.22em;
}
.pt-count { display: flex; gap: 0.4rem; }
.pt-cbox {
  display: flex; flex-direction: column; align-items: center;
  min-width: 42px; padding: 0.35rem 0.3rem;
  background: var(--surface-0); border: 1.5px solid var(--ink);
  border-radius: 10px;
}
.pt-cbox b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1; }
.pt-cbox small { font-size: 0.6rem; color: var(--ink-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.pt-slot { font-size: 0.82rem; color: var(--ink-2); }
.pt-slot b { color: var(--coral-600); font-weight: 700; }

@media (max-width: 780px) {
  .ptable-wrap { min-width: 660px; }   /* cho phép cuộn ngang, giữ frame khớp cột */
}

/* ---------- Guarantee ---------- */
.guarantee-card {
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2rem;
  align-items: center;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-crisp);
}
.guarantee-card:hover { transform: none; box-shadow: var(--shadow-crisp); }
.guarantee-card h2 { margin-bottom: 1rem; }
.guarantee-card ul { list-style: none; display: grid; gap: 0.55rem; margin: 1rem 0; font-size: 0.97rem; }
.guarantee-card ul li { padding-left: 1.5rem; position: relative; }
.guarantee-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pink-600);
  font-weight: 700;
}
@media (max-width: 820px) {
  .guarantee-card { grid-template-columns: 1fr; }
  .guarantee-art { max-width: 240px; margin-inline: auto; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 3rem auto 0; display: grid; gap: 0.9rem; }
.faq-list details {
  background: var(--surface-0);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.4rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pink-600);
  transition: transform var(--dur-quick) var(--ease-out);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div { margin-top: 0.8rem; font-size: 0.96rem; color: var(--text-muted); }
.faq-list details ul { margin: 0.5rem 0 0 1.2rem; }

/* ---------- Final CTA & footer ---------- */
.final-cta { text-align: center; }
.final-cta .btn { margin-top: 1.8rem; }

.footer {
  background: var(--ink);
  color: rgba(245, 241, 236, 0.75);
  padding: 2.2rem 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer a { color: var(--pink-200); }

/* ---------- Reveal: fade + slide-up 13px, 450ms, stagger từ JS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(13px) scale(0.985);
    transition: opacity var(--dur-reveal) var(--ease-out),
                transform var(--dur-reveal) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ============ CHECKOUT MODAL ============ */
.co-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(27, 22, 36, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 1rem; overflow-y: auto;
}
.co-overlay[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .co-overlay { animation: coFade 0.2s ease; }
  .co-card { animation: coPop 0.28s var(--ease-out); }
  @keyframes coFade { from { opacity: 0; } }
  @keyframes coPop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
}
.co-card {
  position: relative;
  width: min(460px, 100%);
  background: var(--surface-0);
  border: 2px solid var(--ink);
  border-radius: var(--radius-anchor);
  box-shadow: var(--shadow-crisp);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  margin: auto;
}
/* ---- Layout 2 cột (chọn cách tham gia) ---- */
.co-card.co-split {
  width: min(880px, 100%);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.co-left { background: var(--ink); color: var(--text-on-dark); padding: clamp(1.6rem, 3vw, 2.4rem); }
.co-right { background: var(--surface-2); padding: clamp(1.6rem, 3vw, 2.4rem); }
@media (max-width: 720px) {
  .co-card.co-split { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
}
.co-over { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.7rem; }
.co-over--mint { color: var(--mint); }
.co-over--ink { color: var(--label-45); }
.co-left h3 { color: #fff; font-size: 1.9rem; margin-bottom: 1.2rem; }

.co-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid rgba(245,241,236,0.2); border-radius: 16px; padding: 5px; background: rgba(255,255,255,0.04); }
.co-seg {
  position: relative; text-align: left; padding: 0.7rem 0.9rem; border: none; border-radius: 12px;
  background: transparent; color: rgba(245,241,236,0.72); cursor: pointer; font-family: var(--font-body);
  transition: background-color var(--dur-quick), color var(--dur-quick);
}
.co-seg .co-seg-t { display: block; font-weight: 700; font-size: 0.98rem; }
.co-seg .co-seg-s { display: block; font-size: 0.78rem; opacity: 0.8; }
.co-seg.is-active { background: #fff; color: var(--ink); }
.co-seg-check { position: absolute; top: 50%; right: 0.7rem; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: 0.7rem; font-weight: 800; display: none; place-items: center; }
.co-seg.is-active .co-seg-check { display: grid; }

.co-price2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); color: #fff; margin: 1.4rem 0 0.6rem; font-variant-numeric: tabular-nums; line-height: 1; }
.co-price2 .co-per { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: rgba(245,241,236,0.6); }
.co-desc { font-size: 0.88rem; line-height: 1.6; color: rgba(245,241,236,0.78); margin-bottom: 1.4rem; }
.co-desc strong { color: #fff; }

.co-yt {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; padding: 0.95rem 1rem; border-radius: var(--radius-pill);
  background: #ff0033; color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 #000;
  transition: transform var(--dur-quick) ease, box-shadow var(--dur-quick) ease, background-color var(--dur-quick);
}
.co-yt:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #000; background: #e6002e; }
.co-yt:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 #000; }
.co-foot { margin-top: 0.9rem; font-size: 0.76rem; color: rgba(245,241,236,0.55); text-align: center; }

/* Benefits cột phải */
.co-benefits { list-style: none; display: grid; gap: 0.85rem; }
.co-benefits li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; color: var(--ink); line-height: 1.4; }
.co-benefits li::before { content: "▸"; position: absolute; left: 0; top: 0; color: var(--coral); font-weight: 700; }
.co-benefits li a { color: var(--sky); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.co-benefits li a:hover { color: var(--ink); }
.co-benefits-note { margin-top: 1.4rem; font-size: 0.82rem; color: var(--ink-3); line-height: 1.6; }
.co-benefits-note strong { color: var(--ink); }

/* Nút đóng: absolute góc phải, nổi trên grid (nếu không sẽ chiếm 1 ô cột) */
.co-split .co-close {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; background: #fff;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer;
}

/* co-body (form) trong cột trái tối: input sáng */
.co-left .co-fields input { background: rgba(255,255,255,0.95); border-color: transparent; }
.co-left .co-error { color: #ff8a8a; }
.co-left .co-note { color: rgba(245,241,236,0.85); background: rgba(121,210,135,0.15); border-color: rgba(121,210,135,0.35); }
.co-left .co-note strong { color: #fff; }
.co-left .co-qr-zone { border-top-color: rgba(245,241,236,0.16); }
.co-left .co-paid-noemail { color: rgba(245,241,236,0.85); }
.co-left .co-paid-noemail strong { color: #fff; }
.co-left .co-bank { border-color: rgba(245,241,236,0.2); color: var(--text-on-dark); }
.co-left .co-bank .row { border-bottom-color: rgba(245,241,236,0.14); }
.co-left .co-bank .l { color: rgba(245,241,236,0.55); }
.co-left .co-bank .v { color: #fff; }
.co-left .co-copy { color: rgba(245,241,236,0.6); }
.co-left .co-copy:hover { color: #fff; background: rgba(255,255,255,0.1); }
.co-left .co-live { color: rgba(245,241,236,0.6); }
.co-left .co-creating { color: rgba(245,241,236,0.6); }
.co-left .co-success h3 { color: #fff; }
.co-left .co-success p { color: rgba(245,241,236,0.8); }
/* Email khách vừa nhập nằm trong <strong> — màu mực tối trên nền tối là mất
   hút, mà đây đúng là dòng khách cần đọc nhất sau khi trả tiền. */
.co-left .co-success strong { color: #fff; }

.co-fields { display: flex; flex-direction: column; gap: 0.6rem; }
.co-fields input,
.co-fields select {
  width: 100%; border-radius: var(--radius-input);
  border: 2px solid var(--hairline); background: var(--surface-0);
  padding: 0.7rem 0.9rem; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--ink); outline: none; transition: border-color var(--dur-quick);
}
.co-fields input:focus,
.co-fields select:focus { border-color: var(--ink); }
/* Chưa chọn thì màu nhạt như placeholder của input bên trên. */
.co-fields select:invalid { color: var(--muted, #8a8391); }
.co-error { margin-top: 0.6rem; font-size: 0.82rem; font-weight: 600; color: var(--destructive); }
.co-enrolled { margin-top: 0.8rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-input); background: color-mix(in srgb, var(--mint) 16%, transparent); border: 1px solid color-mix(in srgb, var(--mint) 42%, transparent); font-size: 0.83rem; line-height: 1.5; }
.co-enrolled a { display: inline-block; margin-top: 0.2rem; font-weight: 700; color: var(--ink); text-decoration: underline; }
.co-creating { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-3); }
/* Băng "đã nhận tiền, mời điền email" — ca khách quét QR trước khi điền gì */
.co-paid-noemail { margin-bottom: 1rem; padding: 0.75rem 0.9rem; border-radius: var(--radius-input); background: color-mix(in srgb, var(--mint) 22%, transparent); border: 1px solid color-mix(in srgb, var(--mint) 50%, transparent); font-size: 0.83rem; line-height: 1.5; }
.co-paid-noemail strong { display: block; margin-bottom: 0.15rem; font-size: 0.95rem; }
/* Placeholder khu QR — hiện trước khi nhập email, để khách thấy chỗ QR sẽ ra */
.co-qr-ph { margin-top: 1.2rem; padding: 1rem 1.1rem; display: flex; gap: 0.9rem; align-items: center; border: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius-card); }
/* display:flex ở trên đè thuộc tính [hidden] → phải override để show()/hide chạy */
.co-qr-ph[hidden] { display: none; }
.co-qr-ph-ic { flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid color-mix(in srgb, var(--ink) 15%, transparent); color: var(--ink-3); }
.co-qr-ph p { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--ink-3); }
.co-left .co-qr-ph { border-color: rgba(245,241,236,0.25); }
.co-left .co-qr-ph-ic { border-color: rgba(245,241,236,0.2); color: rgba(245,241,236,0.6); }
.co-left .co-qr-ph p { color: rgba(245,241,236,0.6); }
.co-qr-zone { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--surface-3); }
.co-note { font-size: 0.8rem; margin-bottom: 0.8rem; padding: 0.5rem 0.8rem; border-radius: var(--radius-input); background: color-mix(in srgb, var(--mint) 16%, transparent); border: 1px solid color-mix(in srgb, var(--mint) 42%, transparent); }
.co-note strong { color: var(--ink); word-break: break-all; }
.co-qr-row { display: flex; gap: 1.1rem; align-items: center; }
.co-qr { flex-shrink: 0; border: 2px solid var(--ink); border-radius: var(--radius-card); background: #fff; padding: 6px; box-shadow: var(--shadow-crisp-sm); }
.co-qr img { display: block; width: 150px; height: 150px; }
.co-bank { flex: 1; border: 1px solid var(--surface-3); border-radius: var(--radius-input); overflow: hidden; font-size: 0.8rem; }
.co-bank .row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--surface-3); }
.co-bank .row:last-child { border-bottom: none; }
.co-bank .l { color: var(--ink-3); flex-shrink: 0; }
.co-bank .v { font-weight: 700; color: var(--ink); text-align: right; display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.co-bank .v span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-copy { flex-shrink: 0; width: 22px; height: 22px; border: none; background: transparent; color: var(--ink-3); cursor: pointer; border-radius: 5px; display: grid; place-items: center; }
.co-copy:hover { color: var(--ink); background: var(--surface-2); }
.co-copy.done { color: var(--positive); }
.co-live { margin-top: 1rem; font-size: 0.72rem; color: var(--ink-3); line-height: 1.5; display: flex; gap: 0.5rem; align-items: flex-start; }
.co-dot { position: relative; flex-shrink: 0; width: 9px; height: 9px; margin-top: 0.28rem; }
.co-dot::before, .co-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--coral); }
@media (prefers-reduced-motion: no-preference) {
  .co-dot::before { animation: coPing 1.4s cubic-bezier(0,0,0.2,1) infinite; }
  @keyframes coPing { 75%,100% { transform: scale(2.2); opacity: 0; } }
}
.co-success { text-align: center; padding: 1rem 0; }
.co-success h3 { font-size: 1.5rem; margin: 0.9rem 0 0.6rem; }
.co-success p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.6; max-width: 380px; margin-inline: auto; }
.co-success strong { color: var(--ink); word-break: break-all; }
.co-check { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); box-shadow: var(--shadow-crisp-sm); display: grid; place-items: center; }
.co-check svg { width: 30px; height: 30px; }
body.co-open { overflow: hidden; }

/* ============ ANIMATION/EFFECT BỔ SUNG ============ */
/* Thanh tiến trình cuộn (coral) trên đỉnh trang */
.scroll-prog {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
  z-index: calc(var(--z-nav) + 1); pointer-events: none;
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) { .scroll-prog { display: none; } }

/* Nav: khi cuộn xuống thêm shadow crisp nhẹ + nền đặc hơn */
.nav { transition: box-shadow var(--dur-quick) ease, background-color var(--dur-quick) ease; }
.nav.scrolled { background: rgba(243, 237, 233, 0.96); box-shadow: 0 3px 0 rgba(27,22,36,0.08); }

/* Guarantee + pain illustration trôi nhẹ */
@media (prefers-reduced-motion: no-preference) {
  .guarantee-art .illus { animation: floatY 6s ease-in-out infinite; }
  .pain-art .illus { animation: floatY 5.5s ease-in-out infinite; }
  @keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}

/* Micro: input focus nhấc nhẹ; nav link gạch chân coral chạy vào */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--coral); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-quick) var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Tap feedback cho card featured đã có; thêm cho quote/chat marquee card hover nổi */
@media (hover: hover) {
  .quote-card { transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out); }
  .marquee-track:hover .quote-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-crisp-sm); }
}

