/* font.laziapp.vn — trang của app LaziFont.
   Nhận diện theo bộ ảnh App Store (lazifont/design/appstore/chung/common.css): đen than #231f20 và giấy trắng ấm,
   tiêu đề Playfair Display có dòng nhấn nghiêng gạch đôi, chữ Be Vietnam Pro. Không màu nhấn.
   Không chữ / mã nội tuyến (CSP của vhost chỉ cho 'self'): mọi kiểu nằm ở tệp này, mọi script ở site.js. */

@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: italic; font-weight: 400; font-display: swap; src: url("/fonts/be-vietnam-pro-400-italic.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: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/playfair-display-600.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap; src: url("/fonts/playfair-display-600-italic.woff2") format("woff2"); }

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #fffdf8;
  --ink: #1b1819;
  --ink-2: #5a5450;
  --ink-3: #857e78;
  --night: #221f20;
  --night-deep: #1a1718;
  --cream: #f7f3eb;
  --cream-2: rgba(247, 243, 235, .74);
  --line: rgba(27, 24, 25, .12);
  --line-ink: rgba(247, 243, 235, .16);
  --sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gut: 24px;
  --shot-w: min(1040px, calc(100vw - 48px));
  color-scheme: light;
}
@media (max-width: 600px) { :root { --gut: 16px; --shot-w: calc(100vw - 40px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--card); color: var(--ink); }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───── chữ ───── */
.h1, .h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
.h1 { font-size: clamp(42px, 7.4vw, 80px); line-height: 1.1; }
.h2 { font-size: clamp(32px, 4.8vw, 54px); line-height: 1.14; }
.h1 em, .h2 em {
  font-style: italic; font-weight: 600;
  /* gạch đôi của biểu tượng app */
  background:
    linear-gradient(currentColor, currentColor) 0 calc(100% - .06em) / 100% .03em no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% .03em no-repeat;
  padding-bottom: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--ink-2); font-weight: 500; text-wrap: pretty; }
.kick {
  display: inline-flex; align-items: center; gap: .8em;
  font: 600 12.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.kick::before, .kick::after { content: ""; width: 2.4em; height: 1.5px; background: currentColor; opacity: .55; }
.kick.left::before { display: none; }

/* ───── nền mực ───── */
.ink { position: relative; color: var(--cream); background: var(--night); isolation: isolate; }
.ink .lead { color: var(--cream-2); }
.ink .kick { color: rgba(247, 243, 235, .7); }
.ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 246, 232, .10) 0%, rgba(255, 246, 232, 0) 70%),
    linear-gradient(180deg, #2b2728 0%, #221f20 55%, var(--night-deep) 100%);
}
/* chữ Việt cỡ lớn làm hoạ tiết nền */
.deco {
  position: absolute; z-index: -1; pointer-events: none; user-select: none; white-space: nowrap; line-height: 1;
  font: italic 600 clamp(360px, 52vw, 760px)/1 var(--serif); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 248, 236, .085);
}

/* ───── đầu trang ───── */
.top { position: relative; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 34px; height: 34px; display: block; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.nav .lang:hover { text-decoration: none; border-color: currentColor; }
.ink .nav a { color: var(--cream-2); }
.ink .nav a:hover, .ink .nav a[aria-current="page"] { color: var(--cream); }
.ink .nav .lang { border-color: var(--line-ink); }
.nav .short { display: none; }
@media (max-width: 640px) { .nav .opt { display: none; } .nav { gap: 16px; font-size: 14.5px; } }
@media (max-width: 400px) { .nav .long { display: none; } .nav .short { display: inline; } .brand { font-size: 17px; } }

/* ───── nhãn "Sắp ra mắt" ───── */
.soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(40, 30, 24, .12), 0 10px 26px -14px rgba(30, 20, 14, .45);
}
.soon .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); flex: none; position: relative; }
.soon .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .6; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .soon .dot::after { animation: none; } }

