/* The app's pages (features, download): a dark, quiet stage in the spirit of
   Raycast's site — a floating pill nav, one glowing hero, white primary
   button, mono small print — with LiveWall's amber as the only colour that
   isn't a wallpaper. Loaded after styles.css; these pages are always dark. */
:root {
  --bg: #07070a;
  --surface: #111115;
  --surface-2: #17171c;
  --text: #f2f2f4;
  --muted: #8d8d97;
  --faint: #5c5c66;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
body.stage { background: var(--bg); overflow-x: hidden; }

/* Floating pill nav */
.pillnav {
  position: sticky; top: 14px; z-index: 20;
  max-width: 1200px; margin: 14px auto 0; padding: 10px 12px 10px 18px;
  display: flex; align-items: center; gap: 8px;
  border-radius: 18px; border: 1px solid var(--line);
  background: color-mix(in srgb, #0d0d11 80%, transparent);
  backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
}
.pillnav .brand { margin-right: auto; }
.pillnav nav { display: flex; gap: 4px; }
.pillnav nav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 7px 12px; border-radius: 10px; }
.pillnav nav a:hover, .pillnav nav a[aria-current="page"] { color: var(--text); }
.pillnav .btn-white { padding: 8px 14px; font-size: 14px; margin-left: 8px; }
@media (max-width: 640px) { .pillnav { margin: 10px 16px 0; } .pillnav nav { display: none; } }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 0;
  background: #fff; color: #0b0b0d; font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 8px 30px rgba(255,255,255,0.08);
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
}
.btn-white:hover { box-shadow: 0 0 0 1px #fff, 0 10px 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-white:active { transform: scale(0.97); }
.btn-white svg { width: 16px; height: 16px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  background: none; cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { border-color: var(--accent); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }
.mono a { color: var(--muted); text-decoration: none; }
.mono a:hover { color: var(--text); }

/* Hero with Raycast-style glowing diagonal bands, in amber */
.stage-hero { position: relative; text-align: center; padding: clamp(90px, 16vh, 170px) 16px 60px; isolation: isolate; }
.glow-bands {
  position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000 30%, transparent 75%);
          mask-image: radial-gradient(60% 55% at 50% 45%, #000 30%, transparent 75%);
}
.glow-bands::before {
  content: ""; position: absolute; inset: -20%;
  background: repeating-linear-gradient(135deg,
      transparent 0 70px,
      rgba(245, 158, 56, 0.85) 110px, rgba(255, 196, 110, 0.95) 140px, rgba(214, 92, 30, 0.8) 175px,
      transparent 230px 300px);
  filter: blur(26px) saturate(1.2);
  animation: drift 18s linear infinite;
}
.glow-bands::after { /* film grain */
  content: ""; position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift { to { transform: translateX(300px); } }
@media (prefers-reduced-motion: reduce) { .glow-bands::before { animation: none; } }
.stage-hero h1 {
  margin: 0 auto; max-width: 900px;
  font-size: clamp(42px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.stage-hero .lede { margin: 22px auto 0; max-width: 560px; font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,0.86); text-shadow: 0 1px 20px rgba(0,0,0,0.6); }
.cta { margin-top: 40px; display: grid; justify-items: center; gap: 14px; }

/* Sections */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.section { padding: clamp(70px, 12vh, 140px) 0 0; }
.say { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; margin: 0; max-width: 620px; }
.say span { color: var(--faint); }
.say.center { margin: 0 auto; text-align: center; }
.caption { margin: 26px auto 0; max-width: 560px; text-align: center; font-size: 15px; color: var(--muted); }
.caption strong { color: var(--text); font-weight: 600; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 1.2fr 0.8fr; }
.split.flip > :first-child { order: 2; }
.split > * { min-width: 0; }
.split p.body { color: var(--muted); margin: 16px 0 0; max-width: 440px; }
.split ul.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.split ul.ticks li::before { content: "✦"; color: var(--accent); margin-right: 10px; font-size: 11px; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }

/* A mock keeps its designed size and zooms to fit (landing.js sets --z). */
.fit { width: 100%; }
.fit > [data-w] { zoom: var(--z, 1); }

/* Shared frame: a softly lit "screen" panel */
.panel {
  position: relative; border-radius: 22px; padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.6) inset;
}
.panel::before { /* amber halo behind */
  content: ""; position: absolute; inset: 10% 8% -6%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
  filter: blur(50px);
}
.screen { position: relative; overflow: hidden; border-radius: 14px; background: #000; }
.screen > video.wall, .screen > img.wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Mock: macOS window chrome ---------- */
.win {
  position: relative; border-radius: 16px; overflow: hidden; color: #f2f2f4;
  background: rgba(30, 30, 36, 0.78);
  backdrop-filter: blur(40px) saturate(1.4); -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(0,0,0,0.8);
  font-size: 13px;
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.glass { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; }

/* Control panel */
.cp { display: grid; grid-template-columns: 210px 1fr; height: 100%; }
.cp-side { padding: 16px 10px; background: rgba(0,0,0,0.22); border-right: 1px solid rgba(255,255,255,0.06); }
.cp-side .lights { padding: 0 6px 18px; }
.cp-side h6 { margin: 10px 8px 6px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4); }
.cp-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; color: rgba(255,255,255,0.85); }
.cp-row b { margin-left: auto; font-weight: 500; font-size: 11px; color: rgba(255,255,255,0.4); }
.cp-row.on { background: color-mix(in srgb, var(--accent) 30%, rgba(255,255,255,0.05)); color: #fff; font-weight: 600; }
.cp-row svg { width: 14px; height: 14px; flex: none; opacity: 0.75; }
.cp-main { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cp-bar { display: flex; align-items: center; gap: 10px; }
.cp-bar .title { line-height: 1.2; margin-right: auto; }
.cp-bar .title b { display: block; font-size: 13px; }
.cp-bar .title span { font-size: 11px; color: rgba(255,255,255,0.45); }
.seg { display: flex; padding: 3px; gap: 2px; }
.seg span { padding: 5px 14px; border-radius: 999px; font-size: 12px; color: rgba(255,255,255,0.6); }
.seg span.on { background: rgba(255,255,255,0.18); color: #fff; font-weight: 600; }
.pill { padding: 7px 12px; font-size: 12px; color: rgba(255,255,255,0.75); display: inline-flex; align-items: center; gap: 6px; }
.pill svg { width: 13px; height: 13px; }
.np { position: relative; height: 300px; border-radius: 18px; overflow: hidden; background: #000; }
.np video, .np img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.np::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75)); }
.np-copy { position: absolute; left: 26px; bottom: 22px; right: 26px; z-index: 1; }
.np-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: #ffc97a; display: flex; align-items: center; gap: 8px; }
.np-eyebrow i { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.np-eyebrow i b { width: 2px; background: #ffc97a; border-radius: 1px; animation: eq 1s ease-in-out infinite alternate; }
.np-eyebrow i b:nth-child(2) { animation-delay: -0.3s; } .np-eyebrow i b:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { from { height: 3px; } to { height: 10px; } }
.np-copy h3 { margin: 6px 0 2px; font-size: 32px; letter-spacing: -0.02em; }
.np-copy p { margin: 0 0 14px; font-size: 12px; color: rgba(255,255,255,0.7); }
.np-controls { display: flex; align-items: center; gap: 10px; }
.speed { display: flex; align-items: center; gap: 10px; padding: 7px 14px; }
.speed .track { position: relative; width: 120px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); }
.speed .track::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v, 60%); border-radius: 2px; background: #fff; }
.speed .track::after { content: ""; position: absolute; left: var(--v, 60%); top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.speed b { font-size: 12px; min-width: 26px; text-align: right; }
.np-controls .spacer { flex: 1; }
.desk { position: absolute; top: 16px; right: 16px; z-index: 1; width: 230px; padding: 10px 12px 12px; border-radius: 14px;
  background: rgba(40,40,46,0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); font-size: 11px; }
.desk-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.desk-head span { color: rgba(255,255,255,0.5); font-weight: 500; }
.desk-mons { display: flex; gap: 6px; align-items: flex-end; }
.mon { flex: 1; aspect-ratio: 16/10; border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.25); background-size: 200% 100%; background-position: left; position: relative; }
.mon + .mon { background-position: right; }
.mon.sel { border-color: var(--accent); }
.mon::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 4px; margin-left: -7px; border-radius: 1px; background: rgba(255,255,255,0.3); }
.desk p { margin: 10px 0 0; color: rgba(255,255,255,0.55); line-height: 1.35; }
.cp-grid-head { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.cp-grid-head span { color: rgba(255,255,255,0.4); }
.cp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cp-tile .art { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #222; position: relative; }
.cp-tile .art img { width: 100%; height: 100%; object-fit: cover; }
.cp-tile .art.playing { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.cp-tile p { margin: 7px 0 0; font-size: 12px; font-weight: 600; }

/* ---------- Mock: Dynamic Island ---------- */
.island-stage { position: relative; aspect-ratio: 16/10; }
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 190px; height: 30px; border-radius: 0 0 14px 14px; background: #000; z-index: 2; }
.menubar { position: absolute; top: 0; left: 0; right: 0; height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 16px;
  font-size: 13px; font-weight: 500; color: #fff; background: rgba(0,0,0,0.18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 1; }
.menubar .r { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.menubar svg { width: 15px; height: 15px; }
.menubar .lw { padding: 2px 6px; border-radius: 5px; }
.menubar .lw.open { background: rgba(255,255,255,0.25); }
.island {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 470px; padding: 40px 14px 14px; border-radius: 0 0 34px 34px; background: #000; color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  display: grid; gap: 8px;
}
.isl-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,0.07); }
.isl-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 15px; }
.isl-card .t { min-width: 0; flex: 1; line-height: 1.25; }
.isl-card .t b { display: block; font-size: 13px; }
.isl-card .t span { font-size: 12px; color: rgba(255,255,255,0.55); }
.isl-card .st { font-size: 11px; font-weight: 600; }
.isl-card .ctl { display: flex; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.85); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.prog { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.15); margin-top: 6px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 42%; background: #fff; border-radius: 2px; }
.isl-card .go { font-size: 14px; font-weight: 700; color: var(--accent); }
.isl-limits { display: grid; gap: 8px; padding: 10px 14px 12px; }
.isl-limits .lh { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #ffd17a; }
.isl-limits .lrow { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 14px; align-items: center; }
.isl-limits .lrow > b { font-size: 13px; }
.gauge span { display: flex; justify-content: space-between; font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.gauge em { font: 10px var(--mono); letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.8); }
.gauge i { display: block; height: 4px; margin: 4px 0; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / var(--p) 100% no-repeat, rgba(255,255,255,0.12); }
.gauge small { display: block; font: 9px var(--mono); color: rgba(255,255,255,0.45); }
.isl-pill { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 3; height: 32px; width: 300px; border-radius: 0 0 16px 16px; background: #000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #fff; font-size: 11px; font-weight: 600; }

/* ---------- Mock: menu-bar menu ---------- */
.menu { position: absolute; top: 34px; right: 120px; z-index: 4; width: 270px; padding: 5px; border-radius: 12px; font-size: 13px; color: #fff;
  background: rgba(40, 40, 46, 0.72); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.menu div { display: flex; justify-content: space-between; padding: 4px 10px; border-radius: 6px; }
.menu div kbd { font: inherit; color: rgba(255,255,255,0.45); }
.menu div.dim { color: rgba(255,255,255,0.45); }
.menu div.hi { background: #2a6fdb; }
.menu div.hi kbd { color: #fff; }
.menu hr { border: 0; height: 1px; background: rgba(255,255,255,0.12); margin: 5px 10px; }
.menu .chev::after { content: "›"; color: rgba(255,255,255,0.5); }

/* ---------- Mock: two displays ---------- */
.displays { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 30px 20px 10px; }
.display { flex: 1; max-width: 520px; }
.display .bezel { padding: 8px; border-radius: 14px; background: #1b1b20; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.display .glass-s { aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; position: relative; background: #000; }
.display .glass-s video, .display .glass-s img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: cover;
  /* the app's morph: 0.7s on its spring curve, frames resize in place */
  transition: left 0.7s var(--spring), width 0.7s var(--spring); }
@media (prefers-reduced-motion: reduce) { .display .glass-s video, .display .glass-s img { transition: none; } }
.display.left .glass-s video, .display.left .glass-s img { left: 0; }
.display.right .glass-s video, .display.right .glass-s img { left: -100%; }
.display.own .glass-s video, .display.own .glass-s img { left: 0; width: 100%; }
.display .stand { width: 90px; height: 46px; margin: 0 auto; background: linear-gradient(#26262c, #141418); clip-path: polygon(30% 0, 70% 0, 80% 100%, 20% 100%); }
.display .foot { width: 150px; height: 6px; margin: 0 auto; border-radius: 3px; background: #26262c; }
.toggle-row { display: flex; justify-content: center; margin-top: 22px; }
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; cursor: pointer; color: var(--text); font-family: inherit; }
.switch i { width: 34px; height: 20px; border-radius: 999px; background: var(--accent); position: relative; transition: background 0.2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 16px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.25s var(--spring); }
.switch[aria-checked="false"] i { background: #3a3a42; }
.switch[aria-checked="false"] i::after { left: 2px; }

/* ---------- Mock: welcome ---------- */
.welcome { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; text-align: center; color: #fff; }
.welcome::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 70% at 50% 50%, rgba(0,0,0,0.55), rgba(0,0,0,0.3)); }
.welcome > :not(.wall) { position: relative; z-index: 2; }
.welcome .top { position: absolute; top: 18px; left: 26px; right: 26px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.6); }
.welcome .dots { display: flex; gap: 6px; }
.welcome .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.25); }
.welcome .dots i.on { width: 20px; background: #fff; }
.welcome h3 { margin: 0; font-size: 46px; letter-spacing: -0.03em; font-weight: 600; }
.welcome p { margin: 12px 0 26px; font-size: 18px; color: rgba(255,255,255,0.65); }
.welcome .go { display: inline-block; padding: 12px 28px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 15px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.cell { position: relative; overflow: hidden; border-radius: 20px; padding: 20px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, var(--surface), #0c0c0f); border: 1px solid var(--line); }
.cell.wide { grid-column: span 2; }
.cell .art-area { flex: 1; display: grid; place-items: center; margin-bottom: 18px; min-height: 160px; }
.cell h4 { margin: 0; font-size: 15px; }
.cell p { margin: 4px 0 0; font-size: 14px; color: var(--muted); max-width: 440px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .cell.wide { grid-column: auto; } }

.fitmodes { display: flex; gap: 12px; }
.fitmodes figure { margin: 0; text-align: center; font-size: 11px; color: var(--muted); }
.fitmodes .f { width: 92px; aspect-ratio: 4/3; border-radius: 6px; background: #000; border: 1.5px solid var(--line-strong); overflow: hidden; margin-bottom: 8px; }
.fitmodes .f img { width: 100%; height: 100%; object-fit: cover; }
.fitmodes .f.fit img { object-fit: contain; }
.fitmodes .f.stretch img { object-fit: fill; }
.fitmodes figure.on .f { border-color: var(--accent); }
.fitmodes figure.on { color: var(--text); }

.pauses { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 320px; display: grid; gap: 8px; }
.pauses li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.pauses li span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pauses li span.on { color: var(--accent); }

.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 330px; position: relative; }
.mini-gallery .g { aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; position: relative; }
.mini-gallery .g img { width: 100%; height: 100%; object-fit: cover; }
.mini-gallery .g.picked { outline: 2px solid var(--accent); outline-offset: 2px; }
.mini-gallery .g.picked::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #1a1206; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.mini-gallery .add { grid-column: 1 / -1; justify-self: center; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #1a1206; font-weight: 700; font-size: 12px; }

.speed-big { width: 100%; max-width: 330px; display: grid; gap: 14px; }
.speed-big .speed { padding: 12px 16px; }
.speed-big .speed .track { flex: 1; }
.speed-big .ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); padding: 0 16px; }

.private { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.9; width: 100%; max-width: 330px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.private b { color: var(--text); font-weight: 500; }
.private.code { max-width: 520px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.private .k { color: var(--accent); }

/* Closing CTA */
.closer { text-align: center; padding: clamp(90px, 14vh, 160px) 16px 40px; position: relative; isolation: isolate; }
.closer .glow-bands { inset: 0; }
.closer .icon { margin: 0 auto 26px; border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 80px color-mix(in srgb, var(--accent) 35%, transparent); }
.stage footer { color: var(--faint); border-top: 1px solid var(--line); }
.stage footer a { color: var(--muted); }

/* ---------- Download page, in the same voice ---------- */
.stage .dl { max-width: 1120px; padding-top: 0; }
.stage .dl-hero { padding: clamp(70px, 12vh, 130px) 0 10px; isolation: isolate; }
.stage .dl-hero::before { display: none; }
.stage .dl-hero h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.035em; line-height: 1.04; }
.stage .dl-icon { border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 70px color-mix(in srgb, var(--accent) 40%, transparent); }
.stage .dl-status { color: rgba(255,255,255,0.88); }
.stage .dl-meta, .stage .dl-retry { font-family: var(--mono); font-size: 12px; }
.stage .dl-steps { margin-top: 70px; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .stage .dl-steps { grid-template-columns: minmax(0, 1fr); } }
.stage .dl-step { border-radius: 20px; background: linear-gradient(180deg, var(--surface), #0c0c0f); padding: 14px 14px 22px; }
.stage .dl-visual { height: 200px; border-radius: 14px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 16%, #0c0c0f), #0c0c0f); border: 1px solid var(--line); }
.stage .dl-step h2, .stage .dl-step p { padding: 0 6px; }
.stage .dl-num { top: 26px; left: 26px; background: #fff; color: #0b0b0d; }
.stage .dl-next { border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); }
.stage .mock-anyway { background: var(--surface-2); }
.stage .dl-next a.btn-white { color: #0b0b0d; }
.stage .dl-next a.btn-ghost { color: var(--text); }

/* ---------- Gallery and setup pages, in the same voice ---------- */
.pillnav .search { margin: 0 8px 0 auto; max-width: 300px; background: var(--surface-2); border-color: var(--line); }
.pillnav .search ~ nav { margin-left: 0; }
.pillnav .brand + nav { margin-left: auto; }
.pillnav .brand { margin-right: 0; }
@media (max-width: 640px) { .pillnav .search { max-width: none; } }
.stage main { padding-top: 40px; }
.stage .intro h1 { letter-spacing: -0.03em; }
.stage .btn.primary { background: #fff; color: #0b0b0d; border-radius: 10px; }
.stage .btn.secondary { background: none; border: 1px solid var(--line-strong); border-radius: 10px; }
.stage .tag[aria-selected="true"], .stage .sort[aria-checked="true"] { background: #fff; color: #0b0b0d; border-color: #fff; }
.stage .hero { border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.stage .guide details, .stage .tile .art { border-color: var(--line); }
@media (max-width: 640px) {
  .pillnav { flex-wrap: wrap; }
  .pillnav .btn-white { margin-left: auto; }
  .pillnav .search { order: 3; flex: 1 0 100%; margin: 4px 0 0; }
}
