/* Trang chủ giới thiệu sản phẩm */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: #fff; font-size: 16px; }
/* các khối bay vào từ trái/phải không được làm trang rộng ra (không dùng hidden vì sẽ hỏng thanh trên dính) */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { .sec, .stats, .hero { overflow-x: hidden; } }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.small { font-size: 13px; }
.ic { width: 18px; height: 18px; }
a { text-decoration: none; }

.logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }

/* ---------- thanh trên ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .04); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.top-nav { display: flex; gap: 26px; margin-left: 18px; }
.top-nav a { color: var(--text); font-weight: 500; font-size: 15px; opacity: .8; }
.top-nav a:hover { opacity: 1; color: var(--brand); }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.login-link { color: var(--text); font-weight: 600; font-size: 15px; }
.login-link:hover { color: var(--brand); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px;
  background: radial-gradient(900px 500px at 85% 10%, var(--brand-soft), transparent 70%),
              radial-gradient(700px 400px at 0% 100%, #fff7ef, transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-dark); font-weight: 600; font-size: 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin: 18px 0 18px; }
.hl { color: var(--brand); }
.lead { font-size: 18px; color: #4d4540; max-width: 560px; margin: 0 0 28px; line-height: 1.6; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btns .btn { padding: 0 24px; border-radius: 12px; }
.btn-primary.btn-lg { box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-ghost-dark { background: #fff; border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--text); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 22px; flex-wrap: wrap; color: #4d4540; font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); }

/* điện thoại minh họa */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone { width: 300px; background: #faf8f6; border: 10px solid #1f1a17; border-radius: 42px; padding: 34px 14px 16px;
  box-shadow: 0 40px 80px -20px rgba(31, 26, 23, .35); position: relative; --rot: 2deg; transform: rotate(var(--rot)); }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 12px; background: #1f1a17; }
