/* ==========================================================================
   chutiem.com — TP POS landing
   Tokens: brand teal-green (logo) + app green + amber CTA
   WCAG: ink 14.9:1, primary 6.5:1 on white, amber+ink 6.95:1
   ========================================================================== */

:root {
  --ink: #0e2a38;
  --ink-soft: #1c3d4c;
  --primary: #0c6b4f;
  --primary-strong: #0a5c44;
  --primary-soft: #e7f4ee;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --body: #4a5d66;
  --bg: #f5faf8;
  --card: #ffffff;
  --muted: #ebf7f1;
  --border: #d9e7e1;
  --border-strong: #c3d8d0;
  --app-green: #0f9d58;

  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Be Vietnam Pro", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(14, 42, 56, .05), 0 4px 14px rgba(14, 42, 56, .06);
  --sh-2: 0 10px 30px rgba(14, 42, 56, .10);
  --sh-3: 0 24px 60px rgba(14, 42, 56, .16);

  --wrap: 1120px;
  --head-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .35em; }
p  { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }

:focus-visible {
  outline: 3px solid #0a5c44;
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { left: 12px; color: #fff; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

.btn-cta { background: var(--accent); color: var(--ink); box-shadow: 0 6px 18px rgba(245, 158, 11, .28); }
.btn-cta:hover { background: var(--accent-hover); color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(245, 158, 11, .34); }
.btn-cta .ico { stroke-width: 2.1; }

.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-strong); border-color: var(--primary); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-center { justify-content: center; margin-top: 34px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 250, 248, .82);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-head.is-stuck { border-bottom-color: var(--border); box-shadow: 0 6px 20px rgba(14, 42, 56, .06); }
.head-inner { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-text { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; font-size: 1.0625rem; line-height: 1.05; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font-body); font-weight: 500; font-size: .6875rem; letter-spacing: .04em; color: var(--body); text-transform: lowercase; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .9375rem;
  padding: 10px 14px; border-radius: var(--r-pill); transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: var(--muted); color: var(--primary-strong); }
.head-cta { margin-left: 4px; }
@media (max-width: 860px) { .nav { display: none; } .head-cta { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding: 42px 0 8px; }
.hero-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary-strong);
  border: 1px solid #d2e9dc;
  font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
  padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--app-green); box-shadow: 0 0 0 3px rgba(15, 157, 88, .16); }

.hero h1 { margin-bottom: 16px; }
.hl { color: var(--primary); }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); max-width: 34em; margin-bottom: 26px; }

.hero-checks { list-style: none; display: grid; gap: 8px; padding: 0; margin: 22px 0 0; font-size: .9375rem; }
.hero-checks li { display: flex; align-items: center; gap: 9px; }
.ico-check { color: var(--app-green); stroke-width: 2.6; }

.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; color: #5b7178; margin: 18px 0 0; }
.meta-line span[aria-hidden] { opacity: .45; }

/* phone mockup */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(310px, 78vw); aspect-ratio: 9 / 19.5;
  background: #0b1f17; border-radius: 40px; padding: 10px;
  box-shadow: var(--sh-3), inset 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
}
.phone::after {
  content: ""; position: absolute; inset: 0; border-radius: 40px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); pointer-events: none;
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 20px; background: #0b1f17; border-radius: var(--r-pill); z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 32px; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh-2);
  font-size: .8125rem; line-height: 1.25; color: var(--body);
}
.float-card b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .9375rem; }
.float-card small { font-size: .75rem; }
.float-1 { top: 11%; left: -6%; }
.float-2 { top: 33%; right: -5%; }
.fc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--app-green); box-shadow: 0 0 0 4px rgba(15, 157, 88, .14); }
@media (max-width: 620px) {
  .float-1 { left: -2%; top: 7%; }
  .float-2 { right: -2%; top: 31%; }
  .float-card { padding: 8px 11px; font-size: .75rem; }
  .float-card b { font-size: .875rem; }
}

/* trust strip */
.trust-strip {
  list-style: none; display: grid; gap: 2px 10px; grid-template-columns: repeat(4, 1fr);
  padding: 0; margin: 44px 0 0; border-top: 1px solid var(--border);
}
.trust-strip li {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 4px; font-size: .875rem; font-weight: 500; color: var(--ink-soft);
}
.trust-strip .ico { color: var(--primary); }
@media (max-width: 800px) { .trust-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .trust-strip { grid-template-columns: 1fr; } .trust-strip li { padding: 12px 2px; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 5vw, 88px) 0; }
.section-alt { background: #fff; border-block: 1px solid var(--border); }
.sec-head { max-width: 660px; margin-bottom: 40px; }
.kicker {
  font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 10px;
}
.sec-sub { font-size: 1.0625rem; margin-bottom: 0; }

/* cards */
.cards-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--sh-1);
}
.card h3 { margin-top: 14px; }
.card p { margin-bottom: 0; font-size: .9375rem; }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
}
.card-ico .ico { width: 22px; height: 22px; }

