/* Trang chủ tenstartup.com: trang cuộn hai cột "làm tay / dùng phần mềm".
   Nạp sau scrollcraft.css. Engine Scroll Craft giữ nguyên; bố cục, vạch chia,
   dấu tick và cú sập cột nằm ở file này và home.js.
   Chỉ trang chủ dùng file này; các trang sản phẩm dùng theme.css. */

:root {
  /* token của engine */
  --sc-canvas: #ffffff;
  --sc-surface: #f5f7fa;
  --sc-ink: #0f1b2d;
  --sc-ink-soft: #4b5a6e;
  --sc-accent: #1e3a5f;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-font-text: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-shadow-color: 215 45% 14%;

  /* --accent-primary là token mà thanh menu dùng chung tham chiếu tới. */
  --accent-primary: #1e3a5f;
  --bg: #ffffff;
  --paper: #eceff3;          /* nền cột làm tay */
  --ink: #0f1b2d;
  --ink-soft: #4b5a6e;
  --ink-faint: #5d6b7c;
  --line: #e1e6ed;
  --line-strong: #c7d0db;
  --brand: #1e3a5f;
  --brand-hover: #152a45;
  --brand-tint: #eaf1fb;
  --accent: #1d4ed8;
  --ok: #047857;
  --ok-tint: #e3f4ec;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgb(15 27 45 / .06), 0 1px 3px rgb(15 27 45 / .08);
  --shadow-lg: 0 2px 4px rgb(15 27 45 / .04), 0 24px 56px -16px rgb(15 27 45 / .22);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --pad: clamp(1.5rem, 4.5vw, 4.5rem);   /* khoảng cách chữ tới vạch chia */
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --collapse: 0;                         /* 0 = hai cột, 1 = chỉ còn cột phần mềm */
}

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); letter-spacing: 0; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
::selection { background: var(--brand-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: .5rem; z-index: 100; background: var(--ink); color: #fff; padding: .5rem .75rem; border-radius: 6px; }
.skip:focus { left: .5rem; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .625rem 1.125rem;
  font: 600 .9375rem/1.2 var(--font); white-space: nowrap; text-decoration: none;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--lg { min-height: 52px; padding: .875rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand-hover); }
  .btn--secondary:hover { border-color: #9fadbd; }
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ----------------------------------------------------------------- nav -- */
/* Thanh menu dùng chung markup với các trang sản phẩm (get_navbar_html).
   Ở trang này nó không dính: cuộn qua là vạch chia thành chrome duy nhất. */
.navbar { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-container { max-width: none; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: .625rem; color: var(--ink); text-decoration: none; }
.nav-brand img { width: 30px; height: 30px; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.nav-brand-sub { font-size: .75rem; color: var(--ink-faint); }
.nav-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0 0 0 .5rem; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .5rem .75rem; min-height: 40px; border-radius: 6px; border: 0; background: none;
  font: 500 .9375rem/1 var(--font); color: var(--ink-soft); text-decoration: none; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .nav-link:hover { color: var(--ink); background: var(--sc-surface); } }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav-actions .btn, .nav-mobile-drawer .btn { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-height: 40px; padding: .5rem 1rem; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 .9375rem/1.2 var(--font); text-decoration: none; white-space: nowrap; }
.nav-actions .btn-primary, .nav-mobile-drawer .btn-primary { background: var(--brand); color: #fff; }
.nav-actions .btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) {
  .nav-actions .btn-primary:hover, .nav-mobile-drawer .btn-primary:hover { background: var(--brand-hover); }
  .nav-actions .btn-secondary:hover { border-color: #9fadbd; }
}
.nav-zalo-btn { gap: .375rem; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; width: 22rem; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 150ms;
}
.nav-dropdown.is-open .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown-item { display: flex; gap: .75rem; padding: .625rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.nav-dropdown-icon img { width: 28px; height: 28px; margin-top: 2px; }
.nav-dropdown-title { font-size: .9375rem; font-weight: 600; }
.nav-dropdown-title span { font-weight: 400; color: var(--ink-faint); }
.nav-dropdown-desc { font-size: .8125rem; color: var(--ink-faint); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .nav-dropdown-item:hover { background: var(--sc-surface); } }
.nav-dropdown-arrow { transition: transform 150ms var(--ease); }
.nav-dropdown.is-open .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-mobile-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.nav-mobile-drawer { border-top: 1px solid var(--line); padding: .5rem var(--gutter) 1.5rem; background: #fff; max-height: calc(100vh - 68px); overflow-y: auto; }
.nav-drawer-title { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 1.25rem 0 .25rem; }
.nav-mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile-drawer li .nav-link { display: flex; width: 100%; padding: .75rem 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.nav-mobile-drawer .btn { margin-top: 1.5rem; width: 100%; }

/* ============================================================ SPLIT STAGE ==
   Nền chia đôi cố định và vạch chia là chrome của trang. Chữ hai cột căn về
   phía vạch chia. --collapse (0..1, home.js ghi) cuốn nền xám và vạch chia
   sang mép trái ở đoạn đỉnh. */
main { position: relative; isolation: isolate; }
.split-ground {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--paper);
  clip-path: inset(0 calc(50% + 50% * var(--collapse)) 0 0);
}
.divider { position: fixed; inset: 0 auto 0 50%; width: 0; z-index: 30; pointer-events: none; transform: translate3d(calc(-50vw * var(--collapse)), 0, 0); }
.divider__line { position: absolute; inset: 0 auto 0 -0.5px; width: 1px; background: var(--line-strong); }
/* Nhãn có nền đặc để không chồng chữ khi nội dung cuộn qua; home.js tắt nhãn
   (--label-on: 0) ở phần ba phần mềm và quy trình, nơi hai cột không còn đối chiếu. */
.divider__label {
  position: absolute; top: 1rem; white-space: nowrap;
  padding: .25rem .625rem; border-radius: 6px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
  opacity: calc((1 - var(--collapse) * 2) * var(--label-on, 1));
  transition: opacity 220ms var(--ease);
}
.divider__label--l { right: .625rem; color: var(--ink-soft); background: var(--paper); }
.divider__label--r { left: .625rem; color: var(--ok); background: #fff; }
.divider__ticks { list-style: none; position: absolute; inset: 0; opacity: calc(1 - var(--collapse) * 1.6); }

/* dấu tick: dùng chung cho vạch chia, thanh tick điện thoại */
.tick {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 3px #fff, 0 2px 6px -1px rgb(4 120 87 / .45);
  opacity: 0; transform: scale(.6);
  transition: opacity 180ms var(--ease), transform 260ms cubic-bezier(.34, 1.56, .64, 1);
}
.tick.is-on { opacity: 1; transform: none; }
.divider__ticks .tick { position: absolute; left: -12px; top: var(--y, 50%); margin-top: -12px; }
/* Rời bảng đối chiếu: các tick gom thành một chồng gọn ở đỉnh vạch chia (--dy do home.js tính). */
.divider.is-parked .divider__ticks .tick.is-on { transform: translate3d(0, var(--dy, 0px), 0) scale(.8); transition: opacity 180ms var(--ease), transform 480ms var(--ease); }
.tick-rail { display: none; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split__l { padding-inline: var(--gutter) var(--pad); display: flex; flex-direction: column; align-items: flex-end; text-align: left; }
.split__r { padding-inline: var(--pad) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; }
.split__l > * { width: min(100%, 30rem); }
.split__r > * { width: min(100%, 36rem); }

/* ------------------------------------------------------- 1 hero ------ */
.hero { position: relative; min-height: calc(100svh - 68px); overflow: clip; padding-block: clamp(2.5rem, 7vh, 4.5rem) 0; }
.hero__manual { justify-content: center; padding-bottom: 12vh; }
.hero__pains { display: grid; gap: .75rem; font-size: clamp(1.375rem, 1rem + 1.4vw, 2.125rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-soft); }
.hero__pains span { display: block; }
.hero__tag { font-size: .9375rem; font-weight: 600; color: var(--ok); }
.hero h1 { margin-top: .75rem; font-size: clamp(2rem, 1.1rem + 2.2vw, 3.125rem); letter-spacing: -0.032em; line-height: 1.06; max-width: 19ch; }
.hero__lead { margin-top: 1.125rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-soft); max-width: 34rem; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero .actions { margin-top: 1.75rem; }
.hero__checks { list-style: none; display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; margin-top: 1rem; font-size: .9375rem; color: var(--ink-soft); }
.hero__checks li { display: flex; align-items: center; gap: .375rem; }
.hero__checks svg { color: var(--ok); flex: none; }

/* cảnh AuditSoft tách lớp: nền đã vá chỗ thẻ, ba thẻ cắt ra nổi lên trên */
.hero__soft .scene { width: auto; align-self: stretch; margin: clamp(2rem, 5vh, 3rem) calc(-1 * var(--gutter)) 0 0; overflow: clip; }
.scene__inner { position: relative; width: max(100%, 46rem); aspect-ratio: 1600 / 1000; }
.scene__base {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  border-radius: 14px 0 0 0; border: 1px solid var(--line); border-right: 0;
  box-shadow: var(--shadow-lg);
}
.scene__card { position: absolute; }
.scene__card img { width: 100%; height: auto; max-width: none; border-radius: 10px; box-shadow: var(--sc-e2); transform: scale(1.025); transform-origin: 50% 100%; }
.scene__card--nkc   { left: 19.32%; top: 17.96%; width: 78.19%; }
.scene__card--cash  { left: 19.32%; top: 41.40%; width: 25.64%; }
.scene__card--cash img { box-shadow: var(--sc-e3); transform: scale(1.06); }
.scene__card--vacpa { left: 83.27%; top: 35.48%; width: 14.52%; }
.scene__card--vacpa img { border-radius: 6px; }

/* ------------------------------------------------------- 2 ledger ---- */
.ledger__stage { display: flex; flex-direction: column; justify-content: center; padding-block: 3.5rem 2rem; }
.ledger__head { margin-bottom: clamp(1.25rem, 3.5vh, 2.5rem); align-items: end; }
.ledger__intro { font-size: 1.0625rem; color: var(--ink-soft); }
.ledger__head h2 { font-size: clamp(1.75rem, 1.1rem + 1.9vw, 2.625rem); }
.ledger__rows { list-style: none; display: grid; gap: clamp(.5rem, 1.6vh, 1.125rem); }
.ledger__row { align-items: center; --r: 0; }
.ledger__metric { font-size: .8125rem; font-weight: 600; color: var(--ink-faint); }
.ledger__bad { font-size: clamp(1rem, .92rem + .3vw, 1.125rem); color: var(--ink); }
/* nét gạch chạy ngang dòng làm tay khi dòng đó đã có phần mềm làm thay */
.ledger__bad span {
  background: linear-gradient(currentColor, currentColor) 0 58% / calc(var(--r) * 100%) 2px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: color 200ms var(--ease);
}
.ledger__row.is-done .ledger__bad span { color: var(--ink-faint); }
.ledger__good {
  display: flex; gap: .625rem; align-items: flex-start;
  font-size: clamp(1rem, .92rem + .3vw, 1.125rem); font-weight: 500;
  opacity: var(--r); transform: translate3d(calc((1 - var(--r)) * -14px), 0, 0);
}
.ledger__mark { flex: none; color: var(--ok); margin-top: .2em; }

/* ------------------------------------------------------- 3 products -- */
.products { padding-block: clamp(4rem, 10vh, 7rem) clamp(2rem, 5vh, 3rem); }
.products__head h2 { font-size: clamp(1.75rem, 1.1rem + 1.9vw, 2.625rem); }
.products__head p { margin-top: .75rem; font-size: 1.0625rem; color: var(--ink-soft); }
.product { padding-block: clamp(2.5rem, 7vh, 4.5rem) 0; }
/* Cột trái mỗi phần mềm: đầu vào thô và các việc làm tay mà phần mềm đó thay. */
.product__manual { position: sticky; top: clamp(4.5rem, 14vh, 8rem); }
.product__input { font-size: clamp(1.375rem, 1rem + 1.1vw, 2rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.product__chores { list-style: none; margin-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.product__chores li { padding: .75rem 0; border-bottom: 1px solid var(--line-strong); color: var(--ink-soft); font-size: .9375rem; line-height: 1.5; }
.product__chore-task { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: .125rem; }
.product__shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--sc-surface); }
.product__shot img { width: 100%; height: auto; }
.product__body { margin-top: 1.5rem; }
.product__title { display: flex; align-items: center; gap: .75rem; }
.product__title img { width: 40px; height: 40px; }
.product__title h3 { font-size: 1.5rem; }
.product__title span { display: block; font-size: .875rem; color: var(--ink-faint); font-weight: 500; }
.product__desc { margin-top: .875rem; font-size: 1.0625rem; color: var(--ink-soft); }
.checks { list-style: none; display: grid; gap: .5rem; margin-top: 1rem; }
.checks li { display: flex; gap: .625rem; align-items: flex-start; }
.checks svg { flex: none; color: var(--ok); margin-top: .2em; }
.panel__meta { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .9375rem; color: var(--ink-soft); }
.panel__meta strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.panel__actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.other-tool { margin-top: clamp(2.5rem, 6vh, 4rem); color: var(--ink-soft); font-size: .9375rem; }

/* ------------------------------------------------------- 4 pipeline -- */
.pipeline { padding-block: clamp(3rem, 8vh, 5rem) clamp(5rem, 14vh, 9rem); }
.sources { position: sticky; top: 30vh; }
.sources p { font-size: .9375rem; color: var(--ink-soft); }
.sources ul { list-style: none; margin-top: .75rem; display: grid; gap: .125rem; font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); font-weight: 600; color: var(--ink-soft); letter-spacing: -0.015em; }
.pipeline h2 { font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.25rem); }
.pipeline__note { margin-top: .75rem; color: var(--ink-soft); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.75rem; margin-top: 2rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: .9375rem; }
.steps h3 { font-size: 1.1875rem; }
.steps p { margin-top: .375rem; color: var(--ink-soft); }
.steps .steps__tools { margin-top: .5rem; font-size: .8125rem; font-weight: 600; color: var(--accent); }

/* ------------------------------------------------------- 5 peak ------ */
.peak__stage { align-items: center; }
.peak__struck { list-style: none; display: grid; gap: .875rem; font-size: clamp(1rem, .92rem + .3vw, 1.125rem); color: var(--ink-faint); }
.peak__struck li { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in oklab, var(--ink-faint) 70%, transparent); }
.peak__manual > * { transform: translate3d(calc(var(--collapse) * -40%), 0, 0); opacity: calc(1 - var(--collapse) * 1.4); }
/* khối phần mềm trượt từ giữa cột phải về giữa màn hình khi cột trái sập */
.peak__block { transform: translate3d(calc(var(--collapse) * var(--shift, -25vw)), 0, 0); width: min(100%, 36rem); }
.peak h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.06; }
.peak__lead { margin-top: clamp(1.25rem, 3vh, 1.75rem); font-size: 1.0625rem; color: var(--ink-soft); }
.peak .actions { margin-top: 1.25rem; }
.wp { margin-top: clamp(1.25rem, 3.5vh, 2rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.25rem 1.125rem; }
.wp__title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .625rem; border-bottom: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.wp__stamp { color: var(--ok); border: 1.5px solid currentColor; border-radius: 6px; padding: .125rem .5rem; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transform: rotate(-4deg) scale(1.15); transition: opacity 200ms var(--ease), transform 260ms var(--ease); }
.wp.is-done .wp__stamp { opacity: 1; transform: rotate(-4deg); }
.wp__list { list-style: none; display: grid; gap: .375rem; margin-top: .75rem; font-size: .9375rem; }
.wp__item { display: flex; align-items: center; gap: .625rem; }
.wp__box { flex: none; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease); }
.wp__box svg { width: 14px; height: 14px; }
.wp__item.is-on .wp__box { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ------------------------------------------------------- 6 tra cứu --- */
.section { padding-block: clamp(3.5rem, 8vw, 5.5rem); background: #fff; }
.section--line { border-top: 1px solid var(--line); }
.section__head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.section__head h2 { font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.25rem); }
.section__head p { margin-top: .75rem; font-size: 1.0625rem; color: var(--ink-soft); }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.pricing-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.pricing-card[data-featured] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.price__head { display: flex; align-items: center; gap: .625rem; }
.price__head img { width: 32px; height: 32px; }
.price__head h3 { font-size: 1.25rem; }
.price__badge { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--brand); background: var(--brand-tint); padding: .25rem .625rem; border-radius: 999px; }
.price__from { margin-top: 1.125rem; font-size: .875rem; color: var(--ink-faint); }
.price__from strong { display: block; font-size: 1.875rem; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.price__trial { margin-top: .375rem; font-size: .9375rem; color: var(--ok); font-weight: 500; }
.price__list { list-style: none; margin-top: 1.125rem; border-top: 1px solid var(--line); flex: 1; }
.price__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6875rem 0; border-bottom: 1px solid var(--line); }
.price__list li:last-child { border-bottom: 0; }
.price__name { font-weight: 500; font-size: .9375rem; }
.price__term { display: block; font-size: .8125rem; color: var(--ink-faint); }
.price__amount { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing-card .btn { margin-top: 1.25rem; }
.price__note { margin-top: 1.5rem; color: var(--ink-soft); font-size: .9375rem; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about h2 { font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.25rem); }
.about__intro p { margin-top: .875rem; color: var(--ink-soft); font-size: 1.0625rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.facts dt { font-weight: 600; }
.facts dd { margin-top: .375rem; color: var(--ink-soft); font-size: .9375rem; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.125rem 2.5rem 1.125rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint); transform: rotate(45deg);
  transition: transform 150ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 1.25rem; color: var(--ink-soft); }

/* -------------------------------------------------------------- footer -- */
.footer { position: relative; background: #fff; border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; font-size: .9375rem; color: var(--ink-soft); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.5fr 1fr; gap: 2rem; }
.footer h2 { font-size: .875rem; color: var(--ink); margin-bottom: 1rem; letter-spacing: 0; }
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer a { color: var(--ink-soft); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--ink); text-decoration: underline; } }
.footer .brand { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .75rem; color: var(--ink); }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .875rem; color: var(--ink-faint); }

/* ============================================================== mobile ==
   Điện thoại không chia trái phải: mỗi cặp xếp thành hai tầng, tầng làm tay
   nền xám ở trên. Vạch chia thành thanh tick nhỏ dính đáy màn hình. */
@media (max-width: 1200px) {
  .nav-menu, .nav-zalo-btn, .nav-brand-sub { display: none; }
  .nav-mobile-toggle { display: grid; }
}
@media (max-width: 960px) {
  .prices { grid-template-columns: minmax(0, 1fr); }
  .about, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .split-ground, .divider { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__l, .split__r { padding-inline: var(--gutter); align-items: stretch; }
  .split__l > *, .split__r > * { width: auto; }
  .split__l:empty { display: none; }

  .tick-rail {
    display: flex; gap: 6px; list-style: none; position: fixed; z-index: 40;
    left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
    padding: 6px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sc-e2); opacity: 0; transition: opacity 200ms var(--ease);
  }
  .tick-rail.is-shown { opacity: 1; }
  .tick-rail .tick { width: 18px; height: 18px; background-size: 11px; box-shadow: none; }

  .hero { min-height: 0; padding-top: 0; }
  .hero__manual { background: var(--paper); padding-block: 1.25rem; }
  .hero__pains { font-size: 1.0625rem; gap: .25rem; }
  .hero__soft { padding-top: 1.75rem; }
  .hero h1 { font-size: clamp(1.875rem, 1.2rem + 3.4vw, 2.5rem); }
  .hero .actions .btn { flex: 1 1 auto; }
  .hero__soft .scene { margin-right: calc(-1 * var(--gutter)); overflow: hidden; }
  .scene__inner { width: 175%; }

  .ledger__stage { padding-block: 1.25rem; justify-content: flex-start; }
  .ledger__head { margin-bottom: .875rem; }
  .ledger__head .split__l { order: 2; }
  .ledger__intro { margin-top: .375rem; font-size: .9375rem; }
  .ledger__head h2 { font-size: 1.5rem; }
  .ledger__rows { gap: .5rem; }
  .ledger__row .split__l { background: var(--paper); padding-block: .375rem; border-radius: 8px 8px 0 0; margin-inline: var(--gutter); padding-inline: .75rem; }
  .ledger__row .split__r { padding-block: .375rem .25rem; margin-inline: var(--gutter); padding-inline: .75rem; }
  .ledger__metric { display: none; }
  .ledger__bad, .ledger__good { font-size: .875rem; line-height: 1.4; }
  .ledger__mark svg { width: 15px; height: 15px; }

  .product__manual { position: static; background: var(--paper); padding: 1rem var(--gutter) .5rem; margin-inline: calc(-1 * var(--gutter)); margin-bottom: 1rem; }
  .product__input { font-size: 1.25rem; }
  .product__chores { margin-top: .75rem; }
  .product__chores li { padding: .5rem 0; font-size: .875rem; }
  .product__chores li:last-child { border-bottom: 0; }
  .sources { position: static; background: var(--paper); padding: 1.25rem var(--gutter); margin: 0 calc(-1 * var(--gutter)) 2rem; }
  .sources ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: 1.0625rem; }

  .peak__stage { align-content: center; }
  .peak__manual { position: absolute; inset: 0 0 auto; padding-top: 1.25rem; }
  .peak__struck { font-size: .875rem; gap: .25rem; background: var(--paper); padding: .75rem; border-radius: 8px; }
  .peak__block { transform: translate3d(0, calc((1 - var(--collapse)) * var(--struck-h, 16rem)), 0); }
  .peak h2 { font-size: 1.875rem; }
  .wp { margin-top: 1.25rem; }
}
@media (max-width: 400px) {
  /* 320 px: logo, nút dùng thử và nút menu phải vừa một hàng. */
  .nav-container { gap: .75rem; }
  .nav-actions { gap: .375rem; }
  .nav-actions .btn { padding-inline: .75rem; font-size: .875rem; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .nav-actions .btn-secondary { display: none; }
}

/* ======================================================= reduced motion ==
   Ít và nhẹ hơn, không phải bằng không: tick, nét gạch và cú sập cột vẫn đổi
   trạng thái, nhưng bằng độ mờ, không bằng chuyển vị. */
@media (prefers-reduced-motion: reduce) {
  .split-ground { clip-path: inset(0 50% 0 0); transition: opacity 220ms linear; }
  html.is-collapsed .split-ground { opacity: 0; }
  .divider { transform: none; transition: opacity 220ms linear; }
  html.is-collapsed .divider { opacity: 0; }
  .ledger__good, .peak__manual > *, .peak__block { transform: none; }
  .tick, .wp__stamp, .divider.is-parked .divider__ticks .tick.is-on { transform: none; transition: opacity 200ms linear; }
  .divider.is-parked .divider__ticks { opacity: 0; }
}
