/* Interactive web demo (demo/index.html): side panel + phone, mobile full
   screen, and the "do this in the app" card (Kit.blocked()). */
body.kit-demo {
  margin: 0; min-height: 100vh; overflow: hidden; font-family: 'DM Sans', system-ui, sans-serif; color: #fff;
  background: var(--forest);
}
.demo-layout { display: flex; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 96px); height: 100vh; padding: 24px; box-sizing: border-box; }
.demo-phone-wrap { position: relative; flex: none; width: calc(414px * var(--ps, 1)); height: 100%; }
.demo-phone-wrap .phone { box-shadow: 0 0 0 2px #2a2a2a, 0 0 0 3px #111, 0 40px 100px rgba(0,0,0,.7), 0 0 120px rgba(220,248,0,.08); }

.demo-panel { width: 360px; flex: none; display: flex; flex-direction: column; }
.dp-top { display: flex; align-items: center; justify-content: space-between; }
.dp-home { display: flex; }
.dp-back { align-self: flex-start; display: flex; align-items: center; gap: 6px; margin-bottom: 22px; font-size: 13px; font-weight: 600; color: var(--white-60); text-decoration: none; }
.dp-back:hover { color: var(--primary); }
.dp-logo { height: 30px; }
.dp-langs { display: flex; gap: 4px; }
.dp-langs a { font-size: 12px; font-weight: 600; color: var(--white-60); text-decoration: none; padding: 5px 9px; border-radius: 999px; border: 1px solid #2a2a2a; }
.dp-langs a.on, .dp-langs a:hover { color: var(--bg); background: var(--primary); border-color: transparent; }
.demo-panel h1 { font-size: 44px; line-height: 1.05; letter-spacing: -1.2px; font-weight: 700; margin: 36px 0 0; }
.demo-panel h1 em { font-style: normal; color: var(--primary); }
.dp-sub { font-size: 16px; line-height: 1.45; color: var(--white-80); margin: 14px 0 0; text-wrap: pretty; }
.dp-steps-title { margin-top: 32px; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--primary); }
.dp-steps-title span { color: var(--white-60); margin-left: 6px; }
.dp-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dp-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-size: 15px; font-weight: 500; color: var(--white-80); cursor: pointer; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); transition: background 200ms, border-color 200ms; }
.dp-steps li:hover { background: rgba(255,255,255,.06); border-color: rgba(220,248,0,.35); }
.dp-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #444; display: flex; align-items: center; justify-content: center; color: transparent; transition: background 250ms, border-color 250ms, color 250ms; }
.dp-steps li.done { color: #fff; }
.dp-steps li.done .dp-check { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.dp-steps li.done span:last-child { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.dp-hint { font-size: 13px; color: var(--white-60); margin: 10px 0 0; }
.dp-bottom { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.store-badges { display: flex; gap: 12px; align-items: center; }
.store-badges a { display: block; line-height: 0; }
.store-badges .gp { display: block; overflow: hidden; }
.store-badges .gp img { display: block; height: auto; max-width: none; }
.dp-reset { font: inherit; font-size: 13px; font-weight: 600; color: var(--white-60); background: none; border: 0; padding: 0; cursor: pointer; }
.dp-reset:hover { color: #fff; }

/* narrow-but-not-phone windows: drop the panel, keep the phone */
@media (max-width: 860px) { .demo-panel { display: none; } }

/* phone-sized windows: kit uses the bare stage, filled edge to edge (Kit fill()) */
body.kit-bare { background: var(--bg); }

/* Kit.blocked(): "do this in the app" card over the screen */
.demo-blocked { position: absolute; inset: 0; z-index: 250; display: flex; align-items: flex-end; background: rgba(0,0,0,.55); opacity: 0; transition: opacity 250ms; }
.demo-blocked.show { opacity: 1; }
.db-card { width: 100%; box-sizing: border-box; padding: 28px 24px calc(28px + 20px); border-radius: 28px 28px 0 0; background: var(--forest); border-top: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateY(30px); transition: transform 300ms cubic-bezier(.2,.8,.2,1); }
.demo-blocked.show .db-card { transform: none; }
.db-card img { height: 56px; }
.db-card h3 { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.db-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--white-80); }
.db-close { margin-top: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--white-60); background: none; border: 0; cursor: pointer; }

/* Way back to the website over the fake status bar (phones, or panel hidden) */
.demo-exit { position: absolute; z-index: 150; top: 0; left: 0; right: 0; height: var(--safe-top); box-sizing: border-box; padding: 0 14px 0 10px; display: flex; align-items: center; justify-content: space-between; background: var(--bg); }
.demo-exit a { display: flex; align-items: center; color: var(--white); text-decoration: none; }
.de-back { gap: 2px; font-size: 15px; font-weight: 600; }
.de-close { width: 30px; height: 30px; justify-content: center; border-radius: 999px; background: var(--white-20); }
@media (min-width: 861px) { .demo-layout .demo-exit { display: none; } }
