/* FilMode Video Maker — videomaker.filmode.app
   Một file CSS duy nhất, không CDN, không webfont: trang phải sống được trên
   host tĩnh và load nhanh ở 3G VN.

   Bảng màu lấy ĐÚNG từ flavor videomaker của app
   (procut-android/app/src/videomaker/res/values/colors.xml). Ảnh chụp màn hình
   gửi Play và landing page phải cùng tông, nếu không reviewer thấy hai sản phẩm
   khác nhau. Đen + cam, thêm một lớp nền editorial rất nhẹ cho các vùng marketing.

   Tên class giữ nguyên như website/assets/site.css để sửa một bên còn dò được
   sang bên kia; phần nào ProCut có mà trang này không dùng thì đã bỏ hẳn chứ
   không để rule chết. */

:root {
  --bg:        #121114;
  --surface:   #1C1A20;
  --surface-2: #262129;
  --line:      #2C2731;
  --line-2:    #3D3743;
  --fg:        #F4F2F5;
  --muted:     #A6A0A8;
  --accent:    #FF7A45;
  --accent-2:  #FF9E70;
  /* Mực trên nền cam. Cam #FF7A45 đủ sáng để chữ trắng chỉ còn ~2.3:1 —
     phải dùng mực tối, giống app dùng procut_on_accent. */
  --ink:       #260A00;
  --ok:        #FF9E70;
  --warn:      #F5A524;
  /* Chữ phụ (meta, fine print). Không lấy xám tối hơn: #8F8896 là ngưỡng còn
     đạt 4.5:1 trên cả --bg lẫn --surface-2. */
  --dim:       #8F8896;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Bàn phím phải nhìn thấy được mình đang ở đâu — reviewer của store có test. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--ink); padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------------ header */

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 17, 20, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 66px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 19px; letter-spacing: -0.02em;
  color: var(--fg); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: #0A0806;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.brand .mark svg .p1 { fill: #FFFCF8; }
.brand .mark svg .p2 { fill: var(--accent); }

nav.top { margin-left: auto; display: flex; gap: 26px; align-items: center; }
nav.top a { color: var(--muted); font-size: 15px; font-weight: 500; }
nav.top a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 860px) { nav.top { display: none; } }

/* ------------------------------------------------------------------ button */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 650; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg); }

