/* Peeka — getpeeka.dev
   Màu phẳng (không gradient trang trí), icon SVG nét, sáng/tối theo hệ thống hoặc chọn tay. */

@property --v { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --bg: #FBF7F3;
  --bg-2: #F4EDE6;
  --surface: #FFFFFF;
  --line: #E9DFD6;
  --line-2: #DCCFC4;
  --text: #221A16;
  --muted: #6E615A;
  --faint: #9A8B83;
  --accent: #C96442;
  --accent-ink: #B4522F;
  --accent-soft: #F3B29C;
  --accent-bg: #FBE3D9;
  --on-accent: #FFFFFF;
  --wall: #E9DCD0;
  --wall-2: #E2D0C1;
  --wall-3: #F0E6DD;
  --wall-ink: #3C2F28;
  --menubar: rgba(255, 255, 255, .55);
  --shadow: 0 1px 2px rgba(60, 40, 30, .06), 0 8px 28px rgba(60, 40, 30, .08);
  --radius: 18px;
  --spring: cubic-bezier(.32, 1.32, .5, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141110; --bg-2: #1B1715; --surface: #1F1A17; --line: #2F2824; --line-2: #3D3430;
    --text: #F5EEE9; --muted: #B3A49B; --faint: #85766E;
    --accent: #E8906F; --accent-ink: #F3B29C; --accent-soft: #F3B29C; --accent-bg: #3A2620; --on-accent: #1E120D;
    --wall: #2B2420; --wall-2: #352C27; --wall-3: #241E1B; --wall-ink: #E7DCD5; --menubar: rgba(0, 0, 0, .28);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141110; --bg-2: #1B1715; --surface: #1F1A17; --line: #2F2824; --line-2: #3D3430;
  --text: #F5EEE9; --muted: #B3A49B; --faint: #85766E;
  --accent: #E8906F; --accent-ink: #F3B29C; --accent-soft: #F3B29C; --accent-bg: #3A2620; --on-accent: #1E120D;
  --wall: #2B2420; --wall-2: #352C27; --wall-3: #241E1B; --wall-ink: #E7DCD5; --menubar: rgba(0, 0, 0, .28);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.022em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
section { padding: clamp(64px, 10vw, 120px) 0; }
.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 6vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .9em; display: flex; align-items: center; gap: .6em; }
.section-head .kicker { justify-content: center; }
.pro { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: .2em .5em; border-radius: 5px; background: var(--accent-bg); color: var(--accent-ink); vertical-align: middle; margin-left: .35em; }

/* ───────── Buttons ───────── */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 1.15em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .97rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--spring);
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 36px; padding: 0 .95em; font-size: .88rem; }
.btn-lg { --h: 54px; padding: 0 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 1.15em; height: 1.15em; stroke-width: 2.1; }
.price-inline { color: var(--muted); font-weight: 500; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 550; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.tool {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 10px; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 .8rem/1 var(--font); text-decoration: none; cursor: pointer;
}
.tool:hover { color: var(--text); border-color: var(--line-2); }
.tool svg { width: 17px; height: 17px; }
.theme { padding: 0; }
.theme svg { display: none; }
:root:not([data-theme]) .t-auto, :root[data-theme="light"] .t-light, :root[data-theme="dark"] .t-dark { display: block; }

/* ───────── Hero ───────── */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.hero-copy { text-align: center; max-width: 880px; }
.hero .hl { color: var(--accent-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; margin-bottom: 26px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #3FA463; box-shadow: 0 0 0 3px color-mix(in srgb, #3FA463 22%, transparent); }
.lead { font-size: clamp(1.08rem, 2vw, 1.26rem); color: var(--muted); max-width: 680px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.meta { margin-top: 18px; font-size: .88rem; color: var(--faint); }
.hero-stage { margin: clamp(40px, 7vw, 72px) auto 0; max-width: 1040px; }

.strip { padding: 0 0 clamp(24px, 4vw, 40px); }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip p { margin: 0; display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; font-size: .92rem; font-weight: 550; color: var(--muted); background: var(--surface); }
.strip svg { color: var(--accent-ink); }

/* ───────── Feature sections ───────── */
.feature-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-grid.reverse > :first-child { order: 2; }
.feature-grid.reverse { grid-template-columns: 1.25fr 1fr; }
.feature-copy > p { color: var(--muted); font-size: 1.08rem; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .88rem; font-weight: 550;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chips li svg { width: 16px; height: 16px; }
.chips li.on { background: var(--accent-bg); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-ink); }
.chips .pro { margin-left: 2px; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 550; transition: all .3s; }
.steps li > span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 750; background: var(--bg-2); color: var(--muted); transition: all .3s; }
.steps li.on { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.steps li.on > span { background: var(--accent); color: var(--on-accent); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.ticks svg { color: var(--accent-ink); margin-top: .2em; stroke-width: 2.4; }

/* ───────── Stage: màn hình MacBook giả lập (1em ≈ 1/72 bề rộng) ───────── */
.stage-wrap { container-type: inline-size; margin: 0; width: 100%; }
.stage {
  --art: #E58A6B;
  position: relative; overflow: hidden; isolation: isolate;
  font-size: calc(100cqw / 72); aspect-ratio: 72 / 36;
  background: var(--wall); color: var(--wall-ink);
  border: .7em solid #121212; border-bottom-width: 0; border-radius: 2.2em 2.2em 0 0;
  box-shadow: var(--shadow);
  font-family: var(--font); line-height: 1.25;
  user-select: none; -webkit-user-select: none;
}
.stage-sm { font-size: calc(100cqw / 68); aspect-ratio: 68 / 36; border-radius: 2em; border-bottom-width: .7em; }
.z-act { font-size: calc(100cqw / 40); aspect-ratio: 40 / 15; }
.z-gest { font-size: calc(100cqw / 50); aspect-ratio: 50 / 21; }
.z-open { aspect-ratio: 68 / 29; }
.z-drop { font-size: calc(100cqw / 52); aspect-ratio: 52 / 28; }
.z-note { font-size: calc(100cqw / 50); aspect-ratio: 50 / 17; }
/* hình khối phẳng trên hình nền */
.stage::before, .stage::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.stage::before { width: 46em; height: 46em; right: -12em; bottom: -26em; background: var(--wall-2); }
.stage::after { width: 26em; height: 26em; left: -8em; top: 12em; background: var(--wall-3); }
.stage svg { width: 1.45em; height: 1.45em; stroke-width: 1.9; }

.menubar { position: absolute; inset: 0 0 auto; height: 3.2em; display: flex; align-items: center; justify-content: space-between; padding: 0 1.6em; background: var(--menubar); }
.menubar span, .menubar b { font-size: 1.15em; }
.mb-l, .mb-r { display: flex; align-items: center; gap: 1.2em; }
.mb-l svg { width: 1.35em; height: 1.35em; }
.mb-l b { font-weight: 700; }
.mb-r svg { width: 1.8em; }

/* Notch */
.notch {
  position: absolute; left: 50%; top: 0; z-index: 3; translate: -50% 0;
  width: 19em; height: 3.2em; background: #000; color: #fff;
  border-radius: 0 0 1.2em 1.2em;
  transition: width .6s var(--spring), height .6s var(--spring), border-radius .6s var(--spring), box-shadow .8s var(--ease);
}
.notch::before, .notch::after { content: ""; position: absolute; top: 0; width: .9em; height: .9em; pointer-events: none; }
.notch::before { right: 100%; border-top-right-radius: .9em; box-shadow: .35em -.35em 0 .35em #000; }
.notch::after { left: 100%; border-top-left-radius: .9em; box-shadow: -.35em -.35em 0 .35em #000; }
.notch[data-size="compact"] { width: 31em; }
.notch[data-size="cwide"] { width: 41em; }
.notch[data-size="wide"] { width: 44em; height: 10.5em; border-radius: 0 0 2.4em 2.4em; }
.notch[data-size="mid"] { width: 44em; height: 17em; border-radius: 0 0 2.8em 2.8em; }
.notch[data-size="open"] { width: 64em; height: 25em; border-radius: 0 0 3.2em 3.2em; }
.stage-sm .notch[data-size="open"] { width: 63em; }
.notch.glow { box-shadow: 0 .4em 2.6em .1em color-mix(in srgb, var(--art) 60%, transparent); }
.notch-glow { box-shadow: 0 .4em 3em .2em color-mix(in srgb, var(--glow) 55%, transparent); }

.nv { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.nv.on { opacity: 1; visibility: visible; transition: opacity .35s .18s, visibility 0s; }
.nv-c { display: flex; align-items: center; justify-content: space-between; padding: 0 1.2em; }
.nc-l, .nc-r { display: flex; align-items: center; gap: .6em; white-space: nowrap; }
.nc-l b, .nc-r b { font-size: 1.2em; font-weight: 650; }
.c-green { color: #4CD964; } .c-orange { color: #FF9F43; } .c-blue { color: #5AA9FF; }

.art { width: 2.1em; height: 2.1em; border-radius: .55em; background: var(--art); display: grid; place-items: center; transition: background-color .6s; flex: none; }
.art::after { content: ""; width: 42%; height: 42%; border-radius: 50%; border: .2em solid rgba(255, 255, 255, .8); }
.art-lg { width: 4.8em; height: 4.8em; border-radius: 1.05em; }
.art-lg::after { border-width: .35em; }
.bars { display: flex; align-items: center; gap: .22em; height: 1.6em; }
.bars i { width: .3em; height: 100%; border-radius: .2em; background: var(--art); transform-origin: center; animation: bar 1s ease-in-out infinite; transition: background-color .6s; }
.bars i:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.bars i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.15s; }
.bars i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
@keyframes bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.paused .bars i, .paused .track i, .paused .pdot { animation-play-state: paused; }

.batt { width: 2.6em; height: 1.25em; border: .14em solid currentColor; border-radius: .4em; padding: .14em; position: relative; }
.batt::after { content: ""; position: absolute; right: -.4em; top: 30%; width: .2em; height: 40%; border-radius: 0 .2em .2em 0; background: currentColor; }
.batt i { display: block; height: 100%; width: calc(var(--v) * 100%); background: currentColor; border-radius: .18em; }

.ring { --rc: #fff; --rw: .32em; position: relative; width: 1.9em; height: 1.9em; display: grid; place-items: center; flex: none; transition: --v .8s var(--ease); }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--rc) calc(var(--v) * 360deg), rgba(255, 255, 255, .17) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw) - .02em), #000 calc(100% - var(--rw)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw) - .02em), #000 calc(100% - var(--rw))); }
.ring-green { --rc: #4CD964; } .ring-orange { --rc: #FF9F43; } .ring-blue { --rc: #5AA9FF; } .ring-yellow { --rc: #FFD60A; }
.ring-lg { width: 5.2em; height: 5.2em; --rw: .5em; }
.ring-lg svg { width: 1.9em; height: 1.9em; }
.ring-xl { width: 7.4em; height: 7.4em; --rw: .65em; }

.level { width: 6em; height: .55em; border-radius: 1em; background: rgba(255, 255, 255, .2); overflow: hidden; }
.level i { display: block; height: 100%; width: calc(var(--v) * 100%); background: #fff; border-radius: inherit; transition: width .25s var(--ease); }
.pdot { width: .8em; height: .8em; border-radius: 50%; background: #4CD964; box-shadow: 0 0 0 .3em rgba(76, 217, 100, .25); animation: pulse 1.6s ease-in-out infinite; }
.pdot-orange { background: #FF9F43; box-shadow: 0 0 0 .3em rgba(255, 159, 67, .25); }
@keyframes pulse { 50% { box-shadow: 0 0 0 .6em rgba(76, 217, 100, 0); } }

/* Notch mở rộng */
.nv-open { display: flex; flex-direction: column; padding: 0 2.2em 1.8em; }
.ntop { height: 3.2em; flex: none; display: flex; align-items: center; justify-content: space-between; }
.tabs { display: flex; gap: .3em; }
.tabs i { width: 2.8em; height: 2.3em; display: grid; place-items: center; border-radius: 1.2em; color: rgba(255, 255, 255, .75); }
.tabs i.on { background: rgba(255, 255, 255, .18); color: #fff; }
.tabs svg { width: 1.3em; height: 1.3em; }
.tools { display: flex; gap: 1.1em; color: rgba(255, 255, 255, .75); }
.tools svg { width: 1.35em; height: 1.35em; }
.wrow { flex: 1; display: flex; align-items: center; gap: 1.4em; min-height: 0; }
.w { flex: 1; min-width: 0; }
.wdiv { width: 1px; align-self: stretch; margin: 2em 0; background: rgba(255, 255, 255, .12); flex: none; }

.w-media .wm-top { display: flex; gap: 1em; align-items: center; }
.wm-t { min-width: 0; }
.wm-t b { display: block; font-size: 1.3em; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-t span { display: block; font-size: 1.1em; color: rgba(255, 255, 255, .6); margin-top: .2em; }
.wm-prog { display: flex; align-items: center; gap: .6em; margin: 1.3em 0 1em; }
.wm-prog span { font-size: .95em; color: rgba(255, 255, 255, .55); }
.track { flex: 1; height: .42em; border-radius: 1em; background: rgba(255, 255, 255, .2); overflow: hidden; }
.track i { display: block; height: 100%; width: 100%; background: #fff; border-radius: inherit; transform-origin: left; animation: prog 30s linear infinite; }
@keyframes prog { from { transform: scaleX(.3); } to { transform: scaleX(1); } }
.wm-ctl { display: flex; justify-content: center; align-items: center; gap: 2.4em; position: relative; }
.wm-ctl svg { width: 1.5em; height: 1.5em; }
.wm-ctl .big { width: 2.1em; height: 2.1em; }
.wm-ctl .ly { position: absolute; right: 0; width: 1.4em; height: 1.4em; color: var(--accent-soft); }

.w-cal { display: flex; gap: 1.3em; align-items: flex-start; }
.wc-date { text-align: center; }
.wc-date span { font-size: 1em; font-weight: 700; color: #FF6159; display: block; }
.wc-date b { font-size: 3.6em; font-weight: 700; line-height: 1; }
.wc-ev { display: flex; flex-direction: column; gap: .9em; min-width: 0; }
.wc-ev span { border-left: .28em solid var(--c); padding-left: .7em; }
.wc-ev b { display: block; font-size: 1.15em; font-weight: 600; white-space: nowrap; }
.wc-ev em { font-style: normal; font-size: .95em; color: rgba(255, 255, 255, .55); }

.w-batt { display: flex; justify-content: center; gap: 1.4em; }
.wb { display: flex; flex-direction: column; align-items: center; gap: .7em; }
.wb b { font-size: 1em; font-weight: 650; white-space: nowrap; }

.w-weather { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.w-weather .wx { width: 3.8em; height: 3.8em; color: #FFD60A; stroke-width: 1.6; }
.w-weather b { font-size: 2.8em; font-weight: 650; line-height: 1; }
.w-weather > span { font-size: 1em; color: rgba(255, 255, 255, .6); }
.wx-days { display: flex; gap: .9em; margin-top: .5em; }
.wx-days i { font-style: normal; font-size: .9em; color: rgba(255, 255, 255, .7); }

.w-focus { display: flex; align-items: center; gap: 1.4em; justify-content: center; }
.wf-t { display: flex; flex-direction: column; gap: .3em; }
.wf-t b { font-size: 2.4em; font-weight: 650; line-height: 1; }
.wf-t span { font-size: 1.05em; }
.wf-ctl svg { width: 1.3em; height: 1.3em; color: rgba(255, 255, 255, .8); }

.w-clock { display: flex; flex-direction: column; gap: 1.1em; }
.w-clock span { display: flex; justify-content: space-between; align-items: baseline; }
.w-clock em { font-style: normal; font-size: 1.1em; color: rgba(255, 255, 255, .65); }
.w-clock b { font-size: 1.4em; font-weight: 650; }

.w-rem { display: flex; flex-direction: column; gap: 1.1em; }
.w-rem span { display: flex; align-items: center; gap: .8em; font-size: 1.15em; }
.w-rem i { width: 1.2em; height: 1.2em; border-radius: 50%; border: .12em solid rgba(255, 255, 255, .55); flex: none; }
.w-rem .done { color: rgba(255, 255, 255, .45); text-decoration: line-through; }
.w-rem .done i { background: #FF9F43; border-color: #FF9F43; box-shadow: inset 0 0 0 .2em #000; }

.w-timer { display: flex; flex-direction: column; align-items: center; gap: 1em; }
.w-timer b { font-size: 3.3em; font-weight: 650; line-height: 1; }
.wt-chips { display: flex; gap: .5em; }
.wt-chips i { font-style: normal; font-weight: 650; font-size: .95em; padding: .35em .8em; border-radius: 1em; background: rgba(255, 255, 255, .13); }

.w-quick { display: grid; grid-template-columns: repeat(3, 3.8em); gap: 1em; justify-content: center; }
.w-quick i { width: 3.8em; height: 3.8em; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 45%, #000); }
.w-quick svg { width: 1.45em; height: 1.45em; }

.wsets { position: relative; flex: 1; }
.wset { position: absolute; inset: 0; opacity: 0; translate: 3em 0; transition: opacity .45s var(--ease), translate .6s var(--spring); }
.wset.on { opacity: 1; translate: 0 0; }
.wset.out { translate: -3em 0; }

/* Con trỏ */
.cursor {
  --x: 60; --y: 40;
  position: absolute; left: 0; top: 0; z-index: 5; width: 2.3em; height: 2.3em; pointer-events: none;
  translate: calc(var(--x) * 1em) calc(var(--y) * 1em);
  opacity: 0; transition: translate 1s cubic-bezier(.5, 0, .25, 1), opacity .3s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5v17.2l4.4-4.1 2.8 6.4 3-1.3-2.8-6.3 6-.4z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 .15em .25em rgba(0, 0, 0, .3));
}
.cursor.on { opacity: 1; }
.cursor.fast { transition-duration: .5s, .3s; }
.cursor.press { scale: .88; }

/* Cử chỉ */
.gesture-demo { display: grid; gap: 4%; justify-items: center; }
.pad {
  position: relative; width: 58%; aspect-ratio: 16 / 10; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden;
}
.finger {
  --x: 40; --y: 70;
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 12%; aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 30%, transparent); border: 2px solid var(--accent);
  translate: -50% -50%; opacity: 0; transition: left .9s var(--ease), top .9s var(--ease), opacity .25s;
}
.finger + .finger { margin-left: 16%; }
.pad.on .finger { opacity: 1; }
.pad .tick { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--accent); opacity: 0; }
.pad .tick.on { animation: tick .25s ease-out; }
@keyframes tick { 0% { opacity: .9; } 100% { opacity: 0; } }
.ntop-mid { justify-content: flex-end; }
.gpill { position: relative; height: 2.4em; min-width: 11.5em; }
.gp { position: absolute; right: 0; top: 0; height: 100%; display: flex; align-items: center; gap: .6em; padding: 0 .9em; border-radius: 1.2em; background: rgba(255, 255, 255, .14); opacity: 0; scale: .8; transition: opacity .25s, scale .35s var(--spring); white-space: nowrap; }
.gp.on { opacity: 1; scale: 1; }
.gp b { font-size: 1.05em; font-weight: 650; min-width: 2.6em; }
.gp-vol .level { width: 4.4em; }
.gp-next { color: var(--accent-soft); }

/* Kéo thả file */
.nv-zones { display: flex; gap: 1em; padding: 3.6em 1.6em 1.4em; }
.zone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em; border: .14em dashed rgba(255, 255, 255, .3); border-radius: 1.3em; color: rgba(255, 255, 255, .75); transition: all .25s; }
.zone b { font-size: 1.05em; font-weight: 600; }
.zone svg { width: 1.9em; height: 1.9em; }
.zone.hot { border-style: solid; border-color: var(--accent-soft); color: #fff; background: rgba(243, 178, 156, .16); }
.nv-tray { display: flex; flex-direction: column; padding: 3.4em 1.8em 1.2em; gap: .8em; }
.tray-title { display: flex; align-items: center; gap: .5em; font-size: 1.05em; font-weight: 650; color: rgba(255, 255, 255, .75); }
.tray-title svg { width: 1.3em; height: 1.3em; }
.tray-items { display: flex; gap: 1.2em; }
.titem { display: flex; align-items: center; gap: .6em; padding: .6em .9em .6em .6em; border-radius: 1em; background: rgba(255, 255, 255, .1); }
.titem b { font-size: 1.05em; font-weight: 550; white-space: nowrap; }
.titem.dim { opacity: .55; }
.titem .ficon { width: 2.4em; height: 3em; font-size: .85em; }
.ficon {
  width: 4.2em; height: 5.2em; background: #fff; border-radius: .5em; position: relative; flex: none;
  display: grid; place-items: end center; padding-bottom: .5em; color: #E5484D; font: 800 1em/1 var(--font);
  clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 .08em rgba(0, 0, 0, .12);
}
.titem .ficon { font-size: .6em; width: 3.6em; height: 4.6em; }
.ficon-img { background: #7DB9E8; }
.dfile {
  --x: 9; --y: 21;
  position: absolute; left: 0; top: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: .5em;
  translate: calc(var(--x) * 1em) calc(var(--y) * 1em);
  transition: translate 1s cubic-bezier(.5, 0, .25, 1), opacity .3s, scale .3s;
}
.dfile b { font-size: 1.1em; font-weight: 600; padding: .1em .5em; border-radius: .4em; }
.dfile.lift { scale: 1.06; }
.dfile.lift b { background: rgba(0, 0, 0, .0); }
.dfile.gone { opacity: 0; scale: .5; }

/* Lời bài hát */
.back { display: inline-flex; align-items: center; gap: .5em; height: 2.3em; padding: 0 1em; border-radius: 1.2em; background: rgba(255, 255, 255, .12); font-size: 1.05em; font-weight: 650; }
.back svg { width: 1em; height: 1em; }
.lyrics { flex: 1; position: relative; overflow: hidden;
  -webkit-mask: linear-gradient(transparent, #000 28%, #000 72%, transparent);
  mask: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
.ly-list { list-style: none; margin: 0; padding: 0; text-align: center; transition: translate .7s var(--spring); }
.ly-list li { font-size: 1.6em; line-height: 1.9; font-weight: 650; color: rgba(255, 255, 255, .42); transition: color .4s, scale .45s var(--spring), opacity .4s; white-space: nowrap; }
.ly-list li.on { color: var(--glow, var(--accent-soft)); scale: 1.14; }
.ly-list li.past { color: rgba(255, 255, 255, .25); }

/* Thông báo */
.nv-note { display: flex; align-items: center; gap: 1.1em; padding: 3.4em 1.9em 1.2em; }
.avatar { width: 3.6em; height: 3.6em; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-size: 1em; font-weight: 750; flex: none; }
.avatar { font-size: 1.4em; width: 2.6em; height: 2.6em; }
.avatar-ico svg { width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.ntext { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ntext b { font-size: 1.2em; font-weight: 700; }
.ntext span { font-size: 1.15em; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-note em { font-style: normal; font-size: .95em; color: rgba(255, 255, 255, .45); align-self: flex-start; margin-top: .3em; }

/* ───────── Cards ───────── */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--spring); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card h3 { margin: 16px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent-ink); }
.ic svg { width: 22px; height: 22px; }
.card:hover .ic svg { animation: nudge .5s var(--spring); }
@keyframes nudge { 40% { transform: scale(1.18) rotate(-6deg); } }

/* ───────── Pricing ───────── */
.pricing { background: var(--bg-2); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; }
.plan { position: relative; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.25rem; margin: 0 0 14px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.plan-price span { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan-price small { color: var(--muted); font-size: .95rem; }
.plan-sub { color: var(--muted); margin-bottom: 22px; }
.plan .ticks { margin-top: 26px; }
.plan .ticks li { font-size: .96rem; }
.plan .ticks b { color: var(--text); font-weight: 650; }
.plan-pro { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -13px; right: 24px; margin: 0; background: var(--accent); color: var(--on-accent); font-size: .76rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price-loading [data-price] { opacity: .5; }
.how { list-style: none; padding: 0; margin: 40px auto 0; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how li { display: flex; gap: 12px; align-items: flex-start; }
.how span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); font-weight: 750; font-size: .85rem; }
.how p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* ───────── FAQ ───────── */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 650; font-size: 1.06rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); translate: 0 -70%; rotate: 45deg; transition: rotate .3s var(--spring), translate .3s; }
details[open] summary::after { rotate: 225deg; translate: 0 -20%; }
details p { color: var(--muted); padding: 0 0 20px; margin: 0; }

/* ───────── Final CTA ───────── */
.final-box { text-align: center; padding: clamp(40px, 7vw, 72px) 24px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.final-box img { margin: 0 auto 24px; border-radius: 22px; box-shadow: var(--shadow); }
.final-box p { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }

/* ───────── Footer ───────── */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: start; }
.foot-brand p { color: var(--muted); font-size: .92rem; margin: 10px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.foot-links a:hover { color: var(--text); }
.foot-note { grid-column: 1 / -1; color: var(--faint); font-size: .85rem; margin: 10px 0 0; }
.foot-note a { color: var(--faint); }

/* ───────── Download page ───────── */
.dl-hero { padding-top: clamp(40px, 7vw, 80px); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.dl-grid .lead { margin-left: 0; }
.dl-grid .cta-row { justify-content: flex-start; }
.specs { display: grid; grid-template-columns: repeat(4, auto); gap: 18px; margin: 32px 0 18px; justify-content: start; }
.specs div { min-width: 0; }
.specs dt { font-size: .78rem; color: var(--faint); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.specs dd { margin: 4px 0 0; font-weight: 650; }
.sha { display: flex; gap: 10px; align-items: baseline; font-size: .8rem; color: var(--faint); margin: 0; }
.sha code { word-break: break-all; font-size: .76rem; }
.dl-thanks { margin-top: 18px; display: flex; gap: 8px; align-items: center; color: #2F8F4E; font-weight: 600; }
:root[data-theme="dark"] .dl-thanks { color: #6FD08C; }

.dmg { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); container-type: inline-size; }
.dmg-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.dmg-bar i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.dmg-bar i:nth-child(2) { background: #FEBC2E; } .dmg-bar i:nth-child(3) { background: #28C840; }
.dmg-bar span { margin: 0 auto; font-size: .85rem; font-weight: 600; color: var(--muted); translate: -24px 0; }
.dmg-body { position: relative; aspect-ratio: 660 / 380; background: var(--bg); font-size: calc(100cqw / 66); }
.dmg-title { position: absolute; top: 4.2em; width: 100%; text-align: center; font-size: 1.9em; font-weight: 750; margin: 0; letter-spacing: -.02em; }
.dmg-app, .dmg-ghost { position: absolute; left: 10.5em; top: 13em; width: 12.8em; }
.dmg-app img, .dmg-ghost img { width: 100%; border-radius: 22%; }
.dmg-ghost { opacity: 0; z-index: 2; transition: translate 1.1s cubic-bezier(.5, 0, .25, 1), opacity .3s; }
.dmg-ghost.on { opacity: .85; }
.dmg-ghost.moved { translate: 32.5em 0; }
.dmg-arrow { position: absolute; left: 25.5em; top: 15em; width: 15em; height: 5em; color: var(--accent); stroke-width: 3.2; stroke-dasharray: 1.5 7; overflow: visible; }
.dmg-arrow path:last-child { stroke-dasharray: none; }
.dmg-folder { position: absolute; left: 43em; top: 13em; width: 12.8em; display: flex; flex-direction: column; align-items: center; gap: .6em; transition: scale .3s var(--spring); }
.dmg-folder svg { width: 100%; height: auto; stroke: none; fill: #6BB5F5; }
.dmg-folder svg path:last-child { fill: none; stroke: #4C9BE0; stroke-width: 1.5; }
.dmg-folder b { font-size: 1.4em; font-weight: 600; }
.dmg-folder.hot { scale: 1.08; }
.dmg .cursor { --x: 60; --y: 30; }

.install-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.install-steps li { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.install-steps .num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-ink); font-weight: 800; margin-bottom: 16px; }
.install-steps p { color: var(--muted); margin: 0; }

.blocked { background: var(--bg-2); }
.fix-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.fix-copy h3, .fix-alt h3 { font-size: 1.35rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.note { margin-top: 18px; font-size: .92rem; color: var(--muted); padding: 12px 14px; border-left: 3px solid var(--accent-soft); background: var(--surface); border-radius: 0 10px 10px 0; }
.steps b { color: var(--text); font-weight: 650; }
.steps .st { font-style: normal; }

.gk { position: relative; aspect-ratio: 56 / 40; border-radius: 18px; background: var(--wall); overflow: hidden; container-type: inline-size; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gk-scene { font-size: calc(100cqw / 56); }
.gk-scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; scale: .96; transition: opacity .35s, scale .45s var(--spring), visibility 0s .35s; }
.gk-scene.on { opacity: 1; visibility: visible; scale: 1; transition: opacity .35s, scale .45s var(--spring), visibility 0s; }
.gk .cursor { font-size: calc(100cqw / 56); }
.mac-alert {
  width: 27em; padding: 2.2em 2em 1.8em; border-radius: 1.6em; text-align: center;
  background: var(--surface); color: var(--text); box-shadow: 0 1.5em 4em rgba(0, 0, 0, .22); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: .9em;
}
.mac-alert img { width: 5.6em; height: 5.6em; border-radius: 1.3em; }
.mac-alert b { font-size: 1.5em; letter-spacing: -.01em; }
.mac-alert p { font-size: 1.15em; line-height: 1.4; color: var(--muted); margin: 0 0 .4em; }
.mac-btn { display: block; width: 100%; padding: .7em 1em; border-radius: .8em; background: var(--bg-2); font-size: 1.15em; font-weight: 600; text-align: center; transition: box-shadow .3s, background-color .3s; }
.mac-btn-primary { background: #2F7CF6; color: #fff; }
.mac-btn.hl.pulse { box-shadow: 0 0 0 .35em color-mix(in srgb, var(--accent) 55%, transparent); }
.mac-win { width: 51em; height: 34em; display: grid; grid-template-columns: 16.5em 1fr; border-radius: 1.4em; overflow: hidden; background: var(--surface); box-shadow: 0 1.5em 4em rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.mw-side { background: var(--bg-2); padding: 1.4em 1em; display: flex; flex-direction: column; gap: .3em; }
.mw-side > span { overflow: hidden; text-overflow: ellipsis; font-size: 1.1em; padding: .55em .8em; border-radius: .6em; color: var(--muted); display: flex; align-items: center; gap: .5em; white-space: nowrap; }
.mw-side .sel { background: #2F7CF6; color: #fff; }
.mw-side svg { width: 1.2em; height: 1.2em; }
.mw-dots { display: flex; gap: .5em; padding: 0 .6em 1.2em !important; }
.mw-dots i { width: 1em; height: 1em; border-radius: 50%; background: #FF5F57; }
.mw-dots i:nth-child(2) { background: #FEBC2E; } .mw-dots i:nth-child(3) { background: #28C840; }
.mw-main { padding: 2em 2.2em; display: flex; flex-direction: column; gap: .9em; overflow: hidden; }
.mw-h { font-size: 1.6em; }
.mw-sub { font-size: 1.2em; margin-top: .6em; }
.mw-row { height: 2.8em; border-radius: .7em; background: var(--bg-2); }
.mw-row.short { width: 70%; }
.mw-card { border-radius: .9em; border: 1px solid var(--line); padding: 1.3em; display: flex; gap: 1em; align-items: center; justify-content: space-between; }
.mw-card p { margin: 0; font-size: 1.12em; line-height: 1.35; }
.mw-card .mac-btn { width: auto; white-space: nowrap; background: var(--bg-2); border: 1px solid var(--line-2); }
.mw-main { transition: translate .9s var(--ease); }
.gk.scrolled .mw-main { translate: 0 -2.4em; }

.fix-alt { margin-top: clamp(40px, 6vw, 64px); padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.fix-alt p { color: var(--muted); }
.code { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: #171311; color: #F5EEE9; flex-wrap: wrap; }
.code svg { color: var(--accent-soft); }
.code code { flex: 1; font-size: .95rem; min-width: 0; overflow-wrap: anywhere; }
.code .btn-ghost { background: #2A2320; border-color: #3D3430; color: #F5EEE9; }
.why { display: flex; gap: 16px; margin-top: 24px; padding: 22px 24px; border-radius: 18px; border: 1px dashed var(--line-2); }
.why > svg { width: 28px; height: 28px; color: var(--accent-ink); margin-top: 2px; }
.why p { color: var(--muted); margin: 0; }

/* 404 */
.nf { padding: 80px 0 120px; text-align: center; }
.nf-stage { max-width: 520px; margin: 0 auto 40px; }
.nf .cta-row { margin-top: 24px; }

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  .feature-grid, .feature-grid.reverse, .dl-grid, .fix-grid { grid-template-columns: 1fr; }
  .feature-grid.reverse > :first-child { order: 0; }
  .strip-row { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 10px; }
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .how, .install-steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .plan { padding: 26px 22px; }
  .stage { border-width: .55em; }
  .hero-stage .stage { font-size: calc(100cqw / 66); aspect-ratio: 66 / 38; }
  .hero-stage .notch[data-size="open"] { width: 62em; height: 27em; }
  .pad { width: 78%; }
  .cta-row .btn-lg { width: 100%; }
}
@media (max-width: 420px) {
  .strip-row { grid-template-columns: 1fr; }
  .lang span { display: none; }
  .nav-cta { padding: 0 .8em; }
}

/* Giảm chuyển động: giữ nguyên khung tĩnh, bỏ mọi hoạt ảnh */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