.ph-head { display: flex; gap: 10px; align-items: center; background: var(--brand); color: #fff; border-radius: 16px; padding: 12px; }
.ph-head b { display: block; font-size: 14px; }
.ph-head small { opacity: .85; font-size: 12px; }
.ph-logo { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.ph-actions span { background: #fff; border-radius: 12px; padding: 9px 6px; font-size: 12px; font-weight: 600; text-align: center; box-shadow: var(--shadow); }
.ph-cats { display: flex; gap: 6px; margin-bottom: 8px; }
.ph-cats span { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.ph-cats .on { background: var(--text); color: #fff; border-color: var(--text); }
.ph-dish { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px; margin-bottom: 7px; box-shadow: var(--shadow); }
.ph-dish i { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.ph-dish div { flex: 1; min-width: 0; }
.ph-dish b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-dish small { font-size: 12px; color: var(--brand); font-weight: 700; }
.ph-dish em { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); font-style: normal; font-size: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.ph-dish em.tick { background: var(--brand); border-color: var(--brand); }
.ph-cart { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; margin-top: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.ph-cart small { display: block; font-size: 11px; color: var(--muted); }
.ph-cart b { font-size: 16px; }
.ph-cart span { background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 10px; }
.float { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 16px 40px -8px rgba(31, 26, 23, .22); font-size: 14px; animation: bob 4s ease-in-out infinite; }
.float b { display: block; white-space: nowrap; }
.float small { color: var(--muted); font-size: 12.5px; }
.float.f1 { left: calc(50% - 250px); top: 120px; }
.float.f2 { right: calc(50% - 250px); bottom: 80px; animation-delay: -2s; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px var(--ok-soft); background: var(--ok); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* ---------- số liệu nhanh ---------- */
/* dải 4 lợi ích: biểu tượng + số lớn + một dòng ngắn, ngăn cách bằng vạch mờ */
.stats { background: var(--text); color: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 20px; }
.stat { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 16px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat-ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #ffb48a;
  background: rgba(255, 180, 138, .12); box-shadow: inset 0 0 0 1px rgba(255, 180, 138, .22); }
.stat-ic svg { width: 24px; height: 24px; }
.stat b { display: block; font-size: 24px; font-weight: 800; color: #ffb48a; line-height: 1.15; letter-spacing: -.01em; }
.stat small { display: block; font-size: 14px; color: rgba(255, 255, 255, .72); white-space: nowrap; }

/* ---------- khối nội dung ---------- */
.sec { padding: 88px 0; }
.sec.alt { background: var(--bg); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.kicker { display: inline-block; color: var(--brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.kicker.light { color: #ffb48a; }
.sec-head h2, .signup h2 { font-size: clamp(27px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 12px 0 0; }

.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pain { padding: 24px; border: 1px solid var(--line); box-shadow: none; }
.pain-q { font-weight: 700; font-size: 17px; display: flex; gap: 10px; align-items: flex-start; }
.pain-q::before { content: '✕'; color: var(--danger); background: var(--danger-soft); width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 13px; }
.pain-a { color: #4d4540; margin-top: 12px; padding-left: 36px; position: relative; line-height: 1.6; }
.pain-a::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--ok); background: var(--ok-soft); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 28px 24px; position: relative; }
.step-no { position: absolute; top: 18px; right: 22px; font-size: 44px; font-weight: 800; color: var(--line); line-height: 1; }
.step-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.step-ic svg { width: 26px; height: 26px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: #4d4540; margin: 0; line-height: 1.6; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .15s, transform .15s, box-shadow .15s; }
.feat:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.feat-ic { font-size: 26px; width: 48px; height: 48px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; margin-bottom: 14px; }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.55; }

.fit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fit { padding: 24px 20px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.fit span { font-size: 38px; margin-bottom: 6px; }
.fit b { font-size: 16.5px; }
.fit small { color: var(--muted); font-size: 14px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { padding: 28px 24px; border: 1px solid var(--line); box-shadow: none; display: flex; flex-direction: column; position: relative; }
.price.hot { border: 2px solid var(--brand); box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--brand) 45%, transparent); }
.price-tag { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price h3 { font-size: 18px; }
.price-val { font-size: 30px; font-weight: 800; margin: 10px 0 4px; letter-spacing: -.02em; }
.price .muted { margin: 0 0 18px; font-size: 15px; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price li { padding: 7px 0 7px 28px; position: relative; font-size: 15px; }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

.price-dots { display: none; justify-content: center; gap: 8px; margin-top: 14px; }
.price-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.price-dots button.on { width: 22px; background: var(--brand); }

.faq details { background: #fff; border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: #4d4540; line-height: 1.6; }

/* ---------- form đăng ký ---------- */
.signup { background: linear-gradient(135deg, #2a201b, #1f1a17 60%); color: #fff; }
.signup-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.signup-text p { opacity: .8; font-size: 17px; line-height: 1.6; margin: 14px 0 22px; }
.signup-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16px; }
.signup-form { padding: 28px; color: var(--text); }
/* ô chọn loại quán: bỏ kiểu mặc định của iPhone/Android cho giống các ô nhập khác */
.signup-form select.input { -webkit-appearance: none; appearance: none; height: 44px; padding-right: 40px; cursor: pointer; color: var(--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a716b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.signup-form select.input:has(option[value=""]:checked) { color: #a8a09a; }
.signup-form select.input option { color: var(--text); }
.signup-form .input::placeholder { color: #a8a09a; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: 10px; margin: 0 0 12px; font-size: 14px; }
.form-note { text-align: center; margin: 12px 0 0; }
.done { text-align: center; padding: 48px 28px; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.done-ic svg { width: 32px; height: 32px; }
.done h3 { font-size: 22px; }
.done p { margin: 8px 0 20px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-in > :last-child { margin-left: auto; font-weight: 600; }

.mobile-cta { display: none; }

/* ---------- máy tính bảng: điện thoại minh họa lên trên chữ ---------- */
@media (max-width: 960px) {
  .top-nav { display: none; }
  .hero-in, .signup-in { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 64px; }
  .hero-in { gap: 32px; }
  .hero-art { order: -1; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-in { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stat { justify-content: flex-start; }
  .stat:nth-child(odd) { border-left: 0; }
  .steps, .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .price.hot { order: -1; }
}

/* ---------- điện thoại ---------- */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 60px; gap: 12px; }
  .brand { font-size: 17px; }
  .top-cta .btn { display: none; }
  .login-link { font-size: 14px; }
  .hero { padding: 24px 0 48px; }
  .hero-in { gap: 26px; }
  .hero h1 { margin: 14px 0; }
  .lead { font-size: 16.5px; }
  .hero-btns .btn { flex: 1 1 100%; }
  .hero-points { gap: 10px 18px; font-size: 14.5px; }
  .phone { width: 260px; --rot: 0deg; }
  .float { padding: 10px 12px; font-size: 13px; }
  .float.f1 { left: 0; top: 110px; }
  .float.f2 { right: 0; bottom: 40px; }
  .sec { padding: 60px 0; }
  .sec-head { margin-bottom: 30px; }
  .sec-head p { font-size: 16px; }
  .pain-grid { grid-template-columns: 1fr; }
  /* tính năng 2 cột, thẻ gọn lại cho đỡ trống */
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feat { padding: 14px 13px; }
  .feat-ic { width: 38px; height: 38px; font-size: 20px; border-radius: 10px; margin-bottom: 10px; }
  .feat h3 { font-size: 14.5px; margin-bottom: 4px; }
  .feat p { font-size: 13px; line-height: 1.45; }
  /* bảng giá thành slide kéo ngang, gói tháng nằm giữa, thấy mép hai gói bên cạnh */
  .price-grid { position: relative; display: flex; max-width: none; gap: 14px; margin: 0 -16px; padding: 16px 16px 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .price-grid::-webkit-scrollbar { display: none; }
  .price { flex: 0 0 80%; scroll-snap-align: center; }
  .price.hot { order: 0; }
  .price-dots { display: flex; }
  .fit-grid { gap: 10px; }
  .fit { padding: 18px 12px; }
  .stats-in { padding: 22px 12px; row-gap: 18px; }
  .stat { gap: 10px; padding: 2px 8px; }
  .stat-ic { width: 38px; height: 38px; border-radius: 11px; }
  .stat-ic svg { width: 20px; height: 20px; }
  .stat b { font-size: 19px; }
  .stat small { font-size: 12.5px; white-space: normal; }
  .row2 { grid-template-columns: 1fr; }
  .signup-form { padding: 20px; }
  .foot-in > :last-child { margin-left: 0; }
  /* nút tư vấn nhỏ nổi góc phải dưới */
  .mobile-cta { display: inline-flex; align-items: center; gap: 7px; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
    background: var(--brand); color: #fff; font-weight: 700; font-size: 14.5px; padding: 11px 16px; border-radius: 999px;
    box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--brand) 60%, transparent); transition: transform .3s, opacity .3s; }
  .mobile-cta svg { width: 18px; height: 18px; }
  .mobile-cta::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--brand); animation: ring 2.4s ease-out infinite; }
  .mobile-cta.away { transform: translateY(160%) scale(.8); opacity: 0; pointer-events: none; }
}

/* ================= hiệu ứng chuyển động ================= */
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotate(calc(var(--rot) + 6deg)) scale(.94); } to { opacity: 1; transform: rotate(var(--rot)); } }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(10px); } 70% { transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes tickIn { from { transform: scale(0); } 60% { transform: scale(1.25); } to { transform: none; } }
@keyframes shine { to { background-position: 200% center; } }

/* mở trang: chữ hiện lần lượt, điện thoại trồi lên, món ăn xếp vào, thẻ thông báo bật ra */
.hero-text > * { animation: up .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(1) { animation-delay: .05s; }
.hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-text > :nth-child(3) { animation-delay: .27s; }
.hero-text > :nth-child(4) { animation-delay: .39s; }
.hero-text > :nth-child(5) { animation-delay: .5s; }
.hl { background: linear-gradient(90deg, var(--brand), #ff8a4c, var(--brand)) 0 center / 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4s linear 1.2s infinite; }
.hero-art .phone { animation: phoneIn 1s cubic-bezier(.2, .7, .2, 1) .2s both; }
.ph-head, .ph-actions, .ph-cats, .ph-dish, .ph-cart { animation: up .55s cubic-bezier(.2, .7, .2, 1) both; }
.ph-head { animation-delay: .55s; } .ph-actions { animation-delay: .65s; } .ph-cats { animation-delay: .72s; }
.ph-dish:nth-of-type(5) { animation-delay: .8s; } .ph-dish:nth-of-type(6) { animation-delay: .88s; }
.ph-dish:nth-of-type(7) { animation-delay: .96s; } .ph-dish:nth-of-type(8) { animation-delay: 1.04s; }
.ph-cart { animation-delay: 1.15s; }
.ph-dish em.tick { animation: tickIn .4s ease-out 1.3s both; }
.float.f1 { animation: pop .55s cubic-bezier(.2, .7, .2, 1) 1.35s both, bob 4s ease-in-out 1.9s infinite; }
.float.f2 { animation: pop .55s cubic-bezier(.2, .7, .2, 1) 1.65s both, bob 4s ease-in-out 2.2s infinite; }

/* cuộn tới đâu hiện tới đó (cuộn ra khỏi màn hình thì ẩn lại để lần sau vuốt lại vẫn thấy hiệu ứng) */
.rv { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.rv-left { transform: translateX(-40px); }
.rv.rv-right { transform: translateX(40px); }
.rv.rv-zoom { transform: scale(.9) translateY(20px); }
.rv.in { opacity: 1; transform: none; }
.rv.in:hover { transition-delay: 0s; }
.feat.rv.in:hover { transform: translateY(-4px); }
.price:hover, .fit.rv.in:hover, .steps li.rv.in:hover { transform: translateY(-4px); transition-delay: 0s; }
.fit, .steps li, .price { transition: transform .2s; }
.step-ic, .feat-ic { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.steps li:hover .step-ic, .feat:hover .feat-ic { transform: rotate(-8deg) scale(1.1); }
.stat.rv .stat-ic { transition: transform .6s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 90ms + .2s); transform: scale(.4) rotate(-20deg); }
.stat.rv.in .stat-ic { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .hl { color: var(--brand); background: none; }
}