/* Nút cửa hàng: KHÔNG phải badge chính chủ. Khi app đã lên Play thì phải thay
   bằng đúng file "Get it on Google Play" của Google — xem README.md. */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 18px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 14px; color: var(--fg);
  transition: border-color .15s ease, background .15s ease;
}
.store-btn:hover { text-decoration: none; border-color: var(--accent); background: var(--surface-2); }
.store-btn small { display: block; font-size: 11px; letter-spacing: .07em; color: var(--muted); text-transform: uppercase; }
.store-btn strong { display: block; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.store-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.store-btn[aria-disabled="true"]:hover { transform: none; border-color: var(--line-2); background: var(--surface); }

/* -------------------------------------------------------------------- hero */

.hero { padding: 86px 0 54px; position: relative; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 11ch; }
.hero-copy .lede { max-width: 51ch; }
.hero-visual {
  min-height: 680px; position: relative; display: grid; place-items: center;
  isolation: isolate;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 3% -16% 2% -12%; z-index: -2;
  background: url("filmode-marketing-bg.png") center / cover no-repeat;
  opacity: .9; border-radius: 42px;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 86%, transparent 100%);
}
.hero-visual::after {
  content: ""; position: absolute; inset: 9% 4% 3%; z-index: -1;
  background: rgba(18, 17, 20, .34); border: 1px solid rgba(255,255,255,.1);
  border-radius: 38px; transform: rotate(3deg);
}
.hero-device {
  width: min(328px, 70%); position: relative; padding: 12px 12px 15px;
  background: #17151D; border: 1px solid rgba(255,255,255,.24);
  border-radius: 34px; box-shadow: 20px 36px 80px rgba(0,0,0,.5), 0 0 0 10px rgba(255,255,255,.035);
  transform: rotate(3deg); z-index: 2;
}
.hero-device::before {
  content: ""; position: absolute; width: 22px; height: 84px; right: -8px; top: 31%;
  border-radius: 0 10px 10px 0; background: #2B2934;
}
.hero-device img { width: 100%; display: block; border-radius: 24px; }
.device-top {
  height: 26px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 8px; color: var(--fg); font-size: 11px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase;
}
.device-top .live-dot { color: var(--accent-2); font-size: 9px; letter-spacing: .08em; }
.live-dot::first-letter { color: var(--accent); }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; z-index: -1; }
.orbit-a { width: 470px; height: 470px; transform: rotate(-14deg); border-left-color: var(--accent); border-bottom-color: var(--accent); }
.orbit-b { width: 610px; height: 240px; transform: rotate(-29deg); border-color: rgba(174,235,215,.28); }
.float-tag {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px; border-radius: 999px; color: #1A1720;
  font-size: 12px; font-weight: 800; letter-spacing: .07em;
  box-shadow: 9px 11px 0 rgba(9,10,18,.72); transform: rotate(-7deg);
}
.float-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.tag-video { left: 4%; top: 27%; background: #FF9EC5; }
.tag-text { right: 2%; top: 37%; background: #AEEBD7; transform: rotate(7deg); }
.tag-filter { left: 2%; bottom: 24%; background: #F9E18D; transform: rotate(-5deg); }
.tag-export { right: 0; bottom: 15%; background: #B9B0FF; transform: rotate(6deg); }

.showcase { padding-top: 30px; }
.showcase-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.showcase-head .sec-head { margin-bottom: 0; }
.showcase-grid { display: grid; grid-template-columns: 1.3fr .85fr .85fr; gap: 18px; align-items: stretch; }
.showcase-card {
  min-height: 480px; overflow: hidden; position: relative; border: 1px solid var(--line-2);
  border-radius: 24px; background: var(--surface); isolation: isolate;
}
.showcase-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(255,122,69,.14), transparent 48%); z-index: -1; }
.showcase-card.showcase-warm::before { background: linear-gradient(150deg, rgba(249,225,141,.16), transparent 50%); }
.showcase-card .showcase-copy {
  position: absolute; left: 16px; top: 16px; max-width: 240px; z-index: 2;
  padding: 8px 10px 16px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,26,32,.96), rgba(28,26,32,.72) 72%, transparent);
}
.showcase-card h3 { margin: 7px 0 0; font-size: 26px; }
.showcase-card p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.mini-label { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.showcase-card img { position: absolute; display: block; width: 230px; max-width: none; border-radius: 26px; box-shadow: 0 24px 55px rgba(0,0,0,.4); }
.showcase-wide img { width: 330px; right: 7%; bottom: -22%; transform: rotate(6deg); }
.showcase-tall img { width: 250px; right: -6%; bottom: -18%; transform: rotate(7deg); }
.showcase-warm img { transform: rotate(-7deg); right: -4%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-copy h1 { max-width: 12ch; }
  .hero-visual { min-height: 630px; margin-top: -8px; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-wide { grid-column: 1 / -1; min-height: 540px; }
}
@media (max-width: 620px) {
  .hero { padding-top: 54px; }
  .hero-visual { min-height: 520px; }
  .hero-device { width: min(285px, 74%); }
  .hero-visual::before { inset: 2% -44% 0; }
  .float-tag { padding: 8px 11px; font-size: 10px; }
  .tag-video { left: 0; top: 25%; }
  .tag-text { right: -2%; top: 34%; }
  .tag-filter { left: 0; bottom: 22%; }
  .tag-export { right: -3%; bottom: 14%; }
  .showcase-head { display: block; }
  .showcase-head .btn { margin-top: -14px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-wide { grid-column: auto; min-height: 510px; }
  .showcase-card { min-height: 420px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 122, 69, 0.45);
  color: var(--accent);
  font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 6.8vw, 70px);
  line-height: 1.03; letter-spacing: -0.035em; font-weight: 780;
  max-width: 16ch;
}
h1 .grad { color: var(--accent); }
.lede {
  margin: 22px 0 0; max-width: 62ch;
  font-size: clamp(17px, 2.1vw, 20px); color: var(--muted);
}
.hero .stores { margin-top: 32px; }
.trust {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: var(--muted);
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ------------------------------------------------------------ mock điện thoại

   Dựng bằng HTML/CSS chứ không phải ảnh chụp: nhẹ, nét ở mọi DPI, và khi UI app
   đổi thì sửa ở đây chứ không phải chụp lại. Khung dọc vì đây là app dựng video
   trên điện thoại — khung ngang kiểu desktop sẽ hứa sai. */

.mock {
  margin: 46px auto 0; width: min(320px, 78vw);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 30px; padding: 9px;
  box-shadow: 0 34px 80px -40px rgba(0, 0, 0, 0.95);
}
.mock .screen {
  border-radius: 22px; overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.mock-stage {
  aspect-ratio: 9 / 12;
  background: #201A18;
  position: relative;
}
.mock-stage .safe {
  position: absolute; inset: 7% 6%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
}
.mock-stage .tc {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.5); color: rgba(255, 255, 255, 0.84);
}
.mock-stage .badge-4k {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.5); color: #fff;
}
.mock-stage .caption {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  white-space: nowrap;
}
.mock-tl { padding: 12px 12px 16px; display: grid; gap: 6px; }
.mock-tl > * { min-width: 0; }
.mock-ruler {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 9.5px; color: var(--dim); padding: 0 2px 3px;
}
.lane { display: flex; gap: 4px; height: 30px; }
.lane .lbl {
  width: 26px; flex: none; display: flex; align-items: center;
  font-family: var(--mono); font-size: 9.5px; color: var(--dim);
}
.lane .cell {
  border-radius: 6px; display: flex; align-items: center; padding: 0 8px;
  font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, 0.88);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  /* min-width:0 để cell co được — không có nó, nowrap giữ min-content và cả
     timeline tràn khỏi khung máy trên màn hình hẹp. */
  min-width: 0;
}
.cell.v1    { background: #7A3A1E; }
.cell.v2    { background: #5E4A2E; }
.cell.xfade { background: var(--accent); color: var(--ink); font-weight: 750; }
.cell.audio { background: #2A2630; color: var(--muted); }
.cell.text  { background: #3A2A22; color: #F0CDB8; }
.cell.gap   { background: transparent; border: 1px dashed var(--line-2); color: var(--dim); }

/* ---------------------------------------------------------------- sections */

section { padding: 74px 0; }
section.tight { padding: 50px 0; }

.sec-head { max-width: 62ch; margin-bottom: 38px; }
.sec-head .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12;
  letter-spacing: -0.03em; font-weight: 740;
}
h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.015em; font-weight: 680; }
.sec-head p { margin: 14px 0 0; color: var(--muted); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: rgba(255, 122, 69, 0.16); color: var(--accent);
  font-size: 20px;
}

/* -------------------------------------------------------------- lưới mẫu */

.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tpl-grid { grid-template-columns: 1fr; } }

.tpl-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.tpl-card .cover {
  position: relative; display: block;
  aspect-ratio: 9 / 16; background: var(--surface-2);
}
/* aspect-ratio chưa có ở Safari < 15 — không có fallback thì cả lưới xẹp
   thành một hàng ảnh cao 0px. */
@supports not (aspect-ratio: 9 / 16) {
  .tpl-card .cover { height: 0; padding-bottom: 177.78%; }
}
.tpl-card .cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.tpl-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.tpl-card .name { margin: 0; font-size: 18px; font-weight: 680; letter-spacing: -0.015em; }
.tpl-card .why { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.tpl-card .meta {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--dim);
  display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.tpl-card .acts { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.tpl-card .acts .btn { flex: 1 1 auto; text-align: center; }

/* ------------------------------------------------------------------- table */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 650; font-size: 14px; letter-spacing: .01em; }
tbody tr:last-child td { border-bottom: 0; }
td .yes { color: var(--accent); font-weight: 650; }
td .soon { color: var(--warn); font-weight: 650; }

/* ----------------------------------------------------------------- pricing */

.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.featured {
  border-color: rgba(255, 122, 69, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 122, 69, .3), 0 24px 60px -34px rgba(255, 122, 69, .55);
}
.plan .tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(255, 122, 69, 0.16); color: var(--accent);
}
.plan .amount { font-size: 38px; font-weight: 760; letter-spacing: -0.03em; line-height: 1.1; }
.plan .amount small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--muted); }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--accent); font-weight: 800;
}
.plan li.no::before { content: "—"; color: var(--dim); }
.plan .alt { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.plan .alt strong { color: var(--fg); font-weight: 650; }

.note {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(245, 165, 36, 0.08); border: 1px solid rgba(245, 165, 36, 0.28);
  color: #E9C88A; font-size: 14.5px;
}

/* --------------------------------------------------------------------- faq */

details.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0; margin-bottom: 12px;
}
details.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 620; font-size: 16.5px; display: flex; gap: 16px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; margin-left: auto; color: var(--accent);
  font-size: 22px; font-weight: 400; line-height: 1;
}
details.faq[open] summary::after { content: "−"; }
details.faq .body { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
details.faq .body p { margin: 0 0 10px; }
details.faq .body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- cta band */

.cta {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 22px; padding: 52px 40px; text-align: center;
}
.cta h2 { max-width: 22ch; margin: 0 auto; }
.cta p { color: var(--muted); max-width: 56ch; margin: 16px auto 0; }
.cta .stores { justify-content: center; margin-top: 30px; }

/* ---------------------------------------------------------- trang phụ / tải */

.page-head { padding: 60px 0 8px; }
.page-head h1 {
  font-size: clamp(32px, 5.4vw, 54px); max-width: 20ch; margin: 18px 0 0;
}
.page-head .lede { margin-top: 18px; }

.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
}
.dl-card.ready { border-color: rgba(255, 122, 69, 0.5); }
.dl-card .top { display: flex; align-items: center; gap: 14px; }
.dl-card .glyph {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(255, 122, 69, 0.16); color: var(--accent);
}
.dl-card h3 { margin: 0; font-size: 20px; }
.dl-card .sub { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); font-family: var(--mono); }
.dl-card > p { color: var(--muted); font-size: 15.5px; margin: 16px 0 0; }
.dl-card .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dl-card .meta {
  margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--dim);
  font-family: var(--mono); display: grid; gap: 4px;
}
.pill {
  margin-left: auto; flex: none; align-self: flex-start;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.pill.live { background: rgba(255, 122, 69, 0.16); color: var(--accent); }
.pill.soon { background: rgba(245, 165, 36, 0.14); color: var(--warn); }
@media (max-width: 560px) {
  .dl-card { padding: 22px; }
  .dl-card .top { flex-wrap: wrap; row-gap: 12px; }
  .dl-card .glyph { order: 1; }
  .dl-card .top .pill { order: 2; }
  .dl-card .top > div { order: 3; flex: 1 1 100%; min-width: 0; }
  .dl-card .meta { word-break: break-word; }
}

/* ------------------------------------------------------------------ footer */

footer.site { border-top: 1px solid var(--line); padding: 54px 0 44px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 {
  margin: 0 0 14px; font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--fg); font-size: 15px; }
.foot-grid a:hover { color: var(--accent); }
.foot-about p { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.legal-line {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  color: var(--muted); font-size: 13.5px;
}
.legal-line .sep { color: var(--line-2); }

/* ------------------------------------------------------------- trang pháp lý */

.legal-page { padding: 56px 0 40px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 46px); max-width: none; margin: 0; }
.legal-page .updated {
  margin-top: 12px; color: var(--muted); font-size: 14.5px;
  font-family: var(--mono);
}
.legal-body { font-size: 16.5px; }
.legal-body h2 { font-size: 24px; margin: 44px 0 12px; }
.legal-body h3 { font-size: 18px; margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: #D6D2DA; }
.legal-body ul, .legal-body ol { padding-left: 22px; display: grid; gap: 8px; }
.legal-body table { min-width: 0; font-size: 15px; }
.legal-body .table-wrap { margin: 20px 0; }
.callout {
  margin: 24px 0; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.toc {
  margin: 28px 0 8px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.toc ol { margin: 10px 0 0; }
.toc a { color: var(--fg); }

code {
  font-family: var(--mono); font-size: .9em;
  background: var(--surface-2); padding: 2px 6px; border-radius: 5px;
}

/* ------------------------------------------------------ trang trung chuyển /t

   t/<id>.html chỉ sống vài giây trước khi app bật lên: một cột hẹp, không nav,
   không footer dài. */
.hop { min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; }
.hop .box { width: 100%; max-width: 420px; text-align: center; }
.hop .cover {
  /* height:auto phải có: thẻ <img> khai height=1138 (ảnh gốc) nên nếu không
     ghi đè, presentational hint kéo ảnh cao 1138px. */
  width: 168px; height: auto; margin: 0 auto 22px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2); display: block;
}
.hop h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; max-width: none; }
.hop p { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.hop .acts { display: grid; gap: 10px; }
.hop .fine { margin-top: 24px; font-size: 13px; color: var(--dim); }

.fine-note {
  margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 13.5px; max-width: 78ch;
}
