/* Landing page (index.html), from Figma "Landing page": Desktop 1440 (627:21554), Mobile 390 (622:21256). */
:root {
  --primary-50: #f6f4ff;
  --primary-100: #ece8fe;
  --primary-200: #ddd6fb;
  --primary-600: #7257d4;
  --primary-700: #5b42b0;
  --ink: #262626;
  --body: #40404d;
  --muted: #737373;
  --line: #e6e0f7;
  --dark: #211a3d;
  --white: #ffffff;
  --wrap: 1200px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 0 auto; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary-600); color: var(--white); }
.btn-primary:hover { background: var(--primary-700); }
.btn-ghost { background: var(--white); color: var(--primary-700); box-shadow: inset 0 0 0 1px var(--primary-200); }
.btn-ghost:hover { background: var(--primary-50); }
.btn-light { background: var(--white); color: var(--primary-700); }
.btn-light:hover { background: var(--primary-100); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; line-height: 22px; }

/* ----- 01 Hero ----- */
.hero {
  padding-bottom: 40px;
  background: url("assets/login/bg.jpg") center / cover no-repeat, #ece6ff;
  overflow: hidden;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; }
.logo img { width: 81px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) { display: none; font-size: 16px; font-weight: 500; color: var(--body); }
.nav-links a:not(.btn):hover { color: var(--primary-700); }