/* features */
.feat-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}
.feat:hover { border-color: var(--border-strong); box-shadow: var(--sh-1); transform: translateY(-2px); background: #fff; }
.feat-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--border); color: var(--primary); margin-bottom: 14px; }
.feat p { margin: 0; font-size: .9375rem; }

/* industries */
.industry-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.industry-list li {
  flex: 0 1 330px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px; display: flex; flex-direction: column; gap: 2px;
}
.ind-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.ind-ico .ico { width: 22px; height: 22px; }
.industry-list b { font-family: var(--font-head); color: var(--ink); font-size: 1rem; letter-spacing: -.01em; }
.industry-list small { color: var(--body); font-size: .8125rem; line-height: 1.45; }

/* band */
.band { background: var(--ink); color: #cfe0da; padding: clamp(56px, 5vw, 84px) 0; }
.band h2 { color: #fff; }
.band-lede { color: #cfe0da; max-width: 34em; }
.band-grid { display: grid; gap: 44px; grid-template-columns: 1.05fr .95fr; align-items: center; }
@media (max-width: 880px) { .band-grid { grid-template-columns: 1fr; gap: 32px; } }
.band-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.band-list li { position: relative; padding-left: 26px; font-size: .9375rem; }
.band-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 3px; background: var(--app-green);
  box-shadow: 0 0 0 4px rgba(15, 157, 88, .16);
}
.band-list b { color: #fff; font-weight: 600; }

.signal {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-2);
}
.signal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .875rem; color: #fff; font-weight: 600; }
.badge-off { background: rgba(245, 158, 11, .16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .34); border-radius: var(--r-pill); padding: 4px 11px; font-size: .75rem; font-weight: 600; }
.signal-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.sig-line { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 14px 12px; text-align: center; }
.sig-line b { display: block; font-family: var(--font-head); color: #fff; font-size: 1.0625rem; }
.sig-line small { color: #a8c3ba; font-size: .6875rem; line-height: 1.3; display: block; margin-top: 4px; }
.sig-foot { font-size: .75rem; color: #a8c3ba; text-align: center; }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; }
.step-n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .9375rem;
}
.steps h3 { margin: 2px 0 6px; }
.steps p { margin: 0; font-size: .9375rem; }
.steps em { color: var(--ink); font-style: normal; font-weight: 600; }

.install-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 16px 18px;
  background: var(--primary-soft); border: 1px solid #d2e9dc; border-radius: var(--r-md);
  font-size: .9375rem;
}
.install-note .ico { color: var(--primary); margin-top: 2px; }
.install-note p { margin: 0; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 4px 20px; transition: border-color .16s ease, box-shadow .16s ease;
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--sh-1); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 34px 18px 0; font-weight: 600; color: var(--ink); font-size: 1rem;
  display: flex; align-items: center; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 18px; font-size: .9375rem; }

/* final */
.final { padding: clamp(56px, 5vw, 88px) 0; background: linear-gradient(180deg, #ffffff, var(--primary-soft)); border-top: 1px solid var(--border); }
.final-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.final-logo { margin-bottom: 12px; }
.final h2 { max-width: 22em; }
.final p { max-width: 36em; }
.final .meta-line { justify-content: center; }

/* footer */
.site-foot { background: #fff; border-top: 1px solid var(--border); padding: 44px 0 26px; }
.foot-grid { display: flex; gap: 40px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand p { font-size: .875rem; margin: 12px 0 0; }
.foot-links { display: grid; gap: 10px 28px; grid-template-columns: repeat(2, auto); }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: .9375rem; }
.foot-links a:hover { color: var(--primary-strong); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); }
.foot-bottom p { margin: 0; font-size: .8125rem; color: #6b838c; }

/* mobile sticky cta */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .22s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { width: 100%; }
@media (min-width: 861px) { .mobile-cta { display: none; } }
@media (max-width: 860px) { body { padding-bottom: 78px; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- support card (Zalo) ---------- */
.support-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 16px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.support-txt { max-width: 46ch; }
.support-txt h3 { margin: 0 0 4px; }
.support-txt p { margin: 0; font-size: .9375rem; }
.support-txt b { color: var(--ink); }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-zalo { background: #0b6fef; color: #fff; }
.btn-zalo:hover { background: #0959c4; color: #fff; }
@media (max-width: 560px) { .support-actions { width: 100%; } .support-actions .btn { flex: 1 1 150px; } }

.foot-contact { display: grid; gap: 8px; align-content: start; }
.foot-title { margin: 0 0 2px; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .875rem; letter-spacing: .02em; }
.foot-contact a { color: var(--ink-soft); text-decoration: none; font-size: .9375rem; }
.foot-contact a:hover { color: var(--primary-strong); text-decoration: underline; }

.tag-pro {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  background: var(--primary-soft); color: var(--primary-strong);
  border: 1px solid #cfe8dc; border-radius: var(--r-pill);
  font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px;
}
