/* Trang giới thiệu "tờ bill": giấy kem, mực đen, một màu đỏ con dấu. Tải sau site.css. */
:root {
  --brand: #d9381e; --brand-d: #b02a14; --brand-l: #fde7e1;
  --bg: #f6f1e7; --paper: #fffdf8; --ink: #1f1b16; --mute: #6b6258; --line: #ded5c4; --text: #1f1b16;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, 'Courier New', monospace;
}
body.lp { font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; padding-bottom: 76px; }
.lp h1, .lp h2, .lp h3 { letter-spacing: -.02em; }
.lp .mono, .lp .price { font-family: var(--mono); }
.lp .nav { background: var(--bg); border-bottom: 1px dashed var(--line); }
.lp .logo { font-weight: 800; font-size: 19px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 7px; }
.lp .logo .ic { color: var(--brand); width: 22px; height: 22px; vertical-align: 0; }
.lp .logo b { color: var(--brand); }
.lp .btn { border-color: var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); }
.lp .btn:hover { background: #fff; }
.lp .btn.primary { background: var(--brand); border-color: var(--brand-d); color: #fff; box-shadow: 0 3px 0 var(--brand-d); }
.lp .btn.primary:hover { background: var(--brand-d); }
.lp .btn.big { padding: 14px 20px; font-size: 16px; justify-content: center; }
.lp .btn.sm { box-shadow: none; }

.lp section { padding-block: 44px; }
.lp .eyebrow { font: 700 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.lp h2 { font-size: clamp(24px, 6vw, 36px); line-height: 1.15; margin-bottom: 14px; }
.lp .lead { font-size: 17px; color: var(--mute); max-width: 620px; }

/* hero */
.lp .hero { text-align: left; padding: 30px 16px 40px; display: grid; gap: 30px; }
.lp .hero h1 { font-size: clamp(29px, 8.2vw, 50px); line-height: 1.12; font-weight: 800; margin-bottom: 14px; }
.lp .hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, #f6c9bf 62%); }
.lp .hero p { font-size: 17px; color: var(--mute); margin: 0 0 20px; max-width: 520px; }
.lp .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lp .cta .btn { flex: 1 1 200px; }
.lp .fine { font: 13px/1.5 var(--sans); color: var(--mute); margin-top: 14px; }
@media (min-width: 860px) { .lp .hero { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 56px 16px; } .lp .cta .btn { flex: 0 0 auto; } }

/* tờ bill */
.bill { position: relative; background: var(--paper); border: 1px solid var(--line); padding: 22px 20px 26px; font-family: var(--mono); font-size: 14px; color: var(--ink); box-shadow: 0 14px 30px -18px rgba(60,40,10,.45); margin-bottom: 12px; }
.bill::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -8px; height: 8px; background: linear-gradient(135deg, var(--paper) 25%, transparent 25%) -6px 0, linear-gradient(225deg, var(--paper) 25%, transparent 25%) -6px 0; background-size: 12px 12px; filter: drop-shadow(0 1px 0 var(--line)); }
.bill h3 { font: 800 15px/1.2 var(--mono); text-align: center; letter-spacing: .08em; margin: 0 0 2px; text-transform: uppercase; }
.bill .sub { text-align: center; color: var(--mute); font-size: 12px; margin-bottom: 12px; }
.bill hr { border: 0; border-top: 1px dashed #b9ad98; margin: 10px 0; }
.bill .ln { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.bill .ln > span:first-child { flex: 0 1 auto; }
.bill .ln .dots { flex: 1; border-bottom: 2px dotted #cdbfa7; transform: translateY(-3px); min-width: 12px; }
.bill .ln b { white-space: nowrap; }
.bill .tot { font-size: 17px; font-weight: 800; }
.bill .tot b { color: var(--brand); }
.bill .thanks { text-align: center; color: var(--mute); font-size: 12px; margin-top: 12px; }
.hero .bill { padding-bottom: 64px; } .hero .bill .thanks { text-align: left; margin-top: 18px; }
.stamp { position: absolute; right: 14px; bottom: 26px; transform: rotate(-12deg); border: 3px solid var(--brand); color: var(--brand); font: 800 15px/1 var(--mono); letter-spacing: .06em; padding: 7px 10px; border-radius: 6px; background: rgba(255,253,248,.55); }
.hero .bill .ln { opacity: 0; animation: print .35s ease-out forwards; }
.hero .bill .ln:nth-of-type(1) { animation-delay: .25s; } .hero .bill .ln:nth-of-type(2) { animation-delay: .65s; } .hero .bill .ln:nth-of-type(3) { animation-delay: 1.05s; } .hero .bill .ln:nth-of-type(4) { animation-delay: 1.45s; } .hero .bill .ln:nth-of-type(5) { animation-delay: 1.85s; }
.hero .stamp { opacity: 0; animation: stamp .35s cubic-bezier(.2,1.6,.4,1) 2.5s forwards; }
@keyframes print { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero .bill .ln, .hero .stamp { animation: none; opacity: 1; } }
a.bill-link { display: block; text-decoration: none; color: inherit; }
a.bill-link:hover .bill { transform: translateY(-2px); }
.bill { transition: transform .15s; }

/* nỗi đau */
.pain { display: grid; gap: 10px; margin: 18px 0; }
.pain .q { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 6px; padding: 12px 14px; }
.pain .q b { display: block; }
.pain .q span { color: var(--mute); font-size: 14px; }
@media (min-width: 700px) { .pain { grid-template-columns: 1fr 1fr; } }
.punch { font-weight: 700; font-size: 18px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px 0; margin-top: 8px; }

/* trước / sau */
.cmp { margin-top: 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; overflow: hidden; }
.cmp .r { display: grid; border-top: 1px dashed var(--line); }
.cmp .r:first-child { border-top: 0; }
.cmp .r > div { padding: 12px 14px; }
.cmp .old { color: var(--mute); }
.cmp .old::before, .cmp .new::before { display: block; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.cmp .old::before { content: 'Trước: inbox'; } .cmp .new::before { content: 'Sau: Menu Link'; color: var(--brand); }
.cmp .new { background: #fff8f5; font-weight: 600; }
@media (min-width: 700px) { .cmp .r { grid-template-columns: 1fr 1fr; } .cmp .r:not(:first-child) .old::before, .cmp .r:not(:first-child) .new::before { display: none; } }

/* 3 bước */
.steps { display: grid; gap: 12px; margin-top: 16px; counter-reset: s; }
.steps .st { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; position: relative; padding-left: 62px; }
.steps .st::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 800 18px/36px var(--sans); text-align: center; }
.steps h3 { margin: 0 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--mute); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* tính năng */
.feats { display: grid; gap: 10px; margin-top: 16px; }
.feats .f { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.feats .f .ic { color: var(--brand); width: 26px; height: 26px; margin-top: 2px; }
.feats .f b { display: block; margin-bottom: 2px; }
.feats .f span { color: var(--mute); font-size: 14px; }
@media (min-width: 700px) { .feats { grid-template-columns: 1fr 1fr; } } @media (min-width: 960px) { .feats { grid-template-columns: repeat(3, 1fr); } }

/* hợp / chưa hợp */
.fit { display: grid; gap: 12px; margin-top: 16px; }
.fit > div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.fit h3 { margin: 0 0 6px; font-size: 17px; }
.fit .yes h3 { color: var(--ok); } .fit .no h3 { color: var(--mute); }
.fit p { margin: 0; }
@media (min-width: 700px) { .fit { grid-template-columns: 1fr 1fr; } }

/* bảng giá */
.price-wrap { max-width: 460px; margin: 18px auto 0; }
.price-wrap .bill { font-size: 15px; }
.price-wrap .tot { font-size: 20px; }
.price-wrap .note { font-size: 13px; color: var(--mute); text-align: center; margin-top: 10px; }
.price-wrap .btn { width: 100%; margin-top: 14px; }

/* menu mẫu */
.demos { display: grid; gap: 12px; margin-top: 16px; }
.demos a { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-decoration: none; color: var(--ink); }
.demos a:hover { border-color: var(--ink); }
.demos .tprev { width: 96px; height: 76px; margin: 0; flex: none; }
.demos b { display: block; } .demos span { color: var(--mute); font-size: 14px; }
@media (min-width: 760px) { .demos { grid-template-columns: repeat(3, 1fr); } .demos a { flex-direction: column; align-items: stretch; } .demos .tprev { width: auto; height: 110px; } }

/* hỏi đáp */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 800 22px/1 var(--sans); color: var(--brand); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--mute); }

/* đăng ký */
.signup .bill { max-width: 680px; margin: 18px auto 0; padding: 22px 18px 30px; font-family: inherit; }
.signup .bill h3 { font-family: var(--mono); }
.signup .input { border-radius: 8px; border-color: #cdbfa7; background: #fff; font-size: 16px; }
.signup .input:focus { outline: 2px solid var(--brand-l); border-color: var(--brand); }
.signup .btn.primary { width: 100%; padding: 14px; font-size: 16px; justify-content: center; }
.signup .theme { background: #fff; }

footer.site { border-top: 1px dashed var(--line); }

/* nút dán đáy trên điện thoại */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); transition: transform .2s; }
.dock.off { transform: translateY(120%); }
.dock .btn { width: 100%; }
@media (min-width: 860px) { .dock { display: none; } body.lp { padding-bottom: 0; } }
@media (max-width: 400px) { .lp .bill { padding: 18px 14px 24px; font-size: 13px; } .stamp { font-size: 13px; right: 8px; } }

/* điện thoại giả lập: ảnh chụp menu thật, tự cuộn nhẹ (CSS thuần, ảnh JPEG ~100 KB) */
.phones { --pw: 232px; --fh: 440px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 16px 8px; margin: 10px -16px 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.phones::-webkit-scrollbar { display: none; }
.ph { flex: 0 0 var(--pw); scroll-snap-align: center; text-decoration: none; color: var(--ink); text-align: center; }
.ph .frame { width: var(--pw); height: var(--fh); border-radius: 34px; border: 8px solid #1f1b16; background: #1f1b16; overflow: hidden; position: relative; box-shadow: 0 18px 34px -16px rgba(40,25,5,.5); margin-bottom: 12px; }
.ph .frame::before { content: ''; position: absolute; top: 6px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 4px; background: #000; z-index: 2; opacity: .6; }
.ph .shot { display: block; width: 100%; height: 100%; object-fit: cover; background: inherit; }
.ph .frame { contain: paint; }
.ph .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 10px 16px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--paper); font: 700 14px/1 var(--sans); font-style: normal; box-shadow: 0 2px 0 var(--ink); transition: background .15s, color .15s; }
.ph .more .ic { width: 16px; height: 16px; vertical-align: 0; }
.ph:hover .more, .ph:focus-visible .more { background: var(--brand); border-color: var(--brand-d); color: #fff; box-shadow: 0 2px 0 var(--brand-d); }
.ph b { display: block; font-size: 17px; } .ph span { color: var(--mute); font-size: 14px; display: block; padding: 0 6px; }
@media (min-width: 860px) { .phones { justify-content: center; overflow: visible; gap: 36px; --pw: 250px; --fh: 500px; } }
.ph:nth-child(1) .frame { background: #faf9f6; } .ph:nth-child(2) .frame { background: #fff; } .ph:nth-child(3) .frame { background: #1c1917; }

/* nút chuyển menu (điện thoại): mũi tên + chấm; ẩn trên máy tính vì 3 điện thoại nằm cạnh nhau */
.phones { position: relative; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 4px; }
.pager .pg { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; box-shadow: 0 2px 0 var(--ink); }
.pager .pg:active { transform: translateY(2px); box-shadow: none; }
.pager .pg:disabled { opacity: .35; cursor: default; box-shadow: none; }
.pager .pg .ic { width: 22px; height: 22px; vertical-align: 0; }
.pager .dots { display: flex; gap: 10px; }
.pager .dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 0; background: #cdbfa7; cursor: pointer; transition: transform .15s, background .15s; }
.pager .dots button.on { background: var(--brand); transform: scale(1.35); }
.phones.drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (min-width: 860px) { .pager { display: none; } }

/* form đăng ký: chọn kiểu menu bằng ảnh menu thật, ngân hàng gập lại */
.signup .themes.pick { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.signup .theme { padding: 6px; border-radius: 12px; text-align: center; position: relative; }
.signup .theme img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 6px; }
.signup .theme b { font-size: 13px; } .signup .theme span { display: block; font-size: 11px; line-height: 1.3; }
.signup .theme.on::after { content: ''; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
details.bank { border: 1px dashed #b9ad98; border-radius: 10px; padding: 0 12px; background: #fffaf0; }
details.bank summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; }
details.bank summary::-webkit-details-marker { display: none; }
details.bank summary::before { content: '+ '; color: var(--brand); font-weight: 800; }
details.bank[open] summary::before { content: '– '; }
details.bank[open] { padding-bottom: 12px; }
/* bản đồ Leaflet không được đè lên thanh đầu trang khi cuộn */
#map { position: relative; z-index: 0; isolation: isolate; }
.lp .nav { z-index: 2000; }

/* nút tạo menu mờ đi cho tới khi khách tích đồng ý điều khoản (vẫn bấm được để nhận lời nhắc) */
.lp .btn.primary.is-off { background: #cbbfa9; border-color: #b3a68e; box-shadow: 0 3px 0 #b3a68e; color: #fff; cursor: not-allowed; }
.lp .btn.primary.is-off:hover { background: #cbbfa9; }
.help.center { text-align: center; }
label.agree { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; }
label.agree input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
label.agree.shake { border-color: var(--brand); background: var(--brand-l); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { label.agree.shake { animation: none; } }
