﻿/* NSM Sổ — landing page styles. Self-hosted fonts, no external requests. */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #52627a;
  --soft: #f6f8fb;
  --line: #e4e9f2;
  --white: #ffffff;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-soft: #fff7e6;
  --blue: #2563eb;
  --purple: #7c3aed;
  --green: #10b981;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 14px; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.nav-inner img { height: 40px; width: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { height: 36px !important; width: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.brand-text small { font-size: 10.5px; color: var(--muted); font-weight: 500; }
@media (max-width: 420px) { .brand-text small { display: none; } }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a { color: inherit; }
.nav-links a:hover { color: var(--amber-dark); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #2a1c00; box-shadow: 0 10px 24px rgba(245, 158, 11, .28); }
.btn-primary:hover { background: #ffae1f; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hero { padding: 66px 0 30px; background:
  radial-gradient(900px 420px at 82% -8%, rgba(245, 158, 11, .16), transparent 60%),
  radial-gradient(760px 380px at 8% 4%, rgba(37, 99, 235, .10), transparent 62%),
  var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 46px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px;
  background: var(--amber-soft); color: #8a5a00; border: 1px solid #ffe4b0;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(92deg, var(--amber-dark), #ea580c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 17.5px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.play-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 16px 8px 12px; }
.play-badge:hover { text-decoration: none; background: #182338; }
.play-badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.play-badge small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; line-height: 1; }
.play-badge strong { display: block; font-size: 15px; line-height: 1.25; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 18px 0 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; color: var(--green); flex: 0 0 auto; }

/* phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; border-radius: 38px; background: #0b1220; padding: 12px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, .28), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: rotate(-2.2deg);
}
.phone-screen { background: #f8fafc; border-radius: 28px; overflow: hidden; min-height: 520px; }
.app-top { background: #0f172a; color: #fff; padding: 16px 16px 18px; }
.app-top small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.app-top strong { font-size: 16px; font-weight: 600; }
.app-body { padding: 14px; }
.scan-box { position: relative; border-radius: 14px; background: linear-gradient(180deg, #eef2ff, #e0e7ff); border: 1px dashed #b6c2e2; height: 128px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.scan-box .receipt { width: 92px; background: #fff; border-radius: 4px; padding: 8px 7px; box-shadow: 0 10px 24px rgba(30, 41, 59, .14); }
.receipt i { display: block; height: 4px; border-radius: 2px; background: #dbe3f0; margin-bottom: 5px; }
.receipt i:nth-child(2) { width: 74%; }
.receipt i:nth-child(3) { width: 88%; }
.receipt i:nth-child(4) { width: 55%; }
.scan-line { position: absolute; left: 18px; right: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #f59e0b, transparent); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 26px; opacity: .35; } 50% { top: 96px; opacity: 1; } }
.field { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 9px 10px; border: 1px solid #e5eaf3; border-radius: 10px; background: #fff; margin-bottom: 7px; }
.field span { color: #64748b; }
.field b { font-weight: 600; color: #0f172a; font-size: 12.5px; }
.field.total b { color: #b45309; font-size: 14px; }
.app-btn { margin-top: 10px; background: var(--amber); color: #2a1c00; text-align: center; font-weight: 700; font-size: 13px; padding: 11px; border-radius: 12px; }
.float-card {
  position: absolute; right: -18px; top: 132px; background: #fff; border-radius: 14px;
  padding: 12px 15px; box-shadow: 0 22px 44px rgba(15, 23, 42, .18); border: 1px solid var(--line);
  font-size: 12px; min-width: 168px;
}
.float-card b { display: block; font-size: 18px; color: var(--ink); }
.float-card small { color: var(--muted); }
.float-card .up { color: var(--green); font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 74px 0; }
.section-head { max-width: 660px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }

.features { background: var(--soft); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--amber-soft); color: var(--amber-dark); }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 16.5px; margin-bottom: 6px; }
.card p { font-size: 13.7px; color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding-left: 58px; }
.step .num { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 13.7px; color: var(--muted); margin: 0; }

.screens { background: var(--ink); color: #fff; }
.screens .section-head h2 { color: #fff; }
.screens .section-head p { color: #b9c3d6; }
.screen-row { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.mini { width: 232px; border-radius: 26px; background: #0b1220; padding: 9px; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.mini-screen { background: #f8fafc; border-radius: 19px; min-height: 380px; overflow: hidden; }
.mini-top { background: #0f172a; color: #fff; padding: 12px 13px; font-size: 11.5px; font-weight: 600; }
.mini-body { padding: 11px; }
.mini-row { display: flex; justify-content: space-between; font-size: 10.5px; background: #fff; border: 1px solid #e6ebf4; border-radius: 9px; padding: 8px 9px; margin-bottom: 6px; }
.mini-row .cat { color: #64748b; }
.mini-row b { font-weight: 600; }
.mini-row b.out { color: #dc2626; }
.mini-row b.in { color: #059669; }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 92px; background: #fff; border: 1px solid #e6ebf4; border-radius: 10px; padding: 10px; margin-top: 8px; }
.mini-chart i { flex: 1; background: linear-gradient(180deg, #fbbf24, #f59e0b); border-radius: 4px 4px 2px 2px; }
.mini-total { background: #fff; border: 1px solid #e6ebf4; border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.mini-total small { color: #64748b; font-size: 10px; display: block; }
.mini-total b { font-size: 16px; }

.pricing { background: var(--soft); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--amber); box-shadow: 0 24px 60px rgba(245, 158, 11, .18); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--amber); color: #2a1c00; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 17px; margin-bottom: 2px; }
.plan .sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.plan .amount { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.plan .amount small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; font-size: 13.8px; flex: 1; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: var(--ink-2); }
.plan li::before { content: ''; position: absolute; left: 0; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan li.off { color: #94a3b8; }
.plan li.off::before { border-color: #cbd5e1; }
.price-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 18px; }

.faq-grid { max-width: 840px; margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; background: #fff; }
details summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--amber-dark); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { font-size: 14px; color: var(--muted); padding: 0 0 14px; margin: 0; }

.eco { background: var(--soft); }
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eco-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.eco-card .eco-kicker { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-dark); font-weight: 700; }
.eco-card h3 { font-size: 15.5px; margin: 8px 0 6px; }
.eco-card p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.eco-card a { font-size: 13px; font-weight: 600; }

.final-cta { padding: 30px 0 80px; }
.final-box {
  background: linear-gradient(100deg, #0f172a, #1e293b 60%, #312e81);
  border-radius: 26px; padding: 52px 40px; color: #fff; text-align: center;
  box-shadow: 0 30px 70px rgba(15, 23, 42, .28);
}
.final-box h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.final-box p { color: #c7d2e5; max-width: 560px; margin: 0 auto 24px; }
.final-box .hero-actions { justify-content: center; }

footer { background: var(--ink); color: #c7d2e5; padding: 52px 0 26px; font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 34px; }
footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
footer a { color: #c7d2e5; }
footer a:hover { color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: 12.3px; color: #94a3b8; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-logo { background: #fff; border-radius: 10px; padding: 6px 10px; display: inline-block; margin-bottom: 12px; }
.foot-logo img { height: 30px; }

/* ---------- legal pages ---------- */
.legal { padding: 48px 0 80px; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal h3 { font-size: 16.5px; margin-top: 22px; }
.legal p, .legal li { font-size: 14.6px; color: #334155; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .note { background: var(--amber-soft); border: 1px solid #ffe4b0; border-radius: 12px; padding: 14px 18px; font-size: 13.8px; }
.back { display: inline-block; margin-bottom: 24px; font-size: 13.5px; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-wrap { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps, .price-grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .float-card { display: none; }
  section { padding: 52px 0; }
  .grid-4, .eco-grid { grid-template-columns: 1fr; }
  .phone { width: 268px; }
  .final-box { padding: 36px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
}


