/* tku.vn — styles for the one page this host serves.
   Mobile first and mobile only in practice: this page is reached by scanning a 15 mm QR code
   with a phone. Desktop gets the same column, centred and capped.

   Tokens are copied from web/assets/css/site.css on purpose, not imported — the two sites are
   different hosts and this page must render with nothing loaded from thiepkyuc.vn. Đổi màu
   nhận diện thì sửa cả hai. */

/* ---------- tokens ---------- */
:root {
  --paper:      #FBF7F1;
  --paper-2:    #F4EDE3;
  --ink:        #2A2320;
  --ink-soft:   #5F544C;
  --ink-faint:  #8B7F76;
  --accent:     #B94D33;
  --accent-deep:#8E3A24;
  --line:       rgba(42, 35, 32, .12);
  --line-soft:  rgba(42, 35, 32, .07);
  --shadow-sm:  0 1px 2px rgba(42,35,32,.06), 0 2px 8px rgba(42,35,32,.05);
  --shadow-md:  0 2px 4px rgba(42,35,32,.05), 0 12px 32px rgba(42,35,32,.09);
  --radius:     14px;
  --radius-lg:  20px;
  --wrap:       480px;
  --pad:        20px;
  --font-sans:  "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

/* Mọi `display` bên dưới đều thắng `[hidden]` của trình duyệt (nó chỉ là `display: none` trong
   user-agent stylesheet). Thiếu dòng này thì nút "Mở trong ứng dụng" — chỉ dành cho Android —
   hiện trên mọi máy dù tku.js đã đặt hidden. */
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
h2 { font-size: clamp(1.35rem, 5.2vw, 1.7rem); }
h3 { font-size: 1.05rem; margin-bottom: .3em; }
p  { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1px 5px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--wrap); margin-inline: auto;
  padding: 14px var(--pad);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__mark { width: 28px; height: 28px; border-radius: 7px; }
.bar__host {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}

/* ---------- sections ---------- */
.hero, .section {
  max-width: var(--wrap); margin-inline: auto;
  padding: 30px var(--pad) 34px;
}
.section--alt {
  max-width: none;
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}
/* .section--alt trải hết chiều ngang nhưng chữ vẫn phải nằm trong cùng một cột với phần
   còn lại — nên cột được dựng lại bằng padding thay vì max-width. */
@media (min-width: 520px) {
  .section--alt { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--pad)); }
}

.eyebrow {
  display: block;
  font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.lede { color: var(--ink-soft); }
.note { color: var(--ink-faint); font-size: .92rem; margin-top: 16px; }
.more { margin-top: 18px; font-weight: 600; font-size: .95rem; }

/* ---------- the link card: what did I just scan ---------- */
.link-card {
  margin: 22px 0 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.link-card__title { font-size: 1.1rem; margin-bottom: .35em; }
.link-card__body { color: var(--ink-soft); font-size: .95rem; }
.link-card__code {
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem;
  color: var(--ink-faint);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 9px 12px;
  overflow-wrap: anywhere;
}
.link-card .btn { margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px;                      /* ngón tay, không phải con trỏ */
  padding: 12px 22px;
  background: var(--accent); color: #fff;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .98rem;
  text-align: center; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: none; }
.btn--full { display: flex; width: 100%; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { color: var(--ink); background: rgba(42,35,32,.04); box-shadow: none; }

.btn-row { display: grid; gap: 10px; }

/* ---------- features ---------- */
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.feature__icon {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(185, 77, 51, .09);
  color: var(--accent);
}
.feature__icon svg { width: 21px; height: 21px; }

/* ---------- store buttons ---------- */
.store-row { display: grid; gap: 10px; margin-top: 20px; }
.store {
  display: flex; align-items: center; gap: 13px;
  min-height: 60px; padding: 11px 18px;
  background: var(--ink); color: var(--paper);
  border: 1px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.store:hover { color: var(--paper); text-decoration: none; box-shadow: var(--shadow-md); }
.store__icon { width: 24px; height: 24px; flex: 0 0 auto; }
.store span { display: block; font-weight: 600; line-height: 1.3; }
.store small {
  display: block;
  font-size: .72rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  opacity: .68;
}
.store--soon {
  background: transparent; color: var(--ink-faint);
  border: 1px dashed var(--line); box-shadow: none;
}

/* ---------- footer ---------- */
.foot {
  max-width: var(--wrap); margin-inline: auto;
  padding: 30px var(--pad) 40px;
  border-top: 1px solid var(--line-soft);
}
.foot__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.foot__list a { color: var(--ink-soft); font-size: .95rem; }
.foot__list a:hover { color: var(--accent-deep); }
.foot__bottom { margin-top: 22px; color: var(--ink-faint); font-size: .85rem; }
