.brand .brand-paw {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-right: 9px;
  vertical-align: middle;
  transform: translateY(-3px);
  background-color: var(--accent);
  -webkit-mask: url('/assets/peilo-paw-foreground.png') center / 220% 220% no-repeat;
  mask: url('/assets/peilo-paw-foreground.png') center / 220% 220% no-repeat;
}

.hero .hero-dragon {
  transform-origin: 50% 88%;
  animation: peilo-companion-breath 5.8s ease-in-out 1;
}

@keyframes peilo-companion-breath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.012); }
}

.comic-strip.motion-ready > figure {
  opacity: 0;
  transform: translateY(12px);
}

.comic-strip.motion-entered > figure {
  animation: peilo-story-arrive 560ms cubic-bezier(.2,.72,.22,1) both;
  animation-delay: calc(var(--panel-index) * 85ms);
}

.comic-strip.motion-paused > figure,
body.page-hidden .comic-strip > figure,
body.page-hidden .hero .hero-dragon {
  animation-play-state: paused;
}

@keyframes peilo-story-arrive {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .brand .brand-paw { width: 23px; height: 23px; margin-right: 5px; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-dragon { animation: none; }
  .comic-strip.motion-ready > figure { opacity: 1; transform: none; }
  .comic-strip.motion-entered > figure { animation: none; }
}

.companion-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(30px, 5vw, 76px);
  max-width: 1250px;
  text-align: left;
}

.companion-scene {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background: #eee5d8;
}

.companion-scene img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.companion-demo figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}

.companion-demo .text-link {
  margin-top: 17px;
}

.phone-intro-screen {
  height: auto;
  min-height: 0;
  padding-bottom: 85px;
}

.phone-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1250px;
  margin: 42px auto 0;
}

.phone-intro-grid figure {
  min-width: 0;
  margin: 0;
}

.phone-mode-stack {
  display: grid;
  gap: 16px;
}

.phone-stats-figure {
  display: flex;
  flex-direction: column;
}

.phone-intro-grid .shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #f1ede7;
}

.phone-intro-grid .phone-face-shot,
.phone-intro-grid .phone-seen-shot {
  aspect-ratio: 2376 / 1080;
}

.phone-intro-grid .phone-stats-shot {
  flex: 1;
  min-height: 0;
}

.phone-intro-grid .shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-intro-grid .phone-face-shot img,
.phone-intro-grid .phone-seen-shot img,
.viewer-content .phone-face-shot img,
.viewer-content .phone-seen-shot img {
  position: absolute;
  top: -10.4%;
  left: -4.8%;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: fill;
}

.phone-intro-grid .phone-stats-shot img,
.viewer-content .phone-stats-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.viewer-content .phone-stats-shot {
  width: min(100%, 600px);
  aspect-ratio: 1080 / 2376;
  margin-inline: auto;
}

.viewer-content .phone-stats-shot img {
  object-fit: contain;
}

.phone-intro-grid figcaption {
  display: grid;
  gap: 5px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.phone-intro-grid figcaption strong {
  color: var(--ink);
  font-size: 21px;
}

/* Complete scene images keep the screen perspective inside the photograph. */
.desk-gallery.live-phone-face .desk-panel { position:relative; }
.viewer-content .desk-gallery.live-phone-face {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.viewer-content .desk-gallery.live-phone-face .desk-panel img {
  width: 400%;
  max-width: none;
  height: auto;
}

/* Concept-only early access form. The preview script prevents local submissions. */
.hero .waitlist-hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(13px, calc(17 * var(--u)), 17px);
  line-height: 1.6;
}
.hero .platforms { margin-top: 18px; }
.waitlist-kicker { color: var(--accent)!important; font-size: 12px; font-weight: 750; letter-spacing: .12em; }
#download h2 { margin-top: 8px; }
.waitlist-form { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.waitlist-form label { color: var(--ink); font-size: 14px; font-weight: 650; }
.waitlist-form .optional { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.waitlist-form input,.waitlist-form select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; }
.waitlist-form input:focus-visible,.waitlist-form select:focus-visible { outline: 2px solid #739686; outline-offset: 2px; }
.waitlist-form .button { margin-top: 10px; width: 100%; font-size: 17px; }
.bot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.concept-form-status { margin-top: 12px; color: #855b32; font-size: 12px; }
.waitlist-privacy { margin-top: 18px; font-size: 12px; line-height: 1.75!important; }
.waitlist-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.waitlist-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.waitlist-page main { width: min(100%, 640px); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.waitlist-page .brand { display: inline-block; font-size: 42px; margin-bottom: 34px; }
.waitlist-page h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.3; letter-spacing: -.03em; margin: 10px 0 18px; }
.waitlist-page main>p:not(.waitlist-kicker) { color: var(--muted); line-height: 1.75; }
.waitlist-page .text-link { display: inline-block; margin: 26px 20px 0 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .hero .actions { flex-direction: column; }
  .hero .actions .button { min-width: min(100%, 260px); }
  .hero .waitlist-hint { max-width: 300px; margin-inline: auto; }
  #download { padding: 22px; }
}

@media (max-width: 760px) {
  .companion-demo {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    margin-top: 42px;
  }

  .companion-scene {
    aspect-ratio: 5 / 4;
    border-radius: 16px;
  }

  .companion-demo figcaption {
    text-align: center;
  }

  .companion-demo .text-link {
    margin-top: 14px;
  }

  .phone-intro-screen {
    padding-top: 80px;
    padding-bottom: 55px;
  }

  .phone-intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 26px;
  }

  .phone-mode-stack {
    gap: 12px;
  }

  .phone-intro-grid .phone-stats-shot {
    flex: none;
    aspect-ratio: 9 / 16;
  }

  .phone-intro-grid figcaption {
    font-size: 14px;
  }

  .phone-intro-grid figcaption strong {
    font-size: 18px;
  }}