.hero-body { display: flex; flex-direction: column; gap: 32px; padding-top: 36px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: 34px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.hero-lead { font-size: 16px; line-height: 1.5; color: var(--body); }
.hero-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.hero-art { width: min(100%, 420px); margin: 0 auto; }

/* ----- Sections ----- */
.section { padding: 56px 0; }
.heading { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.heading-center { align-items: center; margin: 0 auto; text-align: center; }
.eyebrow { font-size: 12px; line-height: 20px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-600); }
.section h2 { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 680px; }

/* ----- 02 Vấn đề ----- */
.problem-list { display: grid; gap: 12px; margin-top: 28px; }
.problem {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  padding: 18px;
  border-radius: 18px;
  background: var(--primary-50);
}
.problem-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  font-size: 22px;
}
.problem h3 { font-size: 17px; line-height: 1.45; font-weight: 600; }
.problem p { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ----- 03 Giá trị ----- */
.values { background: var(--primary-50); }
.value { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.value-art { width: min(100%, 320px); margin: 0 auto; }
.value-copy { display: flex; flex-direction: column; gap: 6px; }
.value-num { font-size: 13px; line-height: 20px; font-weight: 700; color: var(--primary-600); }
.value h3 { font-size: 20px; line-height: 1.35; font-weight: 600; }
.value-copy p:last-child { font-size: 15px; line-height: 1.55; color: var(--body); }

/* ----- 04 Cách hoạt động ----- */
/* Mobile (Figma 623:21686): number on the left, no card; desktop: three bordered cards. */
.steps .heading-center { align-items: flex-start; text-align: left; }
.step-list { display: grid; gap: 24px; margin-top: 28px; }
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  row-gap: 4px;
}
.step-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-600);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}
.step h3 { font-size: 18px; line-height: 1.45; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ----- 05 Cài app ----- */
.install { background: var(--primary-50); scroll-margin-top: 0; }
.install-list { display: grid; gap: 16px; margin-top: 28px; }
.install-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.install-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.install-head h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.pill { padding: 4px 10px; border-radius: 999px; background: var(--primary-100); color: var(--primary-700); font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.install-card ol { display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.install-card li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
  counter-increment: step;
}
.install-card li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-600);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.install-note { margin-top: 20px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ----- 06 Hỏi đáp ----- */
.faq-cols { display: flex; flex-direction: column; gap: 20px; }
.faq-item { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item dt { font-size: 17px; line-height: 1.45; font-weight: 600; }
.faq-item dd { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ----- 07 CTA ----- */
.cta { padding-top: 0; }
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 20px;
  border-radius: 28px;
  background: var(--primary-600);
  color: var(--white);
  text-align: center;
}
.cta-fox { width: 150px; }
.cta-copy { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta h2 { font-size: 26px; }
.cta-copy p { font-size: 15px; line-height: 1.5; color: #ede8ff; }
.cta-copy .btn { margin-top: 6px; width: 100%; }

/* ----- 08 Footer ----- */
.footer { padding: 36px 0; background: var(--dark); color: var(--white); }
.footer-row { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { font-size: 14px; color: #c7c2e0; }
.footer-side { display: flex; flex-direction: column; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--primary-200); }
.footer-copy { font-size: 12px; color: #9994b8; }

/* ===== Desktop (Figma 1440: 120px side margins, 1200 content) ===== */
@media (min-width: 960px) {
  :root { --gutter: 40px; }

  .nav { padding-top: 28px; }
  .nav-links a:not(.btn) { display: inline; }
  .btn { min-height: 56px; padding: 16px 28px; font-size: 17px; }
  .btn-sm { min-height: 45px; padding: 11px 20px; font-size: 15px; }

  .hero { padding-bottom: 80px; }
  .hero-body { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding-top: 40px; }
  .hero-copy { flex: 0 1 560px; gap: 28px; }
  .hero h1 { font-size: 56px; line-height: 1.22; }
  .hero-lead { max-width: 520px; font-size: 19px; }
  .hero-ctas { flex-direction: row; margin-top: 0; gap: 14px; }
  .hero-art { flex: 0 1 560px; width: 560px; margin: 0; }

  .section { padding: 100px 0; }
  .heading { gap: 12px; }
  .eyebrow { font-size: 13px; }
  .section h2 { font-size: 40px; line-height: 1.22; }
  .lead { font-size: 18px; }

  .problem-list { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
  .problem { grid-template-columns: 1fr; row-gap: 16px; padding: 28px; border-radius: 24px; align-content: start; }
  .problem-icon { grid-row: auto; width: 56px; height: 56px; border-radius: 16px; font-size: 28px; }
  .problem h3 { font-size: 21px; }
  .problem p { font-size: 16px; }

  .value { flex-direction: row; align-items: center; gap: 80px; margin-top: 72px; }
  .value-flip { flex-direction: row-reverse; justify-content: space-between; }
  .value-art { flex: none; margin: 0; }
  .value:nth-of-type(2) .value-art { width: 454px; }
  .value-flip .value-art { width: 553px; }
  .value:nth-of-type(4) .value-art { width: 595px; }
  .value-copy { flex: 1; gap: 14px; }
  .value-num { font-size: 15px; }
  .value h3 { font-size: 32px; line-height: 1.22; font-weight: 700; }
  .value-copy p:last-child { font-size: 18px; }

  .steps .heading-center { align-items: center; text-align: center; }
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
  .step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 28px;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px var(--primary-200);
  }
  .step-num { width: 48px; height: 48px; font-size: 20px; }
  .step h3 { font-size: 22px; }
  .step p { font-size: 16px; }

  .install-list { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
  .install-card { gap: 18px; padding: 32px; border-radius: 24px; }
  .install-head h3 { font-size: 26px; }
  .pill { padding: 5px 12px; font-size: 14px; }
  .install-card li { grid-template-columns: 30px 1fr; gap: 14px; font-size: 17px; }
  .install-card li::before { width: 30px; height: 30px; font-size: 14px; }
  .install-note { margin-top: 56px; font-size: 15px; }

  .faq-cols { flex-direction: row; align-items: flex-start; gap: 80px; }
  .faq-cols .heading { flex: 0 0 360px; }
  .faq-list { flex: 1; }
  .faq-item { padding: 22px 0; }
  .faq-item:first-child { padding-top: 0; }
  .faq-item dt { font-size: 20px; }
  .faq-item dd { font-size: 17px; }

  .cta { padding-bottom: 100px; }
  .cta-band { flex-direction: row; gap: 48px; padding: 56px 64px; border-radius: 36px; text-align: left; }
  .cta-fox { flex: none; width: 185px; }
  .cta-copy { align-items: flex-start; gap: 16px; }
  .cta h2 { font-size: 40px; }
  .cta-copy p { font-size: 18px; }
  .cta-copy .btn { width: auto; }

  .footer { padding: 40px 0; }
  .footer-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-brand p { font-size: 15px; }
  .footer-side { align-items: flex-end; }
  .footer-links { gap: 28px; font-size: 15px; }
  .footer-copy { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