/* ───── trang chủ: mở đầu ───── */
.hero { overflow: hidden; padding-bottom: 72px; }
.hero .deco { right: -.06em; top: -.2em; }
.hero-in { text-align: center; padding-top: clamp(28px, 6vw, 72px); }
.hero-icon { display: block; width: 104px; height: 104px; margin: 0 auto 26px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.hero .kick { margin-bottom: 18px; }
.hero .h1 { max-width: 15ch; margin: 0 auto; }
.hero .lead { max-width: 640px; margin: 30px auto 0; }
.hero-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.req { font-size: 14px; color: var(--cream-2); }
@media (max-width: 600px) {
  .kick { gap: .6em; font-size: 11.5px; letter-spacing: .14em; white-space: nowrap; }
  .kick::before, .kick::after { width: 1.4em; }
  .hero { padding-bottom: 44px; }
  .hero-in { padding-top: 22px; }
  .hero-icon { width: 76px; height: 76px; margin-bottom: 20px; }
  .hero .lead { margin-top: 24px; }
  .hero-cta { margin-top: 26px; gap: 12px; }
  .soon { font-size: 14.5px; }
}

/* ───── ảnh chụp: dải trượt ───── */
.shots { position: relative; background: linear-gradient(180deg, var(--night-deep) 0, var(--night-deep) 38%, var(--paper) 38%); padding-bottom: 8px; }
.track {
  --gap: clamp(14px, 2.4vw, 28px);
  display: flex; gap: var(--gap); margin: 0; padding: 4px 0 30px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.track::before, .track::after { content: ""; flex: 0 0 max(0px, calc((100% - var(--shot-w)) / 2 - var(--gap))); }
.shot { flex: 0 0 var(--shot-w); scroll-snap-align: center; }
.shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: clamp(10px, 1.4vw, 18px);
  background: var(--paper-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 28px 50px -22px rgba(20, 14, 10, .55), 0 6px 14px -6px rgba(20, 14, 10, .2);
}
.gal-ctl { display: flex; align-items: center; justify-content: center; gap: 18px; padding-bottom: 8px; }
.gal-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(30, 20, 14, .5);
  transition: transform .15s ease, opacity .15s ease;
}
.gal-btn:hover { transform: translateY(-1px); }
.gal-btn:disabled { opacity: .35; cursor: default; transform: none; }
.gal-btn svg { width: 20px; height: 20px; }
.gal-count { min-width: 64px; text-align: center; font: 600 14px var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gallery:not(.is-ready) .gal-btn { visibility: hidden; }
.gal-hint { text-align: center; font-size: 13.5px; color: var(--ink-3); padding: 0 var(--gut) 8px; }

/* ───── con số kèm vòng nguyệt quế ───── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 12px; padding-top: 48px; padding-bottom: 8px; margin-top: 0; margin-bottom: 0; list-style: none; }
.stat { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); text-align: center; }
.stat::before, .stat::after {
  content: ""; flex: none; width: 24px; height: 42px; background: currentColor; opacity: .9;
  -webkit-mask: url("/assets/laurel.svg") center / contain no-repeat; mask: url("/assets/laurel.svg") center / contain no-repeat;
}
.stat::after { transform: scaleX(-1); }
.stat b { display: block; font: 600 30px/1.05 var(--serif); letter-spacing: -.01em; }
.stat span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); font-weight: 500; margin-top: 4px; max-width: 12em; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat > div { min-width: 0; }
@media (max-width: 420px) {
  .stats { gap: 18px 6px; }
  .stat { gap: 2px; }
  .stat::before, .stat::after { width: 17px; height: 30px; }
  .stat b { font-size: 25px; }
  .stat span { font-size: 12px; }
}

/* ───── tính năng ───── */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.sec-head .kick { margin-bottom: 16px; }
.sec-head .lead { margin-top: 26px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feat {
  background: var(--card); border-radius: 20px; padding: 26px 26px 28px;
  box-shadow: 0 0 0 1px rgba(40, 30, 24, .08), 0 18px 34px -26px rgba(30, 20, 14, .45);
}
.feat h3 { font: 600 23px/1.2 var(--serif); margin: 18px 0 10px; }
.feat p { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }
.ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--night); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}
.ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.txt { font: italic 600 25px/1 var(--serif); padding-bottom: 2px; }
.note { max-width: 760px; margin: 34px auto 0; text-align: center; font-size: 14.5px; color: var(--ink-3); }

/* ───── riêng tư ───── */
.private { overflow: hidden; }
.private .deco { left: -.08em; bottom: -.32em; }
.private .sec-head { max-width: 820px; }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; max-width: 980px; margin: 0 auto; }
@media (max-width: 720px) { .promises { grid-template-columns: 1fr; } }
.promise {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 18px;
  background: rgba(255, 250, 242, .05); box-shadow: inset 0 0 0 1px var(--line-ink);
}
.promise .ic { background: var(--cream); color: var(--night); box-shadow: none; }
.promise h3 { font: 600 20px/1.25 var(--serif); }
.promise p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--cream-2); }
.more { text-align: center; margin-top: 36px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.arrow-link::after { content: "→"; font-family: -apple-system, "Segoe UI", sans-serif; transition: transform .15s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ───── kết ───── */
.closing { text-align: center; }
.closing .hero-icon { width: 88px; height: 88px; filter: drop-shadow(0 14px 22px rgba(30, 20, 14, .35)); margin-bottom: 22px; }
.closing .lead { max-width: 600px; margin: 26px auto 0; }
.closing .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; }
.closing .soon { background: var(--night); color: var(--cream); box-shadow: none; }
.closing .soon .dot { background: var(--cream); }
.closing .soon .dot::after { border-color: var(--cream); }

/* ───── trang chữ: quyền riêng tư, hỗ trợ ───── */
.page-head { padding: clamp(32px, 6vw, 64px) 0 0; text-align: center; }
.page-head .kick { margin-bottom: 16px; }
.page-head .alt { margin-top: 14px; font: italic 600 clamp(20px, 2.6vw, 26px)/1.3 var(--serif); color: var(--ink-2); }
.page-head .soon { margin-top: 26px; }
.langs { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.langs a { text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.langs a:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.summary {
  max-width: 720px; margin: 36px auto 0; padding: 22px 26px; border-radius: 18px; background: var(--night); color: var(--cream);
  display: flex; gap: 18px; align-items: center;
}
.summary .ic { background: var(--cream); color: var(--night); }
.summary p { font-size: 16.5px; line-height: 1.5; }
.summary p + p { margin-top: 4px; color: var(--cream-2); }
.doc { max-width: 720px; margin: 0 auto; padding: clamp(44px, 7vw, 72px) 0 0; }
.doc + .doc { padding-top: 0; }
.doc h2 { font: 600 clamp(28px, 3.6vw, 36px)/1.2 var(--serif); letter-spacing: -.01em; }
.doc .eff { margin-top: 8px; font-size: 14.5px; color: var(--ink-3); font-weight: 500; }
.doc p { margin-top: 18px; text-wrap: pretty; }
.doc h2 + p, .doc .eff + p { margin-top: 22px; }
.doc ul { margin: 12px 0 0; padding-left: 1.3em; }
.doc li { margin-top: 8px; padding-left: .2em; }
.doc li::marker { color: var(--ink-3); }
.doc h3 { font: 600 21px/1.3 var(--serif); margin-top: 34px; }
.doc .faq { border-top: 1px solid var(--line); margin-top: 16px; }
.doc .faq h4 { font: italic 600 19px/1.35 var(--serif); margin-top: 26px; }
.doc .faq h4 + p { margin-top: 6px; }
.doc code { font: 500 .86em var(--mono); background: rgba(27, 24, 25, .065); padding: .12em .38em; border-radius: 6px; overflow-wrap: anywhere; }
.doc strong { font-weight: 700; }
.divider { max-width: 720px; margin: clamp(56px, 8vw, 84px) auto 0; height: 7px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); opacity: .85; }
.divider + .doc { padding-top: clamp(40px, 6vw, 60px); }
.contact {
  max-width: 720px; margin: 36px auto 0; padding: 24px 26px; border-radius: 18px; background: var(--card);
  box-shadow: 0 0 0 1px rgba(40, 30, 24, .08), 0 18px 34px -26px rgba(30, 20, 14, .45);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.contact .txt { flex: 1 1 260px; }
.contact h2 { font: 600 21px/1.3 var(--serif); }
.contact p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 999px; background: var(--night); color: var(--cream); font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(30, 20, 14, .7); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-top { text-align: center; margin-top: 48px; font-size: 14.5px; }

/* ───── 404 ───── */
body.ink > .deco { position: fixed; right: -.08em; bottom: -.28em; }
.ink .btn, .btn-cream { background: var(--cream); color: var(--night); }
.nf { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: grid; place-items: center; text-align: center; padding-top: 40px; padding-bottom: 80px; }
.nf .code { font: italic 600 clamp(110px, 22vw, 200px)/1 var(--serif); letter-spacing: -.03em; }
.nf .h2 { margin-top: 8px; }
.nf .lead { max-width: 560px; margin: 16px auto 0; }
.nf .actions { margin-top: 30px; display: flex; gap: 12px 20px; flex-wrap: wrap; justify-content: center; align-items: center; }

/* ───── chân trang ───── */
.foot { margin-top: clamp(80px, 10vw, 120px); padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.page-home .foot { margin-top: 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot .brand { color: var(--ink); font-size: 16px; }
.foot .brand img { width: 28px; height: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot .legal { flex: 1 1 100%; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.foot .legal + .legal { margin-top: -8px; }
@media (max-width: 640px) { .foot nav { margin-left: 0; flex: 1 1 100%; } }
