/* Outbox website. Màu, khoảng cách và chữ lấy từ biến ở :root; đổi nhận diện thì sửa ở đây. */

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-400.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-500.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-600.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-700.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #efece3;
  --ink: #141b2d;
  --ink-2: #3c4458;
  --muted: #5d6474;
  --line: #e2ded2;
  --line-strong: #cfc9b9;

  --brand: #1f3fd1;
  --brand-ink: #1631a8;
  --brand-soft: #e6eafc;
  --accent: #ff6a3d;
  --accent-soft: #ffe7de;

  --ok: #0a6847;
  --ok-soft: #dcf3ea;
  --warn: #8a4a00;
  --warn-soft: #fdf0d8;
  --info: #1f3fd1;
  --info-soft: #e6eafc;

  --dark: #10162a;
  --dark-2: #1a2238;
  --dark-line: #2b3552;
  --dark-ink: #e9ecf5;
  --dark-muted: #a6aec4;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(20 27 45 / 6%);
  --shadow: 0 1px 2px rgb(20 27 45 / 6%), 0 8px 24px -8px rgb(20 27 45 / 14%);
  --shadow-lg: 0 2px 4px rgb(20 27 45 / 5%), 0 24px 60px -18px rgb(20 27 45 / 28%);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 68px;
}

/* ------------------------------------------------------------------ Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  white-space: nowrap;
}

address { font-style: normal; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }

.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------ Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.15s; }
.btn:hover .icon { transform: translateX(2px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #24304f; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg); color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.text-link .icon { width: 16px; height: 16px; transition: transform 0.15s; }
.text-link:hover { text-decoration: underline; }
.text-link:hover .icon { transform: translateX(2px); }

.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

/* ------------------------------------------------------------------ Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 244 238 / 86%);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(20 27 45 / 40%); }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 32px; }
.logo-bg { fill: var(--brand); }
.logo-tray, .logo-arrow { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-arrow { stroke: #ffd3c4; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-inline: auto; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, top 0.2s;
}
.nav-toggle-bar:nth-of-type(2) { top: 17px; }
.nav-toggle-bar:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ Shared section pieces */

