/* Pikabuk demo deck. Same look as the product: night hero, cream pages, Outfit, mint accent.
   Every slide is laid out on a fixed 1600×900 stage that is scaled to the window, so nothing
   reflows or overflows on a projector, a laptop or a shared Zoom window. */
@font-face { font-family: "Outfit"; src: url("fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --night: #15131a;
  --night-2: #201d27;
  --night-3: #2c2834;
  --cream: #fffbef;
  --cream-2: #f6f0de;
  --ink: #1f1b17;
  --ink-2: #5a5249;
  --ink-3: #8b8277;
  --line: #e7dfca;
  --mint: #45d99b;
  --mint-ink: #0e3b29;
  --mint-soft: #dff7ec;
  --mark: #ffd666;
  --coral: #f06a3b;
  --coral-soft: #fde5da;
  --sky: #5b8def;
  --ui: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: #0d0c11; color: var(--ink); font: 400 16px/1.5 var(--ui); overflow: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

/* ---------- stage ---------- */
.viewport { position: fixed; inset: 0 0 56px 0; overflow: hidden; }
.stage { position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px; transform-origin: center center; transform: translate(-50%, -50%); }
.slide {
  position: absolute; inset: 0; padding: 72px 88px 64px; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateX(var(--from, 40px));
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s linear .55s;
  border-radius: 6px;
}
.slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s; }
.slide.cream { background: var(--cream); color: var(--ink); }
.slide.dark { background: radial-gradient(120% 90% at 85% 0%, #2a2440 0%, var(--night) 55%); color: #f4efe6; }

.kicker { margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.dark .kicker { color: var(--mint); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 54px; line-height: 1.04; max-width: 22ch; }
.head { margin-bottom: 40px; }
.head h2 { max-width: none; }
.foot-note { position: absolute; left: 88px; right: 88px; bottom: 46px; margin: 0; font-size: 20px; color: var(--ink-2); }
.foot-note.on-dark, .dark .foot-note { color: #b9b1c4; }
.note { margin: 28px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--cream-2); color: var(--ink-2); font-size: 19px; line-height: 1.45; }
.note.on-dark { background: rgba(255,255,255,.06); color: #cfc7da; }

.who { display: inline-block; padding: 6px 14px; border-radius: 99px; font-size: 16px; letter-spacing: .08em; }
.who.t { background: var(--coral-soft); color: #9a3412; }
.who.s { background: #e3ecff; color: #1e3a8a; }
.who.c { background: #e9e4f4; color: #3b2f63; }
.who.a { background: var(--mint-soft); color: var(--mint-ink); }
.dark .who.a { background: rgba(69,217,155,.16); color: var(--mint); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; letter-spacing: -0.02em; font-size: 30px; color: #fff; }
.logo img { width: .92em; height: .92em; }
.logo.big { font-size: 40px; margin-bottom: 44px; }

/* ---------- cover ---------- */
.cover { padding: 0; display: grid; grid-template-columns: 820px 1fr; }
.cover-text { padding: 110px 0 0 96px; position: relative; z-index: 2; }
.cover h1 { font-size: 96px; line-height: .98; letter-spacing: -0.035em; max-width: 9ch; }
.cover .lede { margin: 32px 0 0; font-size: 27px; line-height: 1.4; color: #ddd6e6; max-width: 30ch; }
.cover .meta { margin: 40px 0 0; font-size: 18px; color: #9c93aa; letter-spacing: .02em; }
.cover-art { position: absolute; inset: -40px -60px -40px 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; transform: rotate(-6deg); }
.cover-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.cover-art img:nth-child(2) { transform: translateY(70px); }
.cover-art img:nth-child(4) { transform: translateY(70px); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 46%, rgba(21,19,26,.6) 60%, rgba(21,19,26,0) 78%); z-index: 1; pointer-events: none; }
.end h1 { font-size: 110px; }

/* ---------- flow (slide 2) ---------- */
.flow { list-style: none; margin: 120px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: f; }
.flow li { position: relative; padding: 30px 26px 0 0; border-top: 3px solid var(--ink); counter-increment: f; display: flex; flex-direction: column; gap: 14px; }
.flow li::before { content: counter(f); position: absolute; top: -26px; left: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.flow li::after { content: ""; position: absolute; top: -9px; right: 12px; width: 14px; height: 14px; border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); transform: rotate(45deg); }
.flow li:last-child::after { display: none; }
.flow li .who { align-self: flex-start; margin-top: 18px; }
.flow b { font-size: 31px; line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
.flow span:not(.who) { font-size: 22px; color: var(--ink-2); line-height: 1.4; }

/* ---------- split: copy + screenshot ---------- */
.split { display: grid; grid-template-columns: 430px 1fr; gap: 52px; align-items: center; padding-right: 64px; }
.split .copy h2 { font-size: 46px; margin-top: 4px; }
.pins-legend { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 20px; }
.pins-legend li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; font-size: 21px; line-height: 1.42; color: var(--ink-2); }
.pins-legend b { color: var(--ink); }
.pins-legend i, .dot { font-style: normal; width: 36px; height: 36px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.dot { display: inline-grid; width: 30px; height: 30px; font-size: 15px; margin-right: 8px; vertical-align: -6px; }

.shot { margin: 0; min-width: 0; }
.shot .frame { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(31,27,23,.06), 0 30px 60px -30px rgba(31,27,23,.45); border: 1px solid var(--line); }
.dark .shot .frame, .shot.dark-frame .frame { border-color: #2f2a38; background: var(--night-2); }
.shot img { width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; font-size: 16px; color: var(--ink-3); }
.dark .shot figcaption { color: #9c93aa; }
.pin {
  position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%;
  background: var(--coral); color: #fff; font-style: normal; font-weight: 800; font-size: 19px; display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 8px 18px -6px rgba(0,0,0,.5);
}
.slide.on .pin { animation: pop .5s var(--ease) both; }
.slide.on .pin:nth-of-type(2) { animation-delay: .12s; }
.slide.on .pin:nth-of-type(3) { animation-delay: .24s; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.stack { display: grid; gap: 18px; }
.stack .in { position: relative; }
.stack .shot:first-child .frame { height: 345px; }
.stack .shot:first-child .in { margin-top: -2%; }
.stack .shot:last-child .frame { height: 345px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pair .shot figcaption { font-size: 20px; color: var(--ink-2); }

/* ---------- three formats ---------- */
.trio { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; gap: 22px 26px; }
.trio figure { margin: 0; }
.trio .t-main { grid-row: span 2; }
.trio img { width: 100%; border-radius: 16px; border: 1px solid #2f2a38; }
.trio .t-main img { height: 530px; object-fit: cover; object-position: center; }
.trio figure:not(.t-main) img { height: 214px; object-fit: cover; object-position: top; }
.trio figcaption { margin-top: 10px; font-size: 19px; color: #c9c1d4; }
.trio b { color: #fff; }

/* ---------- diagrams ---------- */
.diagram { width: 100%; height: auto; display: block; font-family: var(--ui); }
.diagram text { font-family: var(--ui); }
.arch { margin-top: -6px; }
.arch .box rect:first-child { fill: rgba(255,255,255,.05); stroke: #3a3445; stroke-width: 2; }
.arch .box.pk > rect { stroke: rgba(69,217,155,.55); }
.arch .bx-t { fill: #fff; font-size: 34px; font-weight: 800; }
.arch .bx-s { fill: #9c93aa; font-size: 18px; }
.arch .chip-list rect { fill: var(--night-3); stroke: none; }
.arch .chip-list text { fill: #e9e3f0; font-size: 22px; font-weight: 600; dominant-baseline: middle; }
.arch .chip-list text { dominant-baseline: auto; }
.arch .links path { stroke: var(--mint); stroke-width: 3; fill: none; }
.arch .lbl rect { fill: var(--night); stroke: #3a3445; stroke-width: 1.5; }
.arch .lbl text { fill: #fff; font-size: 19px; font-weight: 600; text-anchor: middle; }
.arch .lbl tspan { fill: var(--mint); font-weight: 700; }

.seq .lane rect { fill: #fff; stroke: var(--line); stroke-width: 2; }
.seq .lane.cv rect { fill: #e9e4f4; stroke: #d4cbe9; }
.seq .lane.pkl rect { fill: var(--mint-soft); stroke: #b8ecd4; }
.seq .lane text { font-size: 24px; font-weight: 800; text-anchor: middle; fill: var(--ink); }
.seq .life { stroke: #d9d0bb; stroke-width: 2; stroke-dasharray: 6 8; fill: none; }
.seq .msg path { stroke: var(--ink); stroke-width: 3; fill: none; }
.seq .msg text { font-size: 21px; font-weight: 700; text-anchor: middle; fill: var(--ink); }
.seq .msg text.sm, .seq .chk text.sm { font-size: 17px; font-weight: 500; fill: var(--ink-2); }
.seq .chk rect { fill: #fff; stroke: var(--mint); stroke-width: 2.5; }
.seq .chk text { text-anchor: start; }

.loop .step rect { fill: rgba(255,255,255,.05); stroke: #3a3445; stroke-width: 2; }
.loop .step.cv rect { fill: rgba(150,130,220,.12); stroke: #5b4f86; }
.loop .step.pk rect { fill: rgba(69,217,155,.10); stroke: rgba(69,217,155,.6); }
.loop .step text { fill: #fff; font-size: 26px; font-weight: 800; }
.loop .step text.n { fill: var(--mint); font-size: 22px; }
.loop .step text.sm { fill: #b9b1c4; font-size: 19px; font-weight: 500; }
.loop .links path { stroke: var(--mint); stroke-width: 3; fill: none; }

.slide.on .draw { stroke-dasharray: 1400; animation: draw .9s var(--ease) both; }
.slide.on .draw.d2 { animation-delay: .15s; }
.slide.on .draw.d3 { animation-delay: .3s; }
.slide.on .draw.d4 { animation-delay: .45s; }
.slide.on .draw.d5 { animation-delay: .6s; }
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }

/* ---------- privacy ---------- */
.privacy { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 0; align-items: stretch; margin-top: 40px; }
.privacy h3 { font-size: 30px; margin-bottom: 22px; }
.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.privacy li { font-size: 22px; line-height: 1.4; padding-left: 34px; position: relative; color: var(--ink-2); }
.privacy li b { color: var(--ink); }
.privacy .keep, .privacy .never { padding: 34px 36px; border-radius: 22px; }
.privacy .keep { background: #fff; border: 1px solid var(--line); }
.privacy .never { background: var(--night); color: #f4efe6; }
.privacy .never li { color: #cfc7da; }
.privacy .never li b { color: #fff; }
.privacy .keep li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); }
.privacy .never li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 16px; height: 3px; background: var(--coral); border-radius: 2px; }
.privacy .wall { position: relative; display: grid; place-items: center; }
.privacy .wall::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 3px dashed var(--coral); }
.privacy .wall span { position: relative; writing-mode: vertical-rl; transform: rotate(180deg); background: var(--cream); padding: 14px 0; font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }

/* ---------- install steps ---------- */
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.steps b { font-size: 24px; color: #fff; }
.steps span { font-size: 19px; color: #b9b1c4; line-height: 1.4; }

/* ---------- next steps ---------- */
.next { list-style: none; margin: 70px 0 0; padding: 0; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 0; }
.next li { display: grid; grid-template-columns: 60px 1fr; gap: 6px; padding: 0 34px 0 0; margin-right: 34px; border-right: 1px solid var(--line); }
.next li:last-child { border-right: 0; margin-right: 0; }
.next .n { font-size: 52px; font-weight: 900; color: var(--coral); line-height: 1; }
.next b { font-size: 34px; letter-spacing: -0.015em; }
.next p { margin: 16px 0 0; font-size: 23px; line-height: 1.5; color: var(--ink-2); }

/* ---------- chrome: bar, progress, notes, overview ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; gap: 6px; padding: 0 14px 0 22px; background: #0d0c11; color: #cfc7da; z-index: 5; }
.bar-title { flex: 1; min-width: 0; font-size: 15px; color: #8d859b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { font-variant-numeric: tabular-nums; font-size: 15px; margin-right: 10px; color: #cfc7da; }
.bar button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; cursor: pointer; color: #e9e3f0; }
.bar button:hover { background: #221f2a; }
.bar button:active { transform: scale(.96); }
.bar button:disabled { opacity: .3; cursor: default; background: transparent; }
.bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.progress { position: fixed; left: 0; right: 0; bottom: 56px; height: 3px; background: #1d1a24; z-index: 5; }
.progress i { display: block; height: 100%; width: 0; background: var(--mint); transition: width .4s var(--ease); }
body.is-fs .bar, body.is-fs .progress { opacity: 0; transition: opacity .3s; }
body.is-fs .bar:hover, body.is-fs.wake .bar, body.is-fs.wake .progress { opacity: 1; }
body.is-fs .viewport { inset: 0; }

.notes { position: fixed; left: 16px; right: 16px; bottom: 70px; z-index: 6; display: flex; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(13,12,17,.94); color: #e9e3f0; font-size: 17px; line-height: 1.45; border: 1px solid #2f2a38; }
.notes b { color: var(--mark); flex: none; }

.overview { position: fixed; inset: 0; z-index: 10; background: #0d0c11; overflow: auto; padding: 28px 32px 40px; }
.ov-head { display: flex; align-items: baseline; gap: 18px; color: #fff; margin-bottom: 22px; font-size: 20px; }
.ov-head span { color: #8d859b; font-size: 15px; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.ov-item { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; color: #cfc7da; }
.ov-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; outline: 2px solid transparent; outline-offset: 3px; background: var(--night-2); }
.ov-thumb .slide { opacity: 1; visibility: visible; transform: none; transition: none; width: 1600px; height: 900px; transform-origin: 0 0; }
.ov-thumb .slide * { animation: none !important; }
.ov-item:hover .ov-thumb { outline-color: #4a4356; }
.ov-item.cur .ov-thumb { outline-color: var(--mint); }
.ov-item span { display: block; margin-top: 8px; font-size: 14px; }
.ov-item span b { color: #fff; margin-right: 6px; }

/* first paint: the slide from the URL appears at once, without the slide-in */
body.boot .slide { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.on { transition: opacity .2s linear, visibility 0s; transform: none; }
  .slide.on .pin, .slide.on .draw { animation: none; }
}
