/* Dùng chung cho trang đích và sảnh app (cùng bảng màu với trình phát và bài tự soi: nền tối ở cả hai chế độ). */
@font-face { font-family: "Taviraj"; src: url("/assets/fonts/Taviraj-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Taviraj"; src: url("/assets/fonts/Taviraj-ExtraLight.ttf") format("truetype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root { --space: #011e41; --deep: #010f22; --shuttle: #e2e5ec; --gray: #b1b1b1; --orange: #f16422; --white: #fff;
        --line: rgba(226, 229, 236, 0.14); --soft: rgba(226, 229, 236, 0.06); --dim: rgba(226, 229, 236, 0.7); color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --deep: #010f22; --shuttle: #e2e5ec; } }
:root[data-theme="dark"] { --deep: #010f22; --shuttle: #e2e5ec; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--deep); }
body { min-height: 100vh; background: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(40, 80, 130, 0.32), transparent 70%), var(--deep);
       background-attachment: fixed; color: var(--shuttle); font-family: "Manrope", system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { max-width: 600px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 20px) 16px calc(env(safe-area-inset-bottom, 0px) + 40px); }
h1, h2, .serif { font-family: "Taviraj", serif; font-weight: 300; color: var(--white); line-height: 1.2; }
h1 { font-size: clamp(34px, 9vw, 52px); }
h2 { font-size: 26px; margin-bottom: 6px; }
.lead { color: var(--dim); font-size: 16px; }
.muted { color: var(--dim); font-size: 13px; }
.bar-o { width: 56px; height: 2px; background: var(--orange); margin: 16px 0 18px; }
.top { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 18px; }
.top .brand { flex: 1; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; text-decoration: none; }
.lang { font-size: 12px; letter-spacing: 0.1em; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.card { display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; padding: 18px; margin-bottom: 12px; border-radius: 16px;
        background: var(--soft); border: 1px solid var(--line); text-decoration: none; }
.card:hover, .card:focus-visible { background: rgba(226, 229, 236, 0.1); outline: none; }
.card .ic { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(226, 229, 236, 0.6); flex: none; display: grid; place-items: center; }
.card .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card b { display: block; font-family: "Taviraj", serif; font-weight: 300; font-size: 23px; color: var(--white); line-height: 1.25; }
.card small { display: block; color: var(--dim); font-size: 14px; margin-top: 2px; }
.card em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--orange); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px;
        border: 1px solid rgba(226, 229, 236, 0.45); font-size: 15px; text-decoration: none; text-align: center; }
.pill.pri { background: var(--shuttle); color: var(--deep); border-color: var(--shuttle); font-weight: 600; }
.pill.ghost { border-color: var(--line); color: var(--dim); }
.acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.sec { margin-top: 34px; }
.sec-h { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 12px; }
.foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.install { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line); font-size: 14px; color: var(--dim); }
.install button { text-decoration: underline; text-underline-offset: 4px; color: var(--shuttle); }
.preview-tag { position: fixed; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); z-index: 9; font-size: 11px; letter-spacing: 0.08em;
               padding: 4px 10px; border-radius: 999px; background: rgba(241, 100, 34, 0.9); color: #fff; pointer-events: none; }
