/* Trang chủ (LOV-392) — theo design/web_trang_chu/code.html, token ở design/warm_editorial_couple_chronicle/DESIGN.md.
   Font tự host (không gọi Google Fonts); chỉ theo prefers-color-scheme. */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/be-vietnam-pro-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/be-vietnam-pro-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/be-vietnam-pro-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/be-vietnam-pro-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/epilogue-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/epilogue-700.woff2') format('woff2');
}

:root {
  --canvas: #fef8f6;
  --card: #ffffff;
  --inset: #f4efea;
  --text: #2b2928;
  --muted: #736b66;
  --primary: #94452c;
  --on-primary: #ffffff;
  --primary-soft: rgba(148, 69, 44, 0.1);
  --peach: #ffdbd0;
  --sage: #4f7553;
  --sage-soft: rgba(122, 158, 126, 0.16);
  --sage-wash: #e3efe0;
  --border: rgba(43, 41, 40, 0.06);
  --frame: #1d1b1a;
  --shadow-1: 0 2px 12px -2px rgba(43, 41, 40, 0.04), 0 1px 3px 0 rgba(200, 109, 81, 0.03);
  --shadow-2: 0 10px 28px -6px rgba(43, 41, 40, 0.07), 0 4px 12px -2px rgba(200, 109, 81, 0.05);
  --shadow-3: 0 24px 48px -12px rgba(43, 41, 40, 0.16), 0 8px 16px -4px rgba(200, 109, 81, 0.1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1a1817;
    --card: #23201f;
    --inset: #2c2826;
    --text: #f7f2ec;
    --muted: #a89f98;
    --primary: #d87d62;
    --on-primary: #1a1817;
    --primary-soft: rgba(216, 125, 98, 0.14);
    --peach: rgba(216, 125, 98, 0.16);
    --sage: #8db091;
    --sage-soft: rgba(141, 176, 145, 0.16);
    --sage-wash: rgba(141, 176, 145, 0.1);
    --border: rgba(244, 162, 126, 0.12);
    --frame: #000;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font:
    400 16px/26px 'Be Vietnam Pro',
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.num {
  font-variant-numeric: tabular-nums lining-nums;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .wrap {
    padding: 0 32px;
  }
}
@media (min-width: 1024px) {
  .wrap {
    padding: 0 48px;
  }
}

/* ---------- Đầu trang ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.top .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.brand span {
  font:
    700 20px/1 Epilogue,
    sans-serif;
  letter-spacing: -0.02em;
}
.nav {
  display: none;
  gap: 28px;
  font:
    500 14px/1 'Be Vietnam Pro',
    sans-serif;
  color: var(--muted);
}
.nav a {
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
}
@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 9999px;
  font:
    600 15px/1 'Be Vietnam Pro',
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  background: var(--inset);
  color: var(--text);
  border-color: var(--border);
}
.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.store {
  height: 56px;
  padding: 0 20px 0 16px;
  text-align: left;
}
.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store small {
  display: block;
  font:
    500 11px/14px 'Be Vietnam Pro',
    sans-serif;
  opacity: 0.78;
  letter-spacing: 0.02em;
}
.store b {
  display: block;
  font:
    700 16px/20px 'Be Vietnam Pro',
    sans-serif;
}
.store[aria-disabled='true'] {
  cursor: default;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero {
    padding: 72px 0 88px;
  }
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob.b1 {
  width: 620px;
  height: 620px;
  background: var(--peach);
  opacity: 0.55;
  right: -220px;
  top: -200px;
}
.blob.b2 {
  width: 480px;
  height: 480px;
  background: var(--sage-wash);
  opacity: 0.8;
  left: -260px;
  bottom: -220px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  background: var(--primary-soft);
  color: var(--primary);
  font:
    600 13px/1 'Be Vietnam Pro',
    sans-serif;
  letter-spacing: 0.02em;
}
h1 {
  margin: 20px 0 16px;
  font:
    700 44px/52px Epilogue,
    sans-serif;
  letter-spacing: -0.025em;
}
h1 em {
  font-style: normal;
  color: var(--primary);
}
@media (max-width: 600px) {
  h1 br {
    display: none;
  }
}
@media (min-width: 768px) {
  h1 {
    font-size: 56px;
    line-height: 64px;
    letter-spacing: -0.03em;
  }
}
.lead {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 30px;
  color: var(--muted);
  max-width: 520px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font:
    500 14px/20px 'Be Vietnam Pro',
    sans-serif;
  color: var(--muted);
}
.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.facts li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}
.phone {
  position: relative;
  width: 272px;
  border: 8px solid var(--frame);
  border-radius: 46px;
  overflow: hidden;
  background: var(--frame);
  box-shadow: var(--shadow-3);
}
.phone img {
  width: 100%;
  border-radius: 38px;
}
@media (min-width: 768px) {
  .phone {
    width: 300px;
  }
}
.float {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-2);
}
.widget {
  left: 50%;
  bottom: 36px;
  transform: translateX(-118%);
  width: 196px;
  padding: 16px 18px;
  text-align: center;
}
.widget .lbl {
  font:
    500 12px/16px 'Be Vietnam Pro',
    sans-serif;
  color: var(--muted);
}
.widget .big {
  font:
    700 44px/48px Epilogue,
    sans-serif;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.widget .cap {
  font:
    600 11px/16px 'Be Vietnam Pro',
    sans-serif;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.chip-float {
  right: 50%;
  top: 88px;
  transform: translateX(132%);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.chip-float .dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
  display: grid;
  place-items: center;
  font:
    700 13px/1 Epilogue,
    sans-serif;
}
.chip-float {
  white-space: nowrap;
}
.chip-float b {
  display: block;
  font:
    600 14px/20px 'Be Vietnam Pro',
    sans-serif;
}
.chip-float span {
  display: block;
  font:
    400 12px/18px 'Be Vietnam Pro',
    sans-serif;
  color: var(--muted);
}
@media (max-width: 420px) {
  .widget {
    left: 0;
    transform: none;
    width: 160px;
    bottom: 24px;
  }
  .widget .big {
    font-size: 38px;
    line-height: 42px;
  }
  .chip-float {
    right: 0;
    transform: none;
    top: 72px;
  }
}

/* ---------- Dải cam kết ---------- */
.promise {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.promise ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 860px) {
  .promise ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
.promise li {
  padding: 22px 8px;
  text-align: center;
}
.promise b {
  display: block;
  font:
    700 22px/30px Epilogue,
    sans-serif;
  letter-spacing: -0.01em;
  color: var(--primary);
}
.promise span {
  display: block;
  font:
    400 13px/20px 'Be Vietnam Pro',
    sans-serif;
  color: var(--muted);
}

/* ---------- Tính năng ---------- */
section.block {
  padding: 72px 0;
}
@media (min-width: 960px) {
  section.block {
    padding: 104px 0;
  }
}
.kicker {
  font:
    600 13px/18px 'Be Vietnam Pro',
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
h2 {
  margin: 10px 0 14px;
  font:
    600 30px/38px Epilogue,
    sans-serif;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  h2 {
    font-size: 40px;
    line-height: 48px;
  }
}
.sub {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 28px;
  max-width: 560px;
}
.head-c {
  text-align: center;
}
.head-c .sub {
  margin: 0 auto;
}

.feat {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: 64px;
}
.feat:first-of-type {
  margin-top: 48px;
}
@media (min-width: 900px) {
  .feat {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    margin-top: 96px;
  }
  .feat.flip .shot {
    order: 2;
  }
}
.shot {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 40px 0;
}
.shot::before {
  content: '';
  position: absolute;
  inset: 0 6%;
  border-radius: 48px;
  background: var(--inset);
  z-index: -1;
}
.shot.sage::before {
  background: var(--sage-wash);
}
.shot.peach::before {
  background: var(--peach);
  opacity: 0.7;
}
.shot .phone {
  width: 240px;
}
.shot .phone.sm {
  width: 200px;
  margin-top: 48px;
}
.feat > * {
  min-width: 0;
}
.feat > .calc {
  order: 2;
}
@media (min-width: 900px) {
  .feat:not(.flip) > .calc {
    order: 0;
  }
}
@media (max-width: 480px) {
  .shot .phone {
    width: min(230px, 66%);
  }
}
.shot.duo .phone {
  width: min(240px, 54%);
}
.shot.duo .phone.sm {
  width: min(200px, 42%);
}
.feat h3 {
  margin: 8px 0 12px;
  font:
    600 26px/34px Epilogue,
    sans-serif;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) {
  .feat h3 {
    font-size: 32px;
    line-height: 40px;
  }
}
.feat p {
  margin: 0 0 16px;
  color: var(--muted);
}
.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 24px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--sage-soft);
}
.ticks li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 7px;
  width: 5px;
  height: 8px;
  border: solid var(--sage);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Tính thử ---------- */
.calc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow-2);
  padding: 28px 24px;
  display: grid;
  gap: 20px;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}
