/* Học cùng Tako — trang công khai (Store readiness, 01/11/2026).
   Landing (nhúng vào vỏ app ở "/") + trang pháp lý/giới thiệu do Worker vẽ (src/site-pages.js).
   Chỉ dùng token --tk-* của tako.css (không định nghĩa lại mã màu thương hiệu). Mọi lớp có tiền tố tks-.
   Không inline style, không JS. */

/* ---------- nền chung ---------- */
.tks-page { background: var(--tk-beige); color: var(--tk-charcoal); }
.tks-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.tks-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--tk-indigo); color: #fff; padding: 10px 16px; border-radius: 12px; }
.tks-skip:focus { left: 12px; }
.tks-page a, .tks-landing a { color: var(--tk-indigo-600); }
.tks-page h1, .tks-page h2, .tks-page h3, .tks-landing h1, .tks-landing h2, .tks-landing h3 { color: var(--tk-indigo); line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tks-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tk-coral-700); margin: 0 0 6px; }
.tks-lead { font-size: 18px; color: var(--tk-slate); line-height: 1.6; }
.tks-small { font-size: 14px; color: var(--tk-slate); }

/* ---------- nút ---------- */
.tks-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; background: var(--tk-coral-600); color: #fff !important; font-weight: 800; text-decoration: none;
  border: 2px solid var(--tk-coral-600); box-shadow: 0 6px 0 -2px var(--tk-coral-800); transition: transform .12s, box-shadow .12s; text-align: center; }
.tks-btn:hover { transform: translateY(-1px); }
.tks-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 -2px var(--tk-coral-800); }
.tks-btn:focus-visible, .tks-store:focus-visible, .tks-page a:focus-visible, .tks-landing a:focus-visible, .tks-faq summary:focus-visible { outline: 3px solid var(--tk-indigo-600); outline-offset: 3px; }
.tks-btn-ghost { background: #fff; color: var(--tk-indigo) !important; border-color: var(--tk-indigo-100); box-shadow: 0 4px 0 -2px var(--tk-indigo-100); }
.tks-btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.tks-btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.tks-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }

