/* KLED – LED Studio · landing page kled.ketx.vn · KETx */
:root {
  --bg: #0a0c11;
  --bg-2: #0f1219;
  --surface: #141823;
  --surface-2: #1a1f2c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #f4f5f8;
  --ink-2: #c9ceda;
  --muted: #8f98aa;
  --accent: #f7941d;
  --accent-2: #ffc046;
  --accent-ink: #1a1004;
  --ok: #2fd27a;
  --err: #ff6b5b;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: clamp(30px, 4vw, 48px); }
.h2 em { font-style: normal; color: var(--muted); }
.lead { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 62ch; }
.grad { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15.5px; cursor: pointer; white-space: nowrap; transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-p { background: linear-gradient(180deg, #ffa53a, var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 30px -8px rgba(247, 148, 29, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-p:hover { box-shadow: 0 12px 38px -8px rgba(247, 148, 29, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-g { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--ink); }
.btn-g:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link { color: var(--accent-2); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease); }
.link:hover { background-size: 100% 1px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(10, 12, 17, .82); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- sections ---------- */
main > section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 780px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) !important; overflow: hidden; isolation: isolate; }
.hero::before { /* lưới điểm LED */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(255, 170, 60, .22) 1.1px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 75%);
  opacity: .55;
}
.hero::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: min(1100px, 120vw); height: 620px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(247, 148, 29, .26), transparent 70%); filter: blur(20px); animation: glow 7s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .7; transform: translate(-50%, -50%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 22px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); transition: border-color .2s, transform .18s var(--ease); }
.badge:hover { border-color: rgba(247, 148, 29, .5); transform: translateY(-2px); }
.badge b { background: var(--accent); color: var(--accent-ink); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(36px, 6.2vw, 76px); max-width: 15ch; letter-spacing: -.035em; }
.hero .lead { text-align: center; margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--ok); }
.hero-shot { margin-top: clamp(40px, 6vw, 72px); }