.section { padding-block: var(--section); }
.section-flush { padding-top: 0; }
.section-tint { background: var(--surface-2); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero .eyebrow { align-items: flex-start; }
.eyebrow-dot { flex: none; margin-top: 0.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.lead { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head-left { margin-inline: 0; text-align: left; }

.check-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; color: var(--ink-2); }
.check-list .icon { width: 22px; height: 22px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 2.6; }


/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 80px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -25% -12% auto auto;
  width: 75vw; height: 75vw;
  max-width: 980px; max-height: 980px;
  background:
    radial-gradient(closest-side at 40% 45%, rgb(31 63 209 / 16%), transparent 70%),
    radial-gradient(closest-side at 75% 70%, rgb(255 106 61 / 12%), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.04em; margin-bottom: 24px; }
.accent-text {
  color: var(--brand);
  background: linear-gradient(100deg, #1f3fd1 10%, #5b3fd9 55%, #d9481f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 2.8; }

/* Mock app window */
/* Thẻ nổi nằm đè lên cột menu trái của cửa sổ (đang trống), không che danh sách bài. */
.mock { position: relative; margin: 0; padding: 0 0 40px 96px; }
.mock-glow {
  position: absolute;
  inset: 8% -4% 14% 18%;
  border-radius: 40px;
  background: linear-gradient(135deg, rgb(31 63 209 / 30%), rgb(255 106 61 / 22%));
  filter: blur(48px);
  pointer-events: none;
}
.mock-window { position: relative; }
.mock figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; text-align: right; }

.mock-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfaf6; }
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-url { flex: 1; max-width: 260px; margin-inline: auto; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: center; }

.mock-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 340px; }
.mock-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-right: 1px solid var(--line); background: #fbfaf6; }
.mock-side-item { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.mock-side-item.is-active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

.mock-main { padding: 18px 18px 20px; min-width: 0; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mock-head strong { font-size: 16px; }
.mock-new { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }

.mock-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mock-filter { display: inline-flex; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.mock-filter b { color: var(--ink); font-weight: 600; }
.mock-filter.is-active { border-color: var(--ink); color: var(--ink); }

.mock-list { list-style: none; display: grid; gap: 8px; }
.mock-post {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.mock-thumb { position: relative; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; }
.tone-a { background: linear-gradient(140deg, #ffb59c, #ff6a3d 60%, #c8401b); }
.tone-b { background: linear-gradient(140deg, #8fa2ff, #1f3fd1 65%, #142a8f); }
.tone-c { background: linear-gradient(140deg, #9be3c8, #12805c 70%); }
.tone-d { background: linear-gradient(140deg, #ffe0a3, #e39a23 70%); }
.mock-thumb::after { content: ""; position: absolute; inset: auto 6px 6px 6px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 55%); }
.mock-play { position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; z-index: 1; }

.mock-post-text { display: grid; gap: 2px; min-width: 0; }
.mock-post-text b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-post-text small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.mock-steps .chip { margin-left: auto; }
.mock-step { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10.5px; font-weight: 500; }
.mock-step::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.mock-step.is-done::before { background: var(--ok); border-color: var(--ok); }
.mock-step.is-running::before { background: var(--info); border-color: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.mock-step.is-unknown::before { background: var(--warn); border-color: var(--warn); }

.chip { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.chip-done { background: var(--ok-soft); color: var(--ok); }
.chip-running { background: var(--info-soft); color: var(--info); }
.chip-scheduled { background: var(--surface-2); color: var(--ink-2); }
.chip-review { background: var(--warn-soft); color: var(--warn); }

.mock-float {
  position: absolute;
  left: 0; bottom: 0;
  width: 232px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.mock-float-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.mock-float-title .icon { width: 18px; height: 18px; color: var(--brand); }
.mock-float ul { list-style: none; display: grid; gap: 6px; margin-bottom: 12px; }
.mock-float li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; }
.mock-float li .icon { width: 14px; height: 14px; color: var(--ok); stroke-width: 2.6; }
.mock-float-btn { display: block; padding: 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }

/* Strip under hero */
.strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.strip li { display: grid; gap: 4px; padding: 22px 24px; }
.strip li + li { border-left: 1px solid var(--line); }
.strip strong { font-size: 16px; }
.strip span { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ Features */

.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature-card h3 { font-size: 19px; }
.feature-card p { flex: 1; color: var(--ink-2); font-size: 15px; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}
.feature-icon .icon { width: 24px; height: 24px; }
.tone-icon-2 { background: var(--accent-soft); color: #c2410c; }
.tone-icon-3 { background: #efe7fd; color: #5b3fd9; }
.tone-icon-4 { background: var(--ok-soft); color: var(--ok); }
.tone-icon-5 { background: #fdf0d8; color: #8a4a00; }
.tone-icon-6 { background: #e2f3f8; color: #0b6a85; }

.feature-note {
  display: flex;
  gap: 14px;
  max-width: 860px;
  margin: 32px auto 0;
  padding: 18px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 55%);
  color: var(--ink-2);
  font-size: 14.5px;
}
.feature-note strong { color: var(--ink); font-weight: 600; }
.feature-note-icon { flex: none; color: var(--brand); }
.feature-note-icon .icon { width: 20px; height: 20px; margin-top: 2px; }

/* ------------------------------------------------------------------ How it works */

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step-number { display: inline-block; margin-bottom: 20px; color: #c2410c; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px; right: -16px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------ Safety (dark) */

.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .eyebrow { color: #9fb0ff; }
.section-dark .lead { color: var(--dark-muted); }
.section-dark h2 { color: #fff; }

.safety-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.safety-grid .section-head { margin-bottom: 40px; }

.safety-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.safety-list li { display: flex; gap: 16px; }
.safety-list h3 { margin-bottom: 6px; color: #fff; font-size: 17px; }
.safety-list p { color: var(--dark-muted); font-size: 15px; }
.safety-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--dark-2); border: 1px solid var(--dark-line); color: #9fb0ff; }
.safety-icon .icon { width: 22px; height: 22px; }

.trace { margin: 0; }
.trace figcaption { margin-top: 14px; color: var(--dark-muted); font-size: 13px; }
.trace-card { padding: 24px; border: 1px solid var(--dark-line); border-radius: var(--radius-lg); background: var(--dark-2); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 60%); }
.trace-title { margin-bottom: 20px; color: #fff; font-size: 15px; font-weight: 600; }
.trace-card ol { list-style: none; display: grid; }
.trace-row { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.trace-row:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--dark-line); }
.trace-dot { position: relative; z-index: 1; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--dark-line); background: var(--dark-2); }
.trace-row.is-done .trace-dot { background: #2fbf8c; border-color: #2fbf8c; }
.trace-row.is-unknown .trace-dot { background: #f2a33a; border-color: #f2a33a; box-shadow: 0 0 0 4px rgb(242 163 58 / 18%); }
.trace-row.is-waiting .trace-dot { border-color: #9fb0ff; }
.trace-text { display: grid; gap: 2px; }
.trace-text b { color: #fff; font-size: 14.5px; font-weight: 600; }
.trace-text small { color: var(--dark-muted); font-size: 13px; }
.trace-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--dark-line); }
.trace-actions span { padding: 7px 12px; border: 1px solid var(--dark-line); border-radius: 999px; color: var(--dark-ink); font-size: 12.5px; font-weight: 500; }
.trace-actions span:first-child { background: #fff; border-color: #fff; color: var(--ink); }

/* ------------------------------------------------------------------ Data and permissions */

.data-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.data-grid .section-head { margin-bottom: 0; }

.table-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-card caption { padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fbfaf6; font-weight: 600; text-align: left; }
.table-card th, .table-card td { padding: 16px 22px; text-align: left; vertical-align: top; }
.table-card thead th { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.table-card tbody tr + tr > * { border-top: 1px solid var(--line); }
.table-card tbody th { width: 42%; font-weight: 500; }
.table-card td { color: var(--ink-2); }

/* ------------------------------------------------------------------ Status and operator */

.status-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.status-card, .entity-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.status-card h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.status-card > p { color: var(--ink-2); font-size: 17px; }
.entity-card { display: flex; flex-direction: column; gap: 12px; background: var(--ink); color: var(--dark-ink); border-color: var(--ink); }
.entity-card .feature-icon { background: rgb(255 255 255 / 10%); color: #fff; }
.entity-card h3 { color: #fff; font-size: 20px; margin-top: 8px; }
.entity-card p { color: var(--dark-muted); }
.entity-card .entity-name { color: #fff; font-size: 18px; font-weight: 600; }
.entity-card .entity-address { color: var(--dark-ink); }
.entity-card .text-link { margin-top: auto; padding-top: 12px; color: #fff; }

/* ------------------------------------------------------------------ FAQ */

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 0.2s, margin-top 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq details p { padding: 0 24px 22px; color: var(--ink-2); }

/* ------------------------------------------------------------------ CTA */

.section-cta { padding-top: 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px);
  border-radius: 28px;
  background: var(--brand);
  color: #fff;
  text-align: center;
}
.cta-card::before {
  content: "";
  position: absolute;
  right: -120px; top: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 106 61 / 55%), transparent);
}
.cta-card > * { position: relative; }
.cta-card h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 12px; color: #fff; }
.cta-card p { max-width: 560px; margin: 0 auto 28px; color: rgb(255 255 255 / 82%); font-size: 17px; }

/* ------------------------------------------------------------------ Inner pages */

.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; margin-bottom: 18px; }
.meta-line { margin-top: 18px; color: var(--muted); font-size: 14px; }

.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; color: var(--ink); font-size: clamp(22px, 2.4vw, 26px); line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; color: var(--ink); font-size: 18px; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--muted); }
.prose address { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); line-height: 1.8; }

.legal { counter-reset: none; }
.legal table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 15px; display: block; overflow-x: auto; }
.legal thead, .legal tbody { display: table; width: 100%; }
.legal th, .legal td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal thead th { color: var(--muted); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.legal tbody th { width: 38%; font-weight: 500; }
.legal tbody tr:last-child > * { border-bottom: 0; }

.entity-table { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.entity-table > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 18px 24px; }
.entity-table > div + div { border-top: 1px solid var(--line); }
.entity-table dt { color: var(--muted); font-size: 14px; font-weight: 500; }
.entity-table dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.entity-table dd small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; font-weight: 400; }

.contact-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.contact-card h2 { margin-top: 6px; font-size: 18px; }
.contact-card p { color: var(--ink-2); font-size: 15px; }
.contact-value { margin-top: auto; padding-top: 6px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
a.contact-value { color: var(--brand); text-decoration: none; }
a.contact-value:hover { text-decoration: underline; }
.contact-address { font-weight: 500; }
.contact-topics { margin-top: 56px; }

/* ------------------------------------------------------------------ Footer */

.site-footer { padding-top: 64px; background: var(--dark); color: var(--dark-muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)) 1.6fr; gap: 40px 32px; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; max-width: 300px; }
.footer-col h2 { margin-bottom: 16px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col p + p { margin-top: 8px; }
.site-footer a { color: var(--dark-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-entity strong { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 24px 32px; border-top: 1px solid var(--dark-line); font-size: 13px; }
.footer-bottom p:last-child { max-width: 560px; }

/* ------------------------------------------------------------------ 404 */

.not-found { display: grid; justify-items: center; gap: 16px; min-height: 100vh; align-content: center; padding: 32px var(--gutter); text-align: center; }
.not-found h1 { margin-top: 24px; font-size: clamp(32px, 5vw, 48px); }
.not-found p { color: var(--ink-2); }
.not-found .link-row { justify-content: center; margin-top: 12px; }

/* ------------------------------------------------------------------ Responsive */

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .lead { max-width: 640px; }
  .mock { max-width: 680px; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand, .footer-entity { grid-column: span 3; }
  .footer-entity { order: 1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 16px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(20 27 45 / 35%);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.18s, transform 0.18s; }
  .js .nav-links { flex-direction: column; align-items: stretch; margin: 0; gap: 2px; }
  .js .nav-links a { padding: 14px 12px; border-radius: 12px; font-size: 17px; }
  .js .nav-actions { flex-wrap: wrap; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
  .js .nav-actions .btn { flex: 1; min-height: 48px; }

  /* Không có JS: menu xếp xuống dòng dưới logo. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; flex-basis: 100%; }
  html:not(.js) .nav-links { flex-wrap: wrap; margin: 0; }

  .safety-grid, .data-grid, .status-grid { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section-head { margin-bottom: 36px; text-align: left; }
  .hero-actions .btn { flex: 1 1 auto; }

  .mock { padding: 0; }
  .mock-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mock-side { display: none; }
  .mock-main { padding: 14px; }
  .mock-thumb { width: 40px; height: 40px; }
  .mock-float { position: relative; width: auto; margin: 12px 0 0; }
  .mock-glow { inset: 10% 0 20% 0; }
  .mock figcaption { text-align: left; }

  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip li + li { border-left: 0; border-top: 1px solid var(--line); }
  .strip li { padding: 18px 20px; }

  .feature-grid, .steps, .safety-list { grid-template-columns: minmax(0, 1fr); }
  .feature-card, .step { padding: 24px; }
  .step::after { display: none; }
  .feature-note { padding: 16px 18px; }

  .table-card th, .table-card td { padding: 14px 16px; }
  .table-card tbody tr { display: grid; }
  .table-card tbody th { width: auto; padding-bottom: 4px; }
  .table-card tbody td { padding-top: 0; border-top: 0 !important; }
  .table-card thead { display: none; }

  .legal tbody tr { display: grid; }
  .legal tbody th { width: auto; padding-bottom: 2px; border-bottom: 0; }
  .legal thead { display: none; }

  .entity-table > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 20px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand, .footer-entity { grid-column: span 2; }
  .faq summary { padding: 18px 48px 18px 20px; font-size: 16px; }
  .faq details p { padding: 0 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .hero::before, .hero::after { display: none; }
  body { background: #fff; }
}
