/* /nothing-explorer: Nothing Explorer's page, on top of download.css (the same hero, demo bar, steps and framed sections as
   /download). Only the app's name and its demo are here: the app's search panel, drawn on /download's Mac desktop. */

.ne-name { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-weight: 720; font-size: 18px; letter-spacing: -.01em; }
.ne-name img { width: 44px; height: 44px; }

.ne-tries button + button { margin-left: -1px; }
.ne-tries button[aria-pressed="true"] { position: relative; background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* the desktop: /download's Mac wallpaper, framed like its demo; the app's panel on it */
.ne-stage {
  --ne-wall: url("/static/demo/wall-mac.webp") center / cover no-repeat #3F2D2C;
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; padding: clamp(12px, 3.5vw, 40px);
  background: var(--ne-wall); border: 1px solid var(--line-strong); overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ne-stage { --ne-wall: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)), url("/static/demo/wall-mac.webp") center / cover no-repeat #3F2D2C; }
}
:root[data-theme="dark"] .ne-stage { --ne-wall: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)), url("/static/demo/wall-mac.webp") center / cover no-repeat #3F2D2C; }
.ne-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* three steps, not /download's four: its two-column borders don't apply */
.ne-steps li, .ne-steps li:nth-child(-n+2) { border-bottom: 0; border-right: 1px solid var(--line); }
.ne-steps li:last-child { border-right: 0; }

/* the app's own panel (warm dark glass, as in the app), so it keeps its rounded Mac window corners */
.ne-panel {
  --g-ink: #F2EEE7; --g-muted: rgba(242, 238, 231, .6); --g-line: rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; width: min(800px, 100%); height: 100%; overflow: hidden; border-radius: 14px;
  color: var(--g-ink); font-family: var(--font); line-height: 1.3;
  background: rgba(64, 60, 54, .9); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--g-line), 0 30px 70px -20px rgba(0, 0, 0, .55);
}
.ne-panel { transition: opacity .22s, transform .28s cubic-bezier(.2, .8, .2, 1); }
.ne-panel.away { opacity: 0; transform: scale(.96) translateY(10px); pointer-events: none; }
.p-search { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--g-line); }
.p-find { width: 24px; height: 24px; flex: none; color: var(--accent); }
.p-query { flex: 1; min-width: 0; margin: 0; font-size: clamp(17px, 2vw, 23px); white-space: nowrap; overflow: hidden; }
.p-query input { width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; outline: none; caret-color: var(--accent); }
.p-query input::placeholder { color: var(--g-muted); }
.p-query input::-webkit-search-cancel-button { display: none; }
.ne-none { display: grid; place-items: center; text-align: center; color: var(--g-muted); font-size: 15px; line-height: 1.6; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.17em; background: var(--accent); animation: ne-blink 1.05s steps(1) infinite; }
@keyframes ne-blink { 50% { opacity: 0; } }
.p-head { padding: 12px 20px 10px; transition: opacity .3s; }
.p-head.hush { opacity: 0; }
.p-found { margin: 0; font-weight: 650; font-size: 15px; }
.p-meta { margin: 3px 0 0; font-size: 12.5px; color: var(--g-muted); }
.p-body { position: relative; flex: 1; min-height: 0; }
.ne-scene { position: absolute; inset: 4px 20px 14px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.ne-scene.on { opacity: 1; visibility: visible; }

.ne-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-content: start; }
.ne-grid img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 9px; box-shadow: 0 0 0 1px var(--g-line);
  opacity: 0; transform: translateY(10px) scale(.95); transition: opacity .45s, transform .55s cubic-bezier(.2, .7, .1, 1);
}
.ne-grid img:first-child { box-shadow: 0 0 0 2.5px var(--accent); }
.ne-grid img:nth-child(2) { transition-delay: .07s; }
.ne-grid img:nth-child(3) { transition-delay: .14s; }
.ne-grid img:nth-child(4) { transition-delay: .21s; }
.ne-grid img:nth-child(5) { transition-delay: .28s; }
.ne-grid img:nth-child(6) { transition-delay: .35s; }
.ne-scene.shown img { opacity: 1; transform: none; }

/* a scanned page, its words ringed where they say "rent agreement" */
.ne-doc { display: grid; place-items: center; }
.paper {
  width: min(400px, 78%); max-height: 100%; overflow: hidden; padding: clamp(14px, 2.6vw, 30px) clamp(14px, 2.6vw, 30px) clamp(8px, 1.6vw, 18px);
  background: #FAF7F0; color: #2B2721; font: 400 clamp(10px, 1.2vw, 13.5px)/1.75 Georgia, "Times New Roman", serif;
  transform: rotate(-1.5deg); box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .6);
}
.p-title { margin: 0 0 1.1em; text-align: center; font-weight: 700; font-size: 1.2em; letter-spacing: .14em; }
.p-line { margin: 0 0 .9em; }
.paper mark { color: inherit; background: transparent; border-radius: 2px; padding: 0 2px; box-shadow: 0 0 0 2px transparent; transition: box-shadow .4s, background .4s; }
.ne-doc.shown .paper mark { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: 0 0 0 2px var(--accent); }

.p-foot { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 16px; border-top: 1px solid var(--g-line); font-size: 11.5px; color: var(--g-muted); white-space: nowrap; }

@media (max-width: 640px) {
  .ne-stage { aspect-ratio: 4 / 5; }
  .ne-steps { grid-template-columns: 1fr; }
  .ne-steps li, .ne-steps li:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .ne-steps li:last-child { border-bottom: 0; }
  .ne-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-foot .keys { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .ne-scene, .ne-grid img, .paper mark, .p-head { transition: none; }
}
