:root { --motion-out: cubic-bezier(.22,.75,.24,1); }
.browser-marks { display: inline-flex; align-items: center; gap: 5px; }
.browser-marks img { width: 16px; height: 16px; object-fit: contain; }
.compatibility .browser-marks, .browser-note .browser-marks { width: auto; height: auto; background: none; border-radius: 0; }
.browser-marks img:nth-child(2) { border-radius: 3px; }
[data-trail-scene] { position: relative; isolation: isolate; --trail-ink: #66509a; }
[data-trail-scene].closing { --trail-ink: #fff7df; }
.cta-drawing { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; pointer-events: none; transition: opacity 230ms var(--motion-out); }
.cta-drawing.active { opacity: .91; }
[data-trail-scene] > :not(.cta-drawing), [data-trail-anchor] { position: relative; z-index: 1; }

.pet-stage { position: relative; isolation: isolate; }
.pet-stage > :not(.pet-lane) { position: relative; z-index: 1; }
.pet-lane { position: absolute; inset: 0; pointer-events: none; }
.scene-pet {
  position: absolute; display: grid; place-items: center; width: clamp(42px, 5.5vw, 77px); aspect-ratio: 1;
  left: var(--pet-x); top: var(--pet-y); z-index: 1; padding: 0; border: 0; border-radius: 12px;
  color: inherit; background: transparent; pointer-events: auto; touch-action: manipulation;
  animation: pet-idle 3.7s ease-in-out infinite var(--pet-delay,0s) paused;
  filter: drop-shadow(0 5px 0 #201b4755);
}
.pet-stage[data-motion-visible] .scene-pet { animation-play-state: running; }
.scene-pet:hover { filter: brightness(1.13) drop-shadow(0 5px 0 #201b4755); }
.scene-pet canvas { width: 100%; height: auto; image-rendering: pixelated; pointer-events: none; }
.pet-lane .scene-pet:nth-child(1) { --pet-x: 5%; --pet-y: 75%; }
.pet-lane .scene-pet:nth-child(2) { --pet-x: 86%; --pet-y: 14%; --pet-delay: -.9s; }
.pet-lane .scene-pet:nth-child(3) { --pet-x: 89%; --pet-y: 73%; --pet-delay: -2.1s; }
@keyframes pet-idle { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .button:hover, .pill:hover { transform: translateY(-2px); }
  .route-icon, .note-icon { transition: transform 230ms var(--motion-out); }
  .route li:hover .route-icon, .edit-notes li:hover .note-icon { transform: translateY(-3px) rotate(-4deg); }
  .preview-controls button, .demo-controls button, [data-theme-toggle] { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 180ms var(--motion-out); }
  .preview-controls button:active, .demo-controls button:active, [data-theme-toggle]:active { transform: scale(.96); }
}
@media (max-width: 910px) {
  .pet-stage { padding-bottom: max(66px, 5vw); }
  .pet-lane .scene-pet { top: auto; bottom: 8px; }
  .pet-lane .scene-pet:nth-child(1) { left: calc(50% - 80px); }
  .pet-lane .scene-pet:nth-child(2) { left: calc(50% - 22px); }
  .pet-lane .scene-pet:nth-child(3) { left: calc(50% + 35px); }
}
@media (max-width: 620px), (pointer:coarse), (prefers-reduced-motion:reduce) { .cta-drawing { display:none; } }

.feature-notes { margin-top: clamp(54px,8vw,104px); }
.feature-notes h2 { max-width: 16ch; font-size: clamp(35px,5.1vw,63px); font-weight: 530; line-height: 1; letter-spacing: -.063em; }
.feature-notes ul { display: grid; list-style: none; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 22px 0 0; padding: 0; }
.feature-notes li { display: grid; align-content: start; gap: 6px; padding: clamp(13px,2vw,22px); border-radius: 12px; background: #f0e9f8; color: #352949; }
.feature-notes li:nth-child(2) { background: #f9e8cd; }
.feature-notes li:nth-child(3) { background: #dceee6; }
.feature-notes h3 { font-size: 18px; letter-spacing: -.027em; }
.feature-notes p { font-size: 15px; line-height: 1.5; color: #4e415b; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.guide-jump a { min-height: 44px; }
@media (max-width: 620px) { .feature-notes ul { grid-template-columns: minmax(0,1fr); } }
[data-trail-scene].closing { --trail-ink: #6944a1; }
[data-trail-scene].closing > div { z-index: auto; }
[data-trail-scene].closing .cta-drawing { z-index: 1; }
[data-trail-scene].closing h2, [data-trail-scene].closing [data-trail-anchor] { position: relative; z-index: 2; }