/* ---------- đầu trang (trang pháp lý) ---------- */
.tks-top { position: sticky; top: 0; z-index: 50; background: rgba(255,247,237,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #F1E3D3; }
.tks-top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.tks-logo { display: inline-flex; flex: none; }
.tks-logo img { width: 120px; height: auto; display: block; }
.tks-nav { display: none; gap: 4px; margin-left: auto; align-items: center; }
.tks-nav a { padding: 8px 12px; border-radius: 10px; color: var(--tk-charcoal); text-decoration: none; font-weight: 650; font-size: 15px; }
.tks-nav a:hover, .tks-nav a[aria-current="page"] { background: var(--tk-indigo-50); color: var(--tk-indigo); }
.tks-top .tks-btn { margin-left: auto; }
@media (min-width: 760px) { .tks-nav { display: flex; } .tks-top .tks-btn { margin-left: 8px; } .tks-logo img { width: 140px; } }

/* ---------- tài liệu (chính sách, điều khoản…) ---------- */
.tks-main { display: block; width: 100%; max-width: 820px; margin: 0 auto; padding: 28px 20px 56px; outline: none; }
.tks-doc-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.tks-doc-art { width: 84px; height: 84px; flex: none; }
.tks-doc-head h1 { font-size: 30px; margin: 0 0 8px; }
.tks-meta { font-size: 14px; color: var(--tk-slate); margin: 8px 0 0; }
@media (min-width: 640px) { .tks-doc-art { width: 128px; height: 128px; } .tks-doc-head h1 { font-size: 38px; } }
.tks-toc { background: #fff; border: 1px solid #F1E3D3; border-radius: 18px; padding: 14px 18px; margin: 0 0 18px; }
.tks-toc ol { margin: 0; padding-left: 22px; columns: 1; }
@media (min-width: 640px) { .tks-toc ol { columns: 2; column-gap: 28px; } }
.tks-toc li { margin: 4px 0; break-inside: avoid; }
.tks-sec { background: #fff; border: 1px solid #F1E3D3; border-radius: 22px; padding: 20px 20px 8px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(31,41,55,.04); }
.tks-sec h2 { font-size: 21px; margin: 0 0 12px; }
.tks-sec h3 { font-size: 17px; margin: 18px 0 8px; }
.tks-sec ul, .tks-sec ol { padding-left: 22px; }
.tks-sec li { margin: 6px 0; }
.tks-sec p, .tks-sec li { overflow-wrap: anywhere; }
.tks-steps li { margin: 10px 0; padding-left: 4px; }
.tks-callout { background: var(--tk-indigo-50); border: 2px solid var(--tk-indigo-100); border-radius: 22px; padding: 18px 20px; margin: 0 0 16px; }
.tks-callout p { margin: 0 0 10px; }
.tks-callout p:last-child { margin-bottom: 0; }
.tks-table-wrap { overflow-x: auto; margin: 0 0 14px; border-radius: 14px; border: 1px solid #F1E3D3; }
.tks-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tks-table th, .tks-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #F1E3D3; }
.tks-table th { background: var(--tk-beige); color: var(--tk-indigo); font-weight: 800; }
.tks-table tr:last-child td { border-bottom: 0; }
.tks-faq { border: 1px solid #F1E3D3; border-radius: 16px; background: #fff; margin: 0 0 10px; }
.tks-faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 750; color: var(--tk-indigo); list-style: none; position: relative; min-height: 48px; }
.tks-faq summary::-webkit-details-marker { display: none; }
.tks-faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 22px; color: var(--tk-coral-600); }
.tks-faq[open] summary::after { content: "–"; }
.tks-faq p { margin: 0; padding: 0 16px 14px; color: var(--tk-charcoal); }

/* ---------- trang Giới thiệu (cùng ngôn ngữ landing v2) ---------- */
.tks-about-hero { display: grid; gap: 8px; align-items: center; margin: 0 0 18px; padding: 26px 22px 18px; border-radius: 30px; position: relative; overflow: hidden;
  background: radial-gradient(70% 80% at 100% 0%, #FFE6DE 0%, rgba(255,230,222,0) 60%), radial-gradient(60% 70% at 0% 100%, var(--tk-indigo-50) 0%, rgba(239,237,248,0) 70%), #fff; border: 1px solid #F1E3D3; }
.tks-about-hero h1 { font-size: clamp(28px, 7vw, 42px); line-height: 1.12; font-weight: 900; margin: 0 0 10px; }
.tks-about-art { width: min(44vw, 180px); height: auto; justify-self: center; order: -1; filter: drop-shadow(0 18px 24px rgba(48,36,109,.18)); }
.tks-about-stats { list-style: none; padding: 18px; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border-radius: 24px; background: linear-gradient(120deg, var(--tk-indigo-800, #231A52), var(--tk-indigo)); }
.tks-about-stats li { display: flex; flex-direction: column; color: #DEDAF2; font-size: 14px; font-weight: 600; }
.tks-about-stats b { color: #fff; font-size: 30px; font-weight: 900; line-height: 1.1; }
.tks-sec-plain { background: transparent; border: 0; box-shadow: none; padding: 8px 0; }
.tks-about-cards { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px; }
.tks-about-cards li { background: #fff; border: 1px solid #F1E3D3; border-radius: 22px; padding: 18px; margin: 0 !important; }
.tks-about-cards img { width: 44px; height: 44px; }
.tks-about-cards h3 { font-size: 18px; margin: 10px 0 4px; }
.tks-about-cards p { margin: 0; color: var(--tk-slate); }
@media (min-width: 640px) {
  .tks-about-hero { grid-template-columns: 1.4fr 1fr; padding: 34px 34px 26px; gap: 20px; }
  .tks-about-art { order: 0; width: 100%; max-width: 280px; }
  .tks-about-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 24px; }
  .tks-about-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- chân trang (cột liên kết — dùng chung landing + trang pháp lý) ---------- */
.tks-foot { background: var(--tk-indigo); color: #EFEDF8; padding: 44px 0 36px; margin-top: 32px; }
.tks-foot-grid { display: grid; gap: 28px; }
.tks-foot-brand img { width: 150px; height: auto; display: block; }
.tks-foot-brand p { margin: 12px 0 0; color: #C9C3EA; font-size: 14.5px; line-height: 1.6; max-width: 320px; }
.tks-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.tks-foot-h { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #FFB347; }
.tks-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tks-foot-col a { display: inline-block; padding: 4px 0; color: #fff !important; font-weight: 600; text-decoration: none; font-size: 15px; }
.tks-foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tks-foot a { color: #fff !important; }
.tks-foot-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.tks-foot-note { font-size: 13px; line-height: 1.6; color: #C9C3EA; max-width: 920px; margin: 6px 0 0; overflow-wrap: anywhere; }
@media (min-width: 860px) { .tks-foot-grid { grid-template-columns: 1fr 2.4fr; gap: 48px; } .tks-foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ================= LANDING (khách, "/") — giao diện chính ở /landing.css (landing v2) ================= */
/* Khi landing hiện: ẩn thanh bên/thanh tab của app, nội dung tràn hết chiều ngang.
   (Lớp html.v7-h-bare do v7-inline.js / app.js đặt; quy tắc hiện/ẩn chính nằm trong v7.css — gói CSS chặn hiển thị.) */
html.v7-h-bare body.v8-guest .shell { display: block; }
html.v7-h-bare body.v8-guest .side, html.v7-h-bare body.v8-guest #verifyBanner { display: none; }
html.v7-h-bare body.v8-guest .content { max-width: none; padding: 0; margin: 0; }
.tks-landing { color: var(--tk-charcoal); overflow-x: clip; }
/* Huy hiệu Store (landing + trang khác) */
.tks-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tks-store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px; border-radius: 14px;
  background: var(--tk-charcoal); color: #fff !important; text-decoration: none; line-height: 1.15; }
.tks-store span { display: flex; flex-direction: column; font-weight: 800; font-size: 16px; }
.tks-store small { font-weight: 500; font-size: 11.5px; opacity: .85; }
.tks-store.is-soon { background: #fff; color: var(--tk-slate) !important; border: 2px dashed #DECDBA; }
@media (display-mode: standalone) { .tks-stores { display: none; } }

/* ---------- 404 tĩnh ---------- */
.tks-404 { text-align: center; padding: 48px 20px 64px; max-width: 640px; margin: 0 auto; }
.tks-404 img { width: 180px; height: auto; }
.tks-404 h1 { font-size: 34px; margin: 12px 0 8px; }
.tks-404 .tks-cta { justify-content: center; }

@media (prefers-reduced-motion: reduce) { .tks-btn { transition: none; } .tks-btn:hover, .tks-btn:active { transform: none; } }