/* app frame */
.frame { position: relative; border-radius: var(--r-m); background: #07090d; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #10131a; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4b; }
.frame-bar i:nth-child(1) { background: #ff5f57; } .frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-left: 10px; }
.hero .frame { box-shadow: 0 50px 140px -30px rgba(247, 148, 29, .35), 0 40px 100px -40px rgba(0, 0, 0, .9); }
.zoom { display: block; overflow: hidden; cursor: zoom-in; position: relative; border: 0; padding: 0; background: none; width: 100%; }
.zoom img { width: 100%; transition: transform .6s var(--ease); }
.zoom:hover img { transform: scale(1.025); }
.zoom::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 10px; background: rgba(10, 12, 17, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; backdrop-filter: blur(6px); }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; transform: none; }

/* entrance (một lần khi tải trang) */
[data-enter] > * { animation: enter .8s var(--ease) both; }
[data-enter] > *:nth-child(2) { animation-delay: .07s; } [data-enter] > *:nth-child(3) { animation-delay: .14s; }
[data-enter] > *:nth-child(4) { animation-delay: .21s; } [data-enter] > *:nth-child(5) { animation-delay: .28s; }
.hero-shot { animation: enterShot 1.1s .3s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes enterShot { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- số liệu ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.stat { background: var(--bg-2); padding: 26px 20px; display: grid; gap: 4px; }
.stat b { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------- khối tính năng: ảnh + chữ ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.rev .split-copy { order: 2; }
.split-copy { display: grid; gap: 20px; align-content: start; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); line-height: 1.5; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: rgba(247, 148, 29, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb547' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks b { color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }

/* nhiều ảnh */
.duo { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 20px; align-items: stretch; }
.duo .frame:first-child { grid-row: 1 / span 2; }
.duo .frame .zoom, .duo .frame .zoom img { height: 100%; }
.duo .frame .zoom img { object-fit: cover; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

/* điện thoại */
.phones { display: flex; gap: 20px; justify-content: center; align-items: flex-end; }
.phone { width: min(260px, 44%); border-radius: 34px; padding: 10px; background: #050608; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.phone .zoom { border-radius: 26px; }
.phone:nth-child(2) { transform: translateY(-36px); }

/* thẻ tính năng nhỏ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; display: grid; gap: 10px; align-content: start; transition: transform .2s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: rgba(247, 148, 29, .35); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(247, 148, 29, .22), rgba(247, 148, 29, .06)); color: var(--accent-2); border: 1px solid rgba(247, 148, 29, .25); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- các bước ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { position: relative; padding: 26px 22px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: st; content: counter(st, decimal-leading-zero); font-size: 14px; font-weight: 800; color: var(--accent); letter-spacing: .06em; }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- mua key ---------- */
.buy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 3vw, 34px); }
.panel h3 { font-size: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; display: grid; place-items: center; }
.plans { min-width: 0; display: grid; gap: 12px; border: 0; padding: 0; margin: 0 0 26px; }
.plan { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 18px 18px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s, transform .18s var(--ease); }
.plan:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .28); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: border-color .2s; }
.plan .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .2s var(--ease); }
.plan:has(input:checked) { border-color: var(--accent); background: linear-gradient(180deg, rgba(247, 148, 29, .1), rgba(247, 148, 29, .03)); }
.plan:has(input:checked) .dot { border-color: var(--accent); }
.plan:has(input:checked) .dot::after { transform: scale(1); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.plan b { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan small { display: block; color: var(--muted); font-size: 13.5px; }
.plan strong { font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); letter-spacing: .02em; }
.tag.soft { background: rgba(255, 255, 255, .08); color: var(--ink-2); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.field { display: grid; gap: 6px; }
.field.w2 { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 52px; }
.field input::placeholder, .field textarea::placeholder { color: #5f6778; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(247, 148, 29, .2); }
.field input[type=checkbox], .field input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; box-shadow: none; }
.field.bad input, .field.bad textarea { border-color: var(--err); }
.field .hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.field .err { font-size: 13px; color: var(--err); min-height: 0; }
.field .err:empty { display: none; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--ink-2); font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.vc { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.vc .btn { min-height: 48px; border-radius: 12px; }
.ok-txt { color: var(--ok) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.methods { min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.method { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; font-size: 14.5px; font-weight: 600; transition: border-color .2s, transform .18s var(--ease); }
.method:hover { transform: translateY(-2px); }
.method input { accent-color: var(--accent); }
.method:has(input:checked) { border-color: var(--accent); background: rgba(247, 148, 29, .08); }

.sum { display: grid; gap: 10px; padding: 20px 0; margin: 6px 0 18px; border-block: 1px dashed var(--line-2); }
.sum div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.sum .disc { color: var(--ok); }
.sum .tot { color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.buy .btn-p { width: 100%; min-height: 56px; font-size: 17px; }
.note { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 14px; }
.note svg { width: 18px; height: 18px; color: var(--accent-2); margin-top: 1px; }
.side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.side .panel { padding: 24px; }
.side h4 { font-size: 16px; margin-bottom: 12px; }
.side .ticks li { font-size: 15px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-row .btn { min-height: 44px; font-size: 14.5px; }

/* bước thanh toán */
.buy-wrap { container-type: inline-size; }
.pay { display: none; }
.buy-wrap.paying .pay { display: block; }
.buy-wrap.paying .order-form { display: none; }
.pay-grid { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.qr { background: #fff; border-radius: var(--r-m); padding: 12px; position: relative; overflow: hidden; }
.qr img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.qr::after { content: ""; position: absolute; left: 8%; right: 8%; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 12px var(--accent); animation: scan 2.8s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 10%; } 50% { top: 88%; } }
.bank { display: grid; gap: 2px; }
.bank div { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bank dt { color: var(--muted); font-size: 14px; }
.bank dd { margin: 0; font-weight: 700; word-break: break-all; }
.bank .amt dd { font-size: 22px; color: var(--accent-2); white-space: nowrap; word-break: normal; }
@container (max-width: 620px) { .pay-grid { grid-template-columns: 1fr; } .qr { max-width: 240px; margin-inline: auto; } .bank div { grid-template-columns: 110px 1fr auto; } }
.cp { min-height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 13px; transition: border-color .2s, transform .18s var(--ease); }
.cp:hover { border-color: var(--accent); transform: translateY(-1px); }
.wait { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.wait .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(247, 148, 29, .6); } 50% { box-shadow: 0 0 0 8px rgba(247, 148, 29, 0); } }
.wait.exp { border-color: rgba(255, 107, 91, .4); }
.wait.exp .pulse { background: var(--err); animation: none; }
.done { text-align: center; display: grid; gap: 16px; justify-items: center; }
.done .big { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 210, 122, .14); color: var(--ok); }
.done .big svg { width: 32px; height: 32px; }
.keybox { width: 100%; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px dashed rgba(47, 210, 122, .5); font-size: 15px; word-break: break-all; text-align: left; white-space: pre-wrap; }

/* ---------- tải về ---------- */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl a { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 22px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
.dl a:hover { transform: translateY(-2px); border-color: rgba(247, 148, 29, .45); }
.dl a svg { width: 34px; height: 34px; }
.dl b { display: block; font-size: 17px; }
.dl small { color: var(--muted); font-size: 13.5px; }
.dl a.rec { border-color: var(--accent); }
.dl a.rec::after { content: "Khuyên dùng cho máy bạn"; position: absolute; top: -11px; right: 16px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.dl-foot { margin-top: 18px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- hỏi đáp ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); transition: border-color .2s; }
.faq details[open] { border-color: rgba(247, 148, 29, .35); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- kết + chân trang ---------- */
.close { text-align: center; overflow: hidden; isolation: isolate; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(247, 148, 29, .22), transparent 70%); }
.close h2 { font-size: clamp(34px, 5.5vw, 68px); max-width: 16ch; margin: 0 auto 20px; letter-spacing: -.035em; }
.close .hero-cta { margin-top: 30px; }
footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--muted); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--ink); font-size: 14px; margin-bottom: 12px; letter-spacing: .02em; }
.foot ul { display: grid; gap: 8px; }
.foot a:hover { color: var(--ink); }
.foot .brand img { height: 40px; }
.foot p { margin-top: 14px; max-width: 40ch; }
.copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; }

/* thanh mua cố định trên điện thoại */
.mbar { display: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 300; background: #1f2431; border: 1px solid var(--line-2); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-size: 14.5px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* lightbox */
dialog.lb { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(4, 5, 8, .92); backdrop-filter: blur(4px); }
.lb-in { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 20px 20px; }
.lb img { max-width: min(1600px, 100%); max-height: calc(100vh - 80px); width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
.lb-x { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20, 24, 35, .9); color: var(--ink); font-size: 22px; cursor: pointer; transition: transform .18s; }
.lb-x:hover { transform: rotate(90deg); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav .menu-btn { display: inline-flex; margin-left: auto; }
  /* backdrop-filter khiến phần tử fixed bên trong bám theo thanh nav, nên tắt khi mở menu */
  .nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav.open .nav-links { display: grid; position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); overflow-y: auto; padding: 24px var(--pad); gap: 4px; background: var(--bg); align-content: start; }
  .nav.open .nav-links a { font-size: 20px; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .buy { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 880px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .split-copy { order: 0; }
  .dl { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .pay-grid { grid-template-columns: 1fr; }
  .qr { max-width: 260px; margin-inline: auto; }
}
@media (max-width: 600px) {
  :root { --nav-h: 62px; }
  .nav .btn-nav { display: none; }
  .brand img { height: 30px; }
  .hero-cta .btn, .close .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards, .steps, .duo, .pair, .form { grid-template-columns: 1fr; }
  .duo .frame:first-child { grid-row: auto; }
  .frame-bar { height: 26px; } .frame-bar i { width: 8px; height: 8px; } .frame-bar span { display: none; }
  .plan { grid-template-columns: 22px 1fr; }
  .plan strong { grid-column: 2; font-size: 19px; }
  .bank div { grid-template-columns: 1fr auto; }
  .bank dt { grid-column: 1 / -1; }
  .phone:nth-child(2) { transform: none; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 12, 17, .92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform .3s var(--ease); }
  .mbar .btn { flex: 1; min-height: 46px; }
  .mbar.hide { transform: translateY(110%); }
  body { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
