/* Funnel pages: black and lime (plans/20261104-dai-trung-tu/reports/10-chuan-xanh-chanh.md).
   Plus Jakarta Sans is self-hosted in font/. Nothing here loads from another domain. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(font/plus-jakarta-sans-vietnamese-wght-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(font/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(font/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #050704; --bg-2: #0b0f08; --ink: #f4f6ee; --soft: rgba(244, 246, 238, .76); --faint: rgba(244, 246, 238, .6);
  --lime: #c8f542; --lime-lit: #e6ff66; --on-lime: #0a0f04; --lime-rgb: 200, 245, 66; --bg-rgb: 5, 7, 4;
  --hair: rgba(200, 245, 66, .22); --hair-soft: rgba(200, 245, 66, .1); --glass: rgba(16, 22, 10, .66);
  --warn: #ff7d7d; --gate: #ffd166; --ok: #9be58a;
  --ease: cubic-bezier(.16, 1, .3, 1); --gutter: clamp(18px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font: 500 15px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: var(--lime-lit); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--lime-lit); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* Sky on the inner pages: the planet horizon fading into black. The sign-up page has its own hero. */
body:not([data-page="dang-ky"])::before { content: ""; position: fixed; z-index: -1; left: 0; right: 0; top: 0; height: 52vh; background: url(img/lime-the-cau.webp) 50% 100% / cover no-repeat; opacity: .42; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent); mask-image: linear-gradient(180deg, #000 20%, transparent); }

main { position: relative; max-width: 40rem; margin: 0 auto; padding: 2.5rem var(--gutter) 6rem; }
body[data-page="xem"] main { max-width: 52rem; }
main > * { animation: rise .9s var(--ease) both; }
main > *:nth-child(2) { animation-delay: .08s; }
main > *:nth-child(3) { animation-delay: .16s; }
main > *:nth-child(n+4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Type: 800 and tight for titles, the second line of a headline (em) is lime */
h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin-bottom: 1rem; background: linear-gradient(180deg, #fff 18%, #bcc1b6 92%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
h1 em { font-style: normal; background: linear-gradient(96deg, var(--lime), var(--lime-lit)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(var(--lime-rgb), .3)); }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin: 3rem 0 1rem; }
h3 { font-size: 1.15rem; letter-spacing: -.02em; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1rem; color: var(--soft); }
strong, b { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; color: var(--soft); }
li { margin: .35rem 0; }
li::marker { color: var(--lime); }
blockquote { margin: 1.4rem 0; padding: 1rem 1.2rem; border-left: 2px solid var(--lime); border-radius: 0 12px 12px 0; background: var(--glass); color: var(--ink); }
blockquote p { color: inherit; margin: 0 0 .4rem; }
cite { display: block; font-size: .85rem; font-style: normal; color: var(--faint); }
hr { border: 0; border-top: 1px solid var(--hair); margin: 2.4rem 0; }
img { max-width: 100%; height: auto; }
table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--hair); color: var(--soft); }
th { color: var(--ink); font-weight: 700; }
details { border-top: 1px solid var(--hair); }
details:last-of-type { border-bottom: 1px solid var(--hair); }
summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--lime-lit); font-weight: 600; }
details[open] summary::after { content: "\2212"; }
details > *:not(summary) { padding-bottom: .4rem; }
.price { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; background: linear-gradient(96deg, var(--lime), var(--lime-lit)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel { padding: 1.2rem 1.3rem; border: 1px solid var(--hair); border-radius: 16px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Forms: dark glass fields, lime focus. 16px so phones do not zoom on focus. */
form { display: grid; gap: .95rem; margin: 1.5rem 0; }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--ink); }
input[type=text], input[type=email], input[type=tel] { font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); padding: .75rem .9rem; border: 1px solid var(--hair); border-radius: 12px; background: rgba(var(--bg-rgb), .7); transition: border-color .25s, box-shadow .25s; }
input::placeholder { color: var(--faint); }
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus { outline: 0; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(var(--lime-rgb), .18); }
label.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; font-size: .88rem; color: var(--soft); line-height: 1.5; }
label.check input { flex: none; margin: .15rem 0 0; width: 1.15rem; height: 1.15rem; accent-color: var(--lime); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--warn); min-height: 1.5em; margin: 0; }
.note { color: var(--faint); font-size: .9rem; }
#turnstile { min-height: 0; }