@media (min-width: 768px) {
  .calc {
    padding: 36px 40px;
  }
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font:
    600 13px/18px 'Be Vietnam Pro',
    sans-serif;
  color: var(--muted);
}
.field input {
  height: 52px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background: var(--inset);
  color: var(--text);
  padding: 0 18px;
  font:
    500 16px/1 'Be Vietnam Pro',
    sans-serif;
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
}
.result {
  text-align: center;
  padding: 32px 16px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    var(--card),
    color-mix(in srgb, var(--peach) 45%, var(--card))
  );
  border: 1px solid var(--border);
}
.result .lbl {
  font:
    500 15px/22px 'Be Vietnam Pro',
    sans-serif;
  color: var(--muted);
}
.result .big {
  font:
    700 72px/80px Epilogue,
    sans-serif;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.result .cap {
  font:
    600 13px/18px 'Be Vietnam Pro',
    sans-serif;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.result .split {
  margin-top: 12px;
  font:
    500 15px/22px 'Be Vietnam Pro',
    sans-serif;
}
.note {
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- Giai đoạn ---------- */
.stages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.stages span {
  height: 40px;
  padding: 0 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  font:
    600 14px/1 'Be Vietnam Pro',
    sans-serif;
}

/* ---------- Câu hỏi ---------- */
.faq {
  max-width: 760px;
  margin: 40px auto 0;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0 24px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  position: relative;
  font:
    600 16px/24px 'Be Vietnam Pro',
    sans-serif;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font:
    600 18px/1 Epilogue,
    sans-serif;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 25px;
}

/* ---------- Kêu gọi cuối ---------- */
.cta > *:not(.blob) {
  position: relative;
  z-index: 1;
}
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  padding: 56px 24px;
  text-align: center;
  background: var(--inset);
  border: 1px solid var(--border);
}
.cta h2 {
  margin-top: 0;
}
.cta .stores {
  justify-content: center;
  margin-top: 28px;
}
.cta .blob.b1 {
  width: 360px;
  height: 360px;
  right: -140px;
  top: -160px;
}
.cta .blob.b2 {
  width: 300px;
  height: 300px;
  left: -140px;
  bottom: -160px;
}

/* ---------- Chân trang ---------- */
footer .brand {
  color: var(--text);
}
footer {
  padding: 56px 0 40px;
  margin-top: 72px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}
.foot {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .foot {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.foot h4 {
  margin: 0 0 12px;
  font:
    600 13px/18px 'Be Vietnam Pro',
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--text);
  text-decoration: underline;
}
.legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* ---------- Bổ sung so với bản vẽ (CSP không cho style nội tuyến, không JS thì ô Tính thử ẩn) ---------- */
[hidden] {
  display: none !important;
}
section[id],
.feat[id] {
  scroll-margin-top: 80px;
}
section.block.pt0 {
  padding-top: 0;
}
.cta .sub {
  margin: 0 auto;
}
.foot-about {
  margin: 12px 0 0;
  max-width: 320px;
}
.phone img {
  height: auto;
}
