/*
Theme Name: BookPages
Description: Marketing site and page shell for the BookPages Platform plugin.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 8.0
Author: BookPages
License: GPL-2.0-or-later
Text Domain: bookpages
*/

/* Quiet and plain: one heavy sans, near-black ink, soft grey bands, one accent used sparingly. */
:root {
	--ink: #1f2023;
	--mute: #62656e;
	--line: #e4e4e1;
	--soft: #f7f7f5;
	--hov: #efefec;
	--acc: #5b3fd1;
	--tint: #efecfb;
	--dark: #16142b;
	--e: cubic-bezier(0.2, 0.8, 0.2, 1);
	--sh: 0 0 0 1px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.05), 0 4px 10px rgba(0, 0, 0, 0.08);
	--sh2: 0 24px 60px -20px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.05);
	--gut: clamp(16px, 3.4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: var(--ink); font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mn { flex: 1; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.mut { color: var(--mute); }
.vh, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--sh); }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic.s { width: 14px; height: 14px; }

.eb { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--acc); }
.t1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.05; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.t2b { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }

/* Buttons */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: background 0.2s, transform 0.15s var(--e); }
.bt:hover { background: var(--soft); }
.bt:active { transform: scale(0.97); }
.bt .ic { transition: transform 0.35s var(--e); }
.bt:hover .ic { transform: translateX(3px); }
.bt-k { background: var(--ink); color: #fff; }
.bt-k:hover { background: #000; }
.bt-s { min-height: 40px; padding: 0 16px; font-size: 14px; }
.bt-w { width: 100%; }

/* Header */
.hd { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .hd { top: 32px; }
.hd-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 72px; }
.logo { justify-self: start; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -0.045em; text-decoration: none; }
.lgm { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; }
.tabs { display: flex; justify-content: center; gap: 28px; }
.tab { position: relative; display: inline-flex; align-items: center; min-height: 48px; color: var(--mute); font-size: 15px; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.tab:hover { color: var(--ink); }
.tab::after { content: ""; position: absolute; right: 0; bottom: 8px; left: 0; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transition: transform 0.4s var(--e); }
.tab:hover::after { transform: scaleX(0.4); }
.hd-r { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

/* Hero */
.hero { padding: clamp(48px, 6vw, 88px) 0 0; text-align: center; }
.hero-c { display: flex; flex-direction: column; align-items: center; }
.hero .t1 { max-width: 900px; margin-top: 16px; }
.rot { display: inline-block; color: var(--acc); transition: opacity 0.3s var(--e), transform 0.3s var(--e); }
.rot.out { opacity: 0; transform: translateY(10px); }
.lead { max-width: 620px; margin: 20px auto 0; color: var(--mute); font-size: 18px; text-wrap: pretty; }
.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* Browser frame showing a listening page */
.stage { width: 100%; max-width: 1060px; margin-top: clamp(40px, 5vw, 64px); }
.brw { overflow: hidden; border-radius: 16px; background: #fff; box-shadow: var(--sh2); text-align: left; }
.brw-b { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.brw-b i { width: 11px; height: 11px; border-radius: 50%; background: #dcdcd8; }
.brw-b span { flex: 1; max-width: 420px; margin: 0 auto; padding: 5px 14px; overflow: hidden; border-radius: 999px; background: #fff; color: var(--mute); font-size: 12.5px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.cap { margin-top: 14px; color: var(--mute); font-size: 13px; }

/* Typographic sample cover: no real author's book is used */
.cov { position: relative; display: flex; flex-direction: column; justify-content: space-between; flex: none; padding: 0.8em 0.7em; overflow: hidden; border-radius: 6px; background: #2b4a3e; color: #f3eee1; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.cov::before { content: ""; position: absolute; right: -30%; bottom: -24%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: #d9a441; opacity: 0.9; }
.cov i { position: relative; font-family: Georgia, "Times New Roman", serif; font-style: normal; font-weight: 700; line-height: 1.05; }
.cov small { position: relative; font-size: 0.42em; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.cov.lg { width: 168px; height: 168px; font-size: 22px; }
.cov.md { width: 132px; height: 132px; font-size: 17px; }
.cov.xs { width: 40px; height: 40px; padding: 0; font-size: 0; border-radius: 6px; }

.lp { padding: clamp(20px, 3vw, 36px); }
.lp-h { display: flex; align-items: flex-end; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.lp-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lp-k { color: var(--acc); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lp-t > b { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.lp-f { display: flex; gap: 6px; margin-top: 8px; }
.lp-f span { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); font-size: 12.5px; font-weight: 600; }
.lp-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mbt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 600; }
.mbt.k { background: var(--ink); color: #fff; }
.mbt.w { width: 100%; }
.lp-l { margin-top: 10px; }
.lp-l li { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.lp-l li.on { background: var(--tint); }
.lp-l .n { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--mute); font-size: 13px; font-weight: 700; }
.lp-l li.on .n { background: var(--acc); color: #fff; }
.lp-ct { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.lp-ct small { color: var(--mute); font-size: 12.5px; font-weight: 500; }
.lp-l li.on small { color: var(--acc); }
.lp-p { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: var(--dark); color: #fff; }
.lp-pt { display: flex; flex-direction: column; min-width: 0; width: 200px; }
.lp-pt b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.lp-pt small { color: rgba(255, 255, 255, 0.6); font-size: 12px; }
.lp-bar { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff 38%, rgba(255, 255, 255, 0.2) 38%); }
.lp-sp { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 12px; font-weight: 700; }
.lp-pl { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); }

/* Numbers */
.sec { padding: clamp(48px, 5vw, 72px) 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 20px 22px; border-radius: 16px; background: var(--soft); }
.stat dt { color: var(--mute); font-size: 14px; }
.stat dd { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.035em; }

/* Feature sections: words on one side, the real screen on the other */
.dsec { padding: clamp(64px, 7vw, 112px) 0; }
.dsec[id] { scroll-margin-top: 72px; }
.dsec.alt { background: var(--soft); }
.dp { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.dp.rev .dp-t { order: 2; }
.dp-t { display: flex; flex-direction: column; gap: 14px; }
.dp-t > p { max-width: 560px; font-size: 17px; }
.dk .dp-t > p { color: rgba(255, 255, 255, 0.78); }
.steps { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.steps i { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 12.5px; font-style: normal; font-weight: 700; }


.pnl { width: 100%; max-width: 560px; padding: 20px; border-radius: 18px; background: #fff; box-shadow: var(--sh2); }
.pnl-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.pnl-h b { font-size: 16px; }
.cnt { padding: 0 8px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 700; }
.pnl-h .sm { width: 100%; font-size: 13px; }
.sm-b { min-height: 32px; margin-left: auto; font-size: 12.5px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; border: 2px dashed var(--line); border-radius: 14px; color: var(--mute); font-size: 13px; font-weight: 600; }
.fl { margin-top: 10px; }
.fl li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 14px; font-weight: 600; }
.fl li + li { border-top: 1px solid var(--line); }
.grip { width: 10px; height: 16px; background: radial-gradient(circle, #bdbdb8 1.3px, transparent 1.6px) 0 0 / 5px 5px; }
.fl .n { width: 16px; color: var(--mute); font-size: 12px; text-align: right; }
.fl-t { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.fl-t small { color: var(--mute); font-size: 12px; font-weight: 500; }
.sp { width: 26px; height: 16px; border: 2px solid var(--tint); border-top-color: var(--acc); border-radius: 50%; animation: spin 0.9s linear infinite; }
.bar { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--acc) 64%, var(--soft) 64%); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl td { padding: 10px 6px; border-top: 1px solid var(--line); white-space: nowrap; }
.tbl td:first-child { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--acc); font-size: 11px; font-weight: 800; }

/* Dark band */
.dsec.dk { background: var(--dark); color: #fff; }
.dk-t { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.dk .eb { color: #b9adf5; }

/* Pricing and questions */
.pr, .qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 5vw, 80px); }
.pc { padding: 28px; border-radius: 18px; background: #fff; box-shadow: var(--sh); }
.pc-p { display: flex; align-items: baseline; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pc-p b { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ck { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; }
.ck li { display: flex; gap: 10px; font-size: 15px; }
.ck li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #e7f4ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317603F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--e); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding-bottom: 20px; font-size: 16px; }

.end { border-top: 1px solid var(--line); }
.end-c { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.end-c .t2b { max-width: 720px; }

/* Footer */
.ft { background: var(--soft); border-top: 1px solid var(--line); }
.ft-g { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding: 48px 0 36px; }
.ft-brand p { max-width: 320px; margin-top: 12px; font-size: 14px; }
.ft-c { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ft-c b { margin-bottom: 6px; font-size: 14px; }
.ft-c a { display: inline-flex; align-items: center; min-height: 34px; color: var(--mute); font-size: 14px; text-decoration: none; }
.ft-c a:hover { color: var(--ink); text-decoration: underline; }
.ft-b { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 20px 0 30px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }

/* Plain pages (privacy, terms) */
.page-body { width: 100%; max-width: 760px; margin: 0 auto; padding: 64px var(--gut) 96px; }
.page-body h1 { margin-bottom: 24px; font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.entry > * + * { margin-top: 1em; }
.entry h2 { margin-top: 1.8em; font-size: 24px; letter-spacing: -0.02em; }
.entry ul, .entry ol { padding-left: 1.3em; list-style: revert; }
.entry p, .entry li { color: var(--mute); }

/* Motion: hidden only while the body has "mo", which the footer script removes when motion is unwanted */
.mo [data-rv] { opacity: 0; transform: translate3d(0, 24px, 0); }
.mo [data-rv][data-in] { opacity: 1; transform: none; transition: opacity 0.8s var(--e), transform 0.95s var(--e); }
/* ── Demos ── */
.dstack { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 3.4vw, 44px); }
.dp-t.center { align-items: center; max-width: 720px; text-align: center; }
.dp-t.center > p { margin: 0 auto; }
.demo { position: relative; width: 100%; }
.dp > .demo { max-width: 380px; justify-self: center; }
.dstack > .demo { max-width: 940px; }
.dstage { position: relative; }
.dstage * { pointer-events: none; user-select: none; }
.ff *, .ff *::before, .ff *::after { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }

/* Pretend cursor */
.dcur { position: absolute; inset: -40px; z-index: 30; overflow: visible; pointer-events: none; }
.dcur-p { position: absolute; left: 60%; top: 70%; width: 0; height: 0; margin: 40px 0 0 40px; transition: left 0.7s cubic-bezier(0.5, 0.05, 0.2, 1), top 0.7s cubic-bezier(0.22, 0.6, 0.3, 1), opacity 0.3s; }
.dcur-p.none { opacity: 0; }
.dcur-p.nt { transition: none; }
.dcur-d { position: absolute; left: 0; top: 0; transition: transform 0.14s cubic-bezier(0.3, 0.7, 0.3, 1); }
.dcur-d.dn { transform: scale(0.82); }
.dcur-a { position: absolute; left: -4px; top: -3px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.dcur-i.dot { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, 0.9); border-radius: 50%; background: rgba(31, 32, 35, 0.32); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.dcur-rg { position: absolute; z-index: 29; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid rgba(91, 63, 209, 0.7); border-radius: 50%; pointer-events: none; animation: dring 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.dk .dcur-rg { border-color: rgba(255, 255, 255, 0.8); }
.dghost { position: absolute; left: 14px; top: 16px; display: none; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06); color: var(--ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; transform: rotate(-3deg); }
.dghost::before { content: ""; width: 14px; height: 17px; border-radius: 3px; background: var(--acc); }
.dghost.show { display: inline-flex; }
@keyframes dring { from { opacity: 0.95; transform: scale(0.25); } to { opacity: 0; transform: scale(1.4); } }

/* Progress bar under each demo */
.dbar { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 22px auto 0; }
.dp .dbar { max-width: 320px; }
.dsegs { display: flex; flex: 1; gap: 4px; }
.dsg { position: relative; flex: 1; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(31, 32, 35, 0.12); }
.dsg > b { position: absolute; inset: 0; border-radius: 4px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.paused .dsg > b, .offscreen .dsg > b { animation-play-state: paused !important; }
@keyframes dsg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dlab { min-width: 34px; color: var(--mute); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dpp { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; transition: transform 0.25s var(--e); }
.dpp:hover { transform: scale(1.08); }
.dpp .i-pl, .dpp.is-paused .i-pa { display: none; }
.dpp.is-paused .i-pl { display: block; }
.dk .dsg { background: rgba(255, 255, 255, 0.18); }
.dk .dsg > b { background: #fff; }
.dk .dlab { color: #b9bac2; }
.dk .dpp { border-color: rgba(255, 255, 255, 0.3); background: transparent; color: #fff; }

/* Step buttons */
.dsteps { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.dstp { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 4px 14px 4px 4px; border: 0; border-radius: 12px; background: transparent; color: var(--mute); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: background 0.2s, color 0.2s; }
.dstp i { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 12.5px; font-style: normal; font-weight: 800; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.dstp:hover { background: var(--soft); color: var(--ink); }
.dstp.dn { color: var(--ink); }
.dstp.dn i { border-color: var(--ink); }
.dstp.on { background: var(--tint); color: var(--ink); }
.dstp.on i { border-color: var(--acc); background: var(--acc); color: #fff; }
.dsteps.pills { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.dsteps.pills .dstp { width: auto; min-height: 42px; padding: 0 16px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; }
.dsteps.pills .dstp.on { border-color: var(--acc); background: var(--tint); }
.dk .dsteps.pills .dstp { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); color: #b9bac2; }
.dk .dsteps.pills .dstp i { border-color: rgba(255, 255, 255, 0.3); background: transparent; color: #fff; }
.dk .dsteps.pills .dstp.on, .dk .dsteps.pills .dstp.dn { color: #fff; }
.dk .dsteps.pills .dstp.on { border-color: #b9adf5; background: rgba(185, 173, 245, 0.16); }
.dk .dsteps.pills .dstp.on i { border-color: #b9adf5; background: #b9adf5; color: var(--dark); }

/* Realistic phone: tall 9:19.5 frame, island, status bar, home indicator */
.mph { position: relative; width: min(330px, 100%); aspect-ratio: 300 / 620; margin: 0 auto; padding: 10px; border-radius: 50px; background: #16171a; box-shadow: inset 0 0 0 2px #313238, 0 40px 80px -24px rgba(20, 22, 40, 0.45); }
.mph::before { content: ""; position: absolute; left: -3px; top: 21%; width: 3px; height: 5%; border-radius: 2px 0 0 2px; background: #2a2b30; box-shadow: 0 44px 0 #2a2b30; }
.mph::after { content: ""; position: absolute; right: -3px; top: 26%; width: 3px; height: 11%; border-radius: 0 2px 2px 0; background: #2a2b30; }
.mph-in { position: relative; height: 100%; overflow: hidden; border-radius: 40px; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.35; }
.ps-sb { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 6px 24px 0 30px; font-size: 13px; }
.sbi { display: flex; align-items: center; gap: 5px; }
.sig { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.sig i { width: 3px; border-radius: 1px; background: currentColor; }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 6px; } .sig i:nth-child(3) { height: 8px; } .sig i:nth-child(4) { height: 10px; }
.bat { position: relative; width: 22px; height: 11px; padding: 1.5px; border: 1px solid rgba(31, 32, 35, 0.4); border-radius: 3.5px; }
.bat i { display: block; width: 78%; height: 100%; border-radius: 1.5px; background: currentColor; }
.ps-isl { position: absolute; left: 50%; top: 10px; z-index: 9; width: 88px; height: 25px; margin-left: -44px; border-radius: 999px; background: #0a0a0c; }
.ps-url { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 2px 14px 0; padding: 6px; border-radius: 10px; background: var(--soft); color: var(--mute); font-size: 11px; }
.ps-url .ic { width: 10px; height: 10px; }
.ps-view { position: absolute; top: 76px; right: 0; bottom: 0; left: 0; overflow: hidden; }
.ps-page { padding: 14px 16px 110px; transition: transform 0.9s cubic-bezier(0.3, 0.7, 0.2, 1); }
.ps-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.ps-hero .cov { margin-bottom: 10px; }
.ps-k { color: var(--acc); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ps-hero b { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.ps-gate { display: flex; flex-direction: column; align-items: center; gap: 8px; max-height: 220px; margin-top: 14px; padding: 14px 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; text-align: center; transition: max-height 0.6s var(--e), opacity 0.4s, margin 0.6s, padding 0.6s, border-color 0.4s; }
.ps-gate > b { font-size: 13px; }
.ps-gate small { font-size: 10.5px; }
.ps-gate.gone { max-height: 0; margin-top: 0; padding-block: 0; border-color: transparent; opacity: 0; }
.ps-fld { position: relative; display: flex; align-items: center; width: 100%; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-align: left; transition: border-color 0.2s, box-shadow 0.2s; }
.ps-fld.sq { border-radius: 8px; }
.ps-fld .ph { color: #a1a3aa; }
.ps-fld.has .ph { display: none; }
.ps-fld .tx { overflow: hidden; white-space: nowrap; }
.ps-fld.foc { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 32, 35, 0.08); }
.ps-fld.foc .tx::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mbt.busy { color: transparent; position: relative; }
.mbt.busy::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.pressed { transform: scale(0.95); transition: transform 0.12s; }
.ps-h { display: block; margin: 18px 4px 6px; color: var(--mute); font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ps-ch li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 12px; transition: background 0.3s; }
.ps-ch li.on { background: var(--tint); }
.pn { position: relative; display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--mute); font-size: 11px; font-weight: 800; }
.pn > span { position: absolute; display: none; }
.pn .nn { display: block; position: static; }
.locked .pn .nn { display: none; }
.locked .pn .lk { display: grid; }
.locked .tt { color: var(--mute); }
.locked .dl { opacity: 0; }
.on .pn { background: var(--acc); color: #fff; }
.on .pn .nn { display: none; }
.on .pn .eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2.5px; border-radius: 2px; background: #fff; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.tt { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 12.5px; font-weight: 700; }
.tt small { color: var(--mute); font-size: 10.5px; font-weight: 500; }
.on .tt { color: #3f2a9e; }
.dl { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--mute); transition: opacity 0.4s, background 0.2s; }
.ps-player { position: absolute; right: 8px; bottom: 22px; left: 8px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; background: #16142b; color: #fff; transform: translateY(150%); transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.2, 1); }
.ps-player.show { transform: none; }
.pt { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.pt b { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.pbar { height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.pbar i { display: block; width: 4%; height: 100%; background: #fff; transition: width 12s linear; }
.pbar i.go { width: 62%; }
.spd { padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 10.5px; font-weight: 800; }
.pp { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); }
.ps-toast { position: absolute; left: 50%; bottom: 96px; z-index: 6; display: flex; align-items: center; gap: 6px; max-width: 86%; padding: 8px 12px; overflow: hidden; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; opacity: 0; transform: translate(-50%, 10px); transition: opacity 0.3s, transform 0.4s var(--e); }
.ps-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ps-home { position: absolute; left: 50%; bottom: 7px; z-index: 9; width: 104px; height: 4px; margin-left: -52px; border-radius: 4px; background: var(--ink); opacity: 0.75; }
.cov.th { width: 46px; height: 46px; padding: 0; font-size: 0; border-radius: 8px; }

/* Laptop: drawn at 920 px and scaled to fit */
.fit { position: relative; width: 100%; aspect-ratio: 920 / 590; --s: 1; }
.lap { position: absolute; left: 0; top: 0; width: 920px; transform: scale(var(--s)); transform-origin: 0 0; }
.lap-s { position: relative; margin: 0 50px; padding: 12px 12px 16px; border-radius: 22px 22px 6px 6px; background: #1a1b1f; box-shadow: inset 0 0 0 1.5px #34353b, 0 40px 70px -26px rgba(12, 13, 30, 0.5); }
.dk .lap-s { box-shadow: inset 0 0 0 1.5px #44454c, 0 40px 80px -20px rgba(0, 0, 0, 0.65); }
.lap-cam { position: absolute; left: 50%; top: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #3a3c44; }
.lap-in { position: relative; display: flex; flex-direction: column; height: 540px; overflow: hidden; border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.4; text-align: left; }
.lap-bar { display: flex; flex: none; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #f1f1ee; }
.lap-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #d6d6d2; }
.lap-url { width: 46%; margin: 0 auto; padding: 3px 10px; overflow: hidden; border-radius: 7px; background: #fff; color: var(--mute); font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.lap-b { position: relative; height: 16px; border-radius: 3px 3px 18px 18px; background: linear-gradient(180deg, #e6e7eb 0%, #bdbfc6 55%, #9ea0a8 100%); box-shadow: 0 20px 28px -14px rgba(0, 0, 0, 0.4); }
.lap-b i { position: absolute; left: 50%; top: 0; width: 120px; height: 6px; margin-left: -60px; border-radius: 0 0 8px 8px; background: #a6a8b0; }

/* Editor screen inside the laptop */
.ed { display: flex; flex: 1; flex-direction: column; gap: 16px; min-height: 0; padding: 20px 26px; }
.ed-top { display: flex; align-items: center; gap: 14px; }
.ed-top > span { display: flex; flex-direction: column; gap: 4px; }
.ed-top b { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.ed-chips { display: flex; gap: 6px; }
.chip { padding: 1px 9px; border-radius: 999px; background: var(--tint); color: var(--acc); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.chip.st { background: var(--soft); color: var(--mute); transition: background 0.3s, color 0.3s; }
.chip.st.live { background: #e7f4ec; color: #17603f; }
.ed-g { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; min-height: 0; }
.ed-c, .ed-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.ed-c.wide { flex: 1; min-height: 0; overflow: hidden; }
.ed-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ed-h b { font-size: 15px; }
.ed-drop { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px; border: 2px dashed #cfcfcb; border-radius: 12px; background: var(--soft); color: var(--mute); text-align: center; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.ed-drop b { color: var(--ink); font-size: 13px; }
.ed-drop small { font-size: 11.5px; }
.ed-drop.over { border-color: var(--acc); background: var(--tint); transform: scale(1.01); }
.ed-l { margin-top: 8px; }
.ed-l li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; background: #fff; border-top: 1px solid var(--line); transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 0.3s, background 0.3s; }
.ed-l li:first-child { border-top: 0; }
.ed-l li.hide { display: none; }
.ed-l li.lift { position: relative; z-index: 2; border-radius: 10px; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--line); }
.ed-l li.saved { background: #f0faf4; }
.g { display: grid; place-items: center; width: 14px; height: 24px; }
.grip { width: 9px; height: 15px; background: radial-gradient(circle, #a9a9a4 1.3px, transparent 1.6px) 0 0 / 4.5px 5px; }
.ed-l .n { width: 14px; color: var(--mute); font-size: 11.5px; font-weight: 700; text-align: right; }
.pl { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--acc); }
.ed-t { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.ttl { align-self: flex-start; max-width: 100%; margin-left: -5px; padding: 1px 5px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; font-weight: 700; }
.ttl.foc { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 32, 35, 0.08); }
.ttl.foc .tx::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: blink 1s step-end infinite; }
.ttl.sel .tx { background: #c9d6ff; }
.ed-t small { color: var(--mute); font-size: 11px; }
.ed-t .bar, .ed-t .upm { display: none; }
.up .bar, .up .upm { display: block; }
.up .meta, .up .pl { opacity: 0.25; }
.ed-t .bar { height: 4px; overflow: hidden; border-radius: 4px; background: var(--soft); }
.ed-t .bar i { display: block; height: 100%; width: 0; background: var(--acc); }
.filling .up .bar i { animation: fillup 1.6s var(--d, 0s) cubic-bezier(0.4, 0.2, 0.3, 1) forwards; }
@keyframes fillup { to { width: 100%; } }
.del { color: #a9a9a4; }
.ed-card { display: flex; flex-direction: column; gap: 12px; }
.ed-card > b { font-size: 14px; }
.ed-fl { display: flex; flex-direction: column; gap: 3px; }
.ed-fl small, .ed-tg small { color: var(--mute); font-size: 11px; }
.mono { padding: 6px 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ed-tg { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--soft); }
.ed-tg > span { display: flex; flex-direction: column; }
.ed-tg b { font-size: 12.5px; }
.sw { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #cfcfcb; transition: background 0.25s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--e); }
.sw.on { background: var(--ink); }
.sw.on::after { transform: translateX(14px); }
.ed-sv { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.ed-sv .ok { color: #17603f; font-size: 11.5px; font-weight: 700; }

/* ZIP panel */
.zp { display: none; margin-top: 10px; padding: 14px; border: 1px solid #dcd6f6; border-radius: 12px; background: #f8f7fd; }
.zp.reading, .zp.found { display: block; animation: rise 0.3s var(--e); }
.zp.gone { display: none; }
.zp-r { display: none; align-items: center; gap: 8px; color: var(--text-2, #3d3f45); font-weight: 600; }
.reading .zp-r { display: flex; }
.zp-f { display: none; flex-direction: column; gap: 4px; }
.found .zp-f { display: flex; }
.zp-f > b { align-self: flex-start; font-size: 15px; }
.zp-l { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin: 8px 0 4px; }
.zp-l li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; font-weight: 600; }
.zp-l li span { width: 14px; color: var(--mute); font-size: 11px; }
.zp-l li small { margin-left: auto; color: var(--mute); font-weight: 500; }
.zp-l .more { color: var(--mute); }
.zp-o { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; font-weight: 700; }
.zp-o i { display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid var(--ink); border-radius: 5px; color: transparent; transition: background 0.2s, color 0.2s; }
.zp-o.on i { background: var(--ink); color: #fff; }
.zp-a { display: flex; gap: 8px; margin-top: 10px; }
.zl { display: none; }
.zl.importing { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.zl li { border-top: 1px solid var(--line); opacity: 0; animation: zin 0.35s var(--d, 0s) var(--e) forwards; }
.zl li:nth-child(-n+2) { border-top: 0; }
.zl li:nth-child(n+11) { display: none; }
.zl .bar { display: block; }
.zl .bar i { animation: fillup 1.4s var(--d, 0s) cubic-bezier(0.4, 0.2, 0.3, 1) forwards; }
.zl.done .bar { display: none; }
@keyframes zin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sp { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--tint); border-top-color: var(--acc); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* Storage wizard screen */
.sw-w { display: flex; flex: 1; flex-direction: column; gap: 16px; min-height: 0; padding: 22px 28px; }
.sw-h { display: flex; align-items: center; justify-content: space-between; }
.sw-h > b { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.sw-st { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: 11.5px; font-weight: 700; }
.sw-st i { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #cfcfcb; border-radius: 50%; font-size: 10px; font-style: normal; }
.sw-st i.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.sw-st i.dn { border-color: #1e9e5a; background: #1e9e5a; color: #fff; }
.sw-st em { width: 22px; height: 1.5px; background: var(--line); }
.sw-v { position: relative; flex: 1; }
.sw-s { position: absolute; inset: 0; transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.4s; }
.sw-s.next { opacity: 0; transform: translateX(40px); }
.sw-s.in { opacity: 1; transform: none; }
.sw-s.out { opacity: 0; transform: translateX(-40px); }
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sw-p { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.sw-p.pressed { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sw-m { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 6px; border-radius: 9px; background: color-mix(in srgb, var(--tint) 12%, #fff); color: var(--tint); font-weight: 800; }
.sw-p b { font-size: 14px; }
.sw-p small { color: var(--mute); font-size: 12px; }
.rec { padding: 1px 8px; border-radius: 999px; background: #efecfb; color: var(--acc); font-size: 10px; font-weight: 800; }
.sw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sw-guide { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--soft); counter-reset: g; }
.sw-guide li { position: relative; padding-left: 30px; color: #3d3f45; font-size: 12.5px; counter-increment: g; }
.sw-guide li::before { content: counter(g); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; font-size: 10.5px; font-weight: 800; }
.sw-form { display: flex; flex-direction: column; gap: 9px; }
.sw-fl { display: flex; flex-direction: column; gap: 3px; }
.sw-fl small { font-size: 11px; font-weight: 700; }
.sw-fl .ps-fld { min-height: 32px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; }
.sw-form .mbt { align-self: flex-start; margin-top: 4px; }
.sw-ck { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 20px auto 0; }
.sw-ck li { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 14px; font-weight: 600; }
.sw-ck i { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #cfcfcb; border-radius: 50%; color: transparent; }
.sw-ck .run { color: var(--ink); }
.sw-ck .run i { border-color: var(--acc); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.sw-ck .ok { color: var(--ink); }
.sw-ck .ok i { border-color: #1e9e5a; background: #1e9e5a; color: #fff; }
.sw-done { display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 22px auto 0; padding: 12px 14px; border: 1px solid #a9d5bc; border-radius: 12px; background: #e7f4ec; color: #17603f; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s var(--e); }
.sw-done.show { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1000px) {
	.dp > .demo { max-width: 340px; }
}
@media (max-width: 640px) {
	.dcur-a { transform: scale(1.3); transform-origin: 0 0; }
	.dbar { margin-top: 16px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mo [data-rv] { opacity: 1; transform: none; }
	.sp { animation: none; }
}

@media (max-width: 1000px) {
	.tabs { display: none; }
	.hd-in { grid-template-columns: auto 1fr; }
	.dp, .pr, .qa { grid-template-columns: minmax(0, 1fr); }
	.dp.rev .dp-t { order: 0; }
	.flow { grid-template-columns: minmax(0, 1fr); }
	.ft-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) { .admin-bar .hd { top: 46px; } }
@media (max-width: 640px) {
	.admin-bar .hd { top: 0; }
	.hd-sign { display: none; }
	.hero { text-align: left; }
	.hero-c { align-items: stretch; }
	.lead { margin-left: 0; }
	.acts { justify-content: stretch; }
	.acts .bt { flex: 1 1 100%; }
	.stats { grid-template-columns: minmax(0, 1fr); }
	.lp-h { flex-direction: column; align-items: flex-start; gap: 16px; }
	.cov.lg { width: 120px; height: 120px; font-size: 16px; }
	.lp-l li:nth-child(n+4) { display: none; }
	.lp-pt { width: auto; flex: 1; }
	.lp-bar, .lp-sp { display: none; }
	.tbl td:nth-child(2) { display: none; }
	.phn { width: 270px; }
}
