/* Pets content only. Shared editorial styles own the typography and rhythm. */
.pets-page .pets-beta { display: inline-block; margin-left: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); letter-spacing: .04em; }
.pets-page .pets-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--site-shadow); }
.pets-page .pets-gallery { display: grid; gap: 28px; margin-top: 32px; }
.pets-page .pets-friends { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 28px 0 0; }
.pets-page .pets-friends li { flex: 1 1 110px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pets-page .pets-friends strong, .pets-page .pets-friends span { display: block; }
.pets-page .pets-friends span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pets-page .pets-downloads article { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.pets-page .pets-downloads code { display: block; margin: 8px 0 24px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.pets-page .pets-downloads .button { margin-top: auto; }
.pets-page .pets-instructions { margin-top: 32px; }
.pets-page .pets-instructions ol { padding-left: 24px; color: var(--muted); line-height: 1.8; }
.pets-page .pets-instructions li { padding-left: 4px; margin-block: 6px; }
.pets-page .pets-notice { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--site-peach); }
.pets-page .pets-notice .text-link { margin-top: 12px; }
.pets-page .pets-repository { overflow-wrap: anywhere; }
.pets-page #download { scroll-margin-top: 140px; }
@media (min-width: 760px) { .pets-page .pets-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Introduction and animated companions. */
.pets-page .hero { grid-template-columns: minmax(0, 1fr); padding-block: clamp(24px, 3vw, 40px); }
.pets-page .hero-copy { max-width: 940px; }

.pets-page .pets-hero-art { width: 100%; max-width: 440px; justify-self: center; }
.pets-page .pets-companions { display: grid; place-items: center; aspect-ratio: 1464 / 1074; }
.pets-page .pets-companions img { display: block; width: 100%; height: auto; animation: pets-breathe 4s ease-in-out 1; transform-origin: center bottom; }
@keyframes pets-breathe { 50% { transform: translateY(-5px) rotate(.5deg); } }
@media (min-width: 760px) { .pets-page .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; } }
@media (max-width: 759px) { .pets-page .pets-hero-art { max-width: 360px; } }

@media (prefers-reduced-motion: reduce) { .pets-page .pets-companions img { animation: none; } }
@media (max-width: 759px) {
  .pets-page .hero .lead { font-size: 16px; line-height: 1.6; margin-top: 18px; }
  .pets-page .hero .eyebrow { margin-bottom: 12px; }
  .pets-page .hero .actions { margin-top: 20px; }
}
/* Keep the introduction in one full launch screen, including tall desktop windows. */
@media (min-width: 760px) {
  .pets-page .hero {
    min-height: calc(100svh - 88px);
    padding-block: clamp(24px, 4svh, 48px);
  }
  .pets-page .hero h1 {
    font-size: clamp(40px, min(6.1vw, 9svh), 88px);
  }
}