/* Buttons: primary is lime with dark text and a slow sheen; secondary is a lime outline */
button, .btn { position: relative; overflow: hidden; font: inherit; font-weight: 800; letter-spacing: -.005em; min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: 999px; background: linear-gradient(96deg, var(--lime), var(--lime-lit)); color: var(--on-lime); cursor: pointer; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 26px rgba(var(--lime-rgb), .22); transition: transform .35s var(--ease), box-shadow .35s; }
button:hover:not([disabled]), .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(var(--lime-rgb), .38); }
button::after, .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 42%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); transform: skewX(-18deg); animation: sweep 6.5s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0%, 72% { left: -60%; } 100% { left: 130%; } }
button[disabled] { opacity: .55; cursor: wait; }
button.small { min-height: 36px; padding: 0 .9rem; font-size: .85rem; font-weight: 700; background: transparent; color: var(--lime-lit); box-shadow: inset 0 0 0 1px rgba(var(--lime-rgb), .55); }
button.small:hover:not([disabled]) { background: rgba(var(--lime-rgb), .1); box-shadow: inset 0 0 0 1px var(--lime); }
button.small::after { display: none; }

video { width: 100%; background: #000; border-radius: 16px; border: 1px solid var(--hair); }

/* Zalo invite: a bar at the bottom, never a gate */
#zalo-bar { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--glass); border-top: 1px solid var(--hair); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center; }
#zalo-bar a { font-weight: 700; color: var(--lime-lit); }

/* Payment */
dl.bank { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem .9rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--hair); border-radius: 16px; background: var(--glass); }
dl.bank dt { color: var(--faint); font-size: .88rem; }
dl.bank dd { margin: 0; font-weight: 700; color: var(--ink); word-break: break-all; font-variant-numeric: tabular-nums; }
/* A QR code needs a light quiet zone around it, so it keeps a white tile */
#qr { width: 100%; max-width: 20rem; display: block; margin: 1rem auto; padding: .8rem; background: #fff; border-radius: 16px; box-shadow: 0 0 40px rgba(var(--lime-rgb), .18); }
#pay-status, #confirm-status, #simple-result { color: var(--lime-lit); font-weight: 600; min-height: 1.5em; }
#order-code { color: var(--lime-lit); letter-spacing: .04em; }

/* Sign-up hero: planet at the bottom, the brain on the right (a still, and a short loop on wide screens), copy and form over it */
.hero-media { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh; min-height: 640px; overflow: hidden; pointer-events: none; }
.hero-media .planet { position: absolute; left: 0; bottom: 0; width: 100%; height: 70%; object-fit: cover; object-position: 50% 100%; opacity: .75; -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); }
.brain { position: absolute; left: 3%; top: -3%; width: min(58vw, 900px); aspect-ratio: 3 / 2; mix-blend-mode: screen; overflow: hidden; -webkit-mask-image: radial-gradient(56% 50% at 50% 52%, #000 66%, transparent 98%); mask-image: radial-gradient(56% 50% at 50% 52%, #000 66%, transparent 98%); transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); transition: transform .6s var(--ease); will-change: transform; }
.brain img, .brain video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; background: none; }
.brain video { opacity: 0; transition: opacity .9s linear; }
.brain video.on { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 46% at 24% 84%, rgba(var(--bg-rgb), .82), rgba(var(--bg-rgb), 0) 100%), linear-gradient(0deg, rgba(var(--bg-rgb), .96) 0, rgba(var(--bg-rgb), 0) 20%); }
[data-slot="bullets"] ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
[data-slot="bullets"] li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--hair-soft); color: var(--soft); font-size: 1rem; }
[data-slot="bullets"] li::before { content: ""; position: absolute; left: .1rem; top: 1.05rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lime-lit); box-shadow: 0 0 10px rgba(var(--lime-rgb), .8); }
[data-slot="owner-photo"] img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 50%; border: 1px solid rgba(var(--lime-rgb), .3); }

/* Sales page (11 blocks) inside the video page */
[data-slot="sales-page"] { margin-top: 3rem; }
[data-slot="sales-page"] > section, [data-slot="sales-page"] > div { margin-top: 3.2rem; }
[data-slot="sales-page"] h2:first-child { margin-top: 0; }
[data-slot="sales-page"] p, [data-slot="sales-page"] li { font-size: 1rem; line-height: 1.7; max-width: 44rem; }
[data-slot="chapters"] ol { padding-left: 1.2rem; }

@media (max-width: 899px) {
  body { font-size: 15px; }
  .hero-media { height: 100vw; min-height: 0; }
  .hero-media .planet { height: 100%; opacity: .5; }
  .brain { left: 0; margin-left: 0; top: 0; width: 100%; transform: none; }
  .brain video { display: none; }
  .hero-media::after { background: linear-gradient(0deg, rgba(var(--bg-rgb), 1) 0, rgba(var(--bg-rgb), .9) 18%, rgba(var(--bg-rgb), 0) 70%); }
  main { padding-top: 1.6rem; }
  dl.bank { grid-template-columns: 1fr auto; }
  dl.bank dt { grid-column: 1 / -1; margin-top: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  main > * { animation: none; }
  button::after, .btn::after { display: none; }
  .brain { transform: none; transition: none; }
  .brain video { display: none; }
}
